Excel Help - Struggling to work around this problem

Struggling to work around this problem I have in Excel at the moment, any help will be greatly appreciated!

Basically I have a list of company names and wish to categorize them using a formula. Theres about 20 different companies but only 5 sections I want to split them into. I could easily manually enter it but I'd like to be able to just Cntrl D down and make it work for anything I might add in the future.

What I'm thinking about so far is using a long =IF function. Assume the range of data is in column C, the sections are listed in A1:A5 and I want the new entry to be in column D. Basically I need to include multiple =IF functions into 1 formula.

Any help would be amazing!

16 Comments

What is the advantage of categorizing them using a formula as opposed to a filter?

You're born, you take shit. You get out in the world, you take more shit. You climb a little higher, you take less shit. Till one day you're up in the rarefied atmosphere and you've forgotten what shit even looks like. Welcome to the layer cake, son.
 

Unfortunately it's not numerical, its text. Here's a sample:

Company Company 1 Company 2 Company 3 Company 4 Company 5 Company 6 ......

Sector Manufacturing Pharmaceutical Technology Financial

It's very hard to explain in text but basically I'm looking to do 2 things: - Create a reference list which lists all the companies within each sector - Use a formula to check which sector the company in a given cell is in, and then return the text value of that sector

AsatarUnfortunately it's not numerical, its text. Here's a sample:

Company Company 1 Company 2 Company 3 Company 4 Company 5 Company 6 ......

Sector Manufacturing Pharmaceutical Technology Financial

It's very hard to explain in text but basically I'm looking to do 2 things: - Create a reference list which lists all the companies within each sector - Use a formula to check which sector the company in a given cell is in, and then return the text value of that sector

Again,

I really think this can be done using a filter and conditional formatting.

You're born, you take shit. You get out in the world, you take more shit. You climb a little higher, you take less shit. Till one day you're up in the rarefied atmosphere and you've forgotten what shit even looks like. Welcome to the layer cake, son.
AsatarGot it working, definitely was trying to overcomplicate it haha. Thanks all!

What did you use?

You're born, you take shit. You get out in the world, you take more shit. You climb a little higher, you take less shit. Till one day you're up in the rarefied atmosphere and you've forgotten what shit even looks like. Welcome to the layer cake, son.
 
Rupert Pupkin$20 says filter

I know, I just want to hear him say it :D

You're born, you take shit. You get out in the world, you take more shit. You climb a little higher, you take less shit. Till one day you're up in the rarefied atmosphere and you've forgotten what shit even looks like. Welcome to the layer cake, son.
AsatarI used lookup functions and 3 =IF commands within a formula in combination with a pivot table and a couple of VBA macros.

No, I used a filter :(

You're welcome ;D

You're born, you take shit. You get out in the world, you take more shit. You climb a little higher, you take less shit. Till one day you're up in the rarefied atmosphere and you've forgotten what shit even looks like. Welcome to the layer cake, son.
 

Est suscipit et illo magnam minima non. Reiciendis enim dolor consequatur nobis tempore sed ut. Rerum sunt ad aperiam id nihil in et. Ut neque doloribus est doloribus incidunt aut consequatur. Voluptatem cupiditate eligendi impedit perferendis et culpa sed.

Cupiditate numquam cumque sed voluptates. Perspiciatis nulla id at ex assumenda dolor dolorum dolore. Eos aut illo atque at. Mollitia soluta molestias fugit. Et magnam sit aut quo reiciendis vitae. Numquam tenetur est totam cumque blanditiis pariatur.

Career Advancement Opportunities

November 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

November 2026 Investment Banking

  • Moelis & Company No 99.5%
  • Morgan Stanley 02 99.0%
  • Evercore 01 98.4%
  • Banco Santander 02 97.9%
  • BMO Capital Markets 13 97.4%

Professional Growth Opportunities

November 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

November 2026 Investment Banking

  • Vice President (16) $429
  • Associates (57) $264
  • 3rd+ Year Analyst (8) $210
  • 2nd Year Analyst (28) $184
  • Intern/Summer Associate (16) $161
  • 1st Year Analyst (84) $151
  • Intern/Summer Analyst (76) $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...”