Comparing text strings in Excel

Hey y'all! Would anyone please assist with this issue I've run into? Is it possible to compare text strings in two different cells within Excel? Pretty much I want Excel to compare text strings in two separate columns and check if the values match up - think strings like "Timmy, Bob, John" and in the other it may have the same names, but in a different order like "Bob, John, Timmy."

Another idea I had was potentially creating some code or maybe there's an Excel function counting the letters in a text string and if they match then output "Yes." Open to any suggestions. TIA!

4 Comments
 

I don’t know if this can be done in Excel, but you could do it easily using Python. If you look up videos about the library “pandas” you should be able to see pretty quickly how to do something like this. First you’d need to create functions that do what you’re describing to regular strings/lists in Python, and then you could make a program using pandas to apply/use them on an Excel file. If my answer is helpful in any way, you may want to consider posting this somewhere like stack overflow instead or you could probably find similar posts that have already been answered.

 

Brute force top-of-mind solution but could be recorded as macro.

1. Transpose copy & paste

2. Text to columns

3. Remove spaces

3. Transpose copy & paste back

4. Sort all columns individually A-Z

5. +CONCAT each column

6. Compare these values

 

Vitae quia ullam vitae eius quis aut aut. Maxime facilis vel enim et cupiditate temporibus animi. Tenetur voluptatem consequatur sit ab quia voluptas voluptates. Ipsa deleniti ut repellendus nemo doloribus aperiam. Et sunt voluptas ipsum enim rerum.

Adipisci aut totam quibusdam dolores quibusdam placeat. Blanditiis modi eum facilis voluptatem inventore qui praesentium. Qui animi esse consequatur suscipit eum.

Sunt expedita rem fugiat esse id omnis. At quam quam beatae sint. Amet assumenda quia labore sed nostrum et ea. Excepturi saepe quibusdam fugiat molestias dolor ipsum. Cum alias voluptatum reprehenderit voluptatem ad fuga voluptas.

Vel hic illum voluptatem velit. Perferendis non voluptate et cumque eligendi sed dolores. Aut totam debitis deserunt dicta magnam. Et eveniet et ex alias est illo soluta. Et repellendus modi distinctio voluptates temporibus tempora.

Career Advancement Opportunities

December 2026 Investment Banking

  • Evercore 01 99.5%
  • Moelis & Company 01 99.0%
  • JPMorgan 01 98.4%
  • Guggenheim Partners 02 97.9%
  • Morgan Stanley 06 97.4%

Overall Employee Satisfaction

December 2026 Investment Banking

  • Moelis & Company No 99.5%
  • Morgan Stanley 02 99.0%
  • Evercore 01 98.4%
  • Banco Santander 04 97.9%
  • Bank of America Merrill Lynch 06 97.4%

Professional Growth Opportunities

December 2026 Investment Banking

  • Evercore 01 99.5%
  • Moelis & Company 01 99.0%
  • Morgan Stanley 05 98.4%
  • Goldman Sachs 01 97.9%
  • JPMorgan No 97.4%

Total Avg Compensation

December 2026 Investment Banking

  • Vice President (17) $409
  • Associates (60) $262
  • 3rd+ Year Analyst (8) $210
  • 2nd Year Analyst (29) $183
  • Intern/Summer Associate (16) $161
  • 1st Year Analyst (86) $152
  • Intern/Summer Analyst (77) $101
notes
16 IB Interviews Notes

“... there’s no excuse to not take advantage of the resources out there available to you. Best value for your $ are the...”

Leaderboard

1
redever's picture
redever
99.2
2
Secyh62's picture
Secyh62
99.0
3
BankonBanking's picture
BankonBanking
99.0
4
kanon's picture
kanon
99.0
5
DrApeman's picture
DrApeman
98.9
6
dosk17's picture
dosk17
98.9
7
GameTheory's picture
GameTheory
98.9
8
Betsy Massar's picture
Betsy Massar
98.9
9
CompBanker's picture
CompBanker
98.9
10
Mimbs's picture
Mimbs
98.8
success
From 10 rejections to 1 dream investment banking internship

“... I believe it was the single biggest reason why I ended up with an offer...”