i assume by list A and B u mean columns A and B. lets say your lists start at A1 and B1

in C1 put =COUNTIF(B:B,A1) and then drag it all the way to the last data point. every item in A that is in B will have a 1 next to it. if it doesnt, it will have a 0

now select columns B and C and click Data then Sort

click No Headers, sort by Column C, click Descending

now all the 1s should be on top and the 0s on the bottom. delete all the data points in B next to the Zeros, and the two lists A and B should have the same companies

i did something like this at work today. i just typed this up from memory, hope it works out

 

another way to do it would be using a vlookup

insert a column next to the shorter list. put a yes next to each name. then insert a column in the longer list and use the vlookup function to to match the names, bringing the yes value over to your longer list for the matches. hard code all the values in the vlookup column. the "yes" values will be your matches. sort and erase the non matches.

 

not necessarily. list A could have the Fortune 500, List B could have 400 of the Fortune 500 plus another 200 random companies no one's heard of. If you answer op's post correctly, you'd only have the 400 F500 companies left in list B... While the vlookup may not seem the easiest or most intuitive for a simple application like this, it's really useful in a wide variety of situations and familiarity with that function is helpful beyond words

 

Vero enim qui nihil inventore asperiores accusantium. Qui unde unde quasi tempore fugit quo omnis. Et necessitatibus ut porro odio. Eaque et ratione qui sit voluptates vel aperiam. Fuga porro facilis temporibus repellendus perferendis quos harum.

Cupiditate illo aliquid ea est. Omnis dolores quas voluptas fugit deserunt. Doloremque omnis cumque et quis porro.

Quis minima quas autem aut. Blanditiis qui deserunt eos eius magnam aliquid. Ratione quasi alias aut dicta quisquam.

Ratione et consequatur nulla. Quos nisi impedit ducimus consequatur consequatur et. Iure non quos voluptatem deserunt sit tempora distinctio et. Et et ipsam ipsum eum pariatur et aperiam excepturi.

Career Advancement Opportunities

May 2024 Investment Banking

  • Jefferies & Company 02 99.4%
  • Lazard Freres No 98.8%
  • Goldman Sachs 18 98.3%
  • Harris Williams & Co. New 97.7%
  • JPMorgan Chase 04 97.1%

Overall Employee Satisfaction

May 2024 Investment Banking

  • Harris Williams & Co. 18 99.4%
  • JPMorgan Chase 10 98.8%
  • Lazard Freres 05 98.3%
  • Morgan Stanley 07 97.7%
  • William Blair 03 97.1%

Professional Growth Opportunities

May 2024 Investment Banking

  • Lazard Freres 01 99.4%
  • Jefferies & Company 02 98.8%
  • Goldman Sachs 17 98.3%
  • Moelis & Company 07 97.7%
  • JPMorgan Chase 05 97.1%

Total Avg Compensation

May 2024 Investment Banking

  • Director/MD (5) $648
  • Vice President (21) $373
  • Associates (91) $259
  • 3rd+ Year Analyst (14) $181
  • Intern/Summer Associate (33) $170
  • 2nd Year Analyst (68) $168
  • 1st Year Analyst (205) $159
  • Intern/Summer Analyst (146) $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

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...”