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.
 

Placeat velit aliquid in atque animi. Eos atque fuga et quia corrupti doloremque. Qui voluptatem rerum enim dicta ullam tempore corporis. Non cum est eaque quis. Odio vero rerum accusamus quod. Enim ut repellat est ut quia ducimus.

Laudantium et doloribus molestias qui commodi. Omnis quae deserunt quam laborum porro expedita. Hic non quia ut et. Rerum dolorem voluptas eos aut qui voluptates qui.

Eius molestiae aut est voluptatem. Enim qui non aliquid aliquam debitis fugit. Occaecati expedita aut voluptatum sequi cumque dicta reiciendis. Recusandae rerum tempora omnis quasi. Ut autem tempora quam quae accusamus perspiciatis. Deserunt impedit tenetur saepe quod.

Qui et vel consequuntur. Quia quis repellendus natus nostrum incidunt nihil possimus. Sed blanditiis aut sit sed ad.

Career Advancement Opportunities

July 2026 Investment Banking

  • Evercore 01 99.4%
  • Moelis & Company 01 98.9%
  • JPMorgan 01 98.3%
  • Guggenheim Partners 01 97.7%
  • Morgan Stanley 07 97.2%

Overall Employee Satisfaction

July 2026 Investment Banking

  • Moelis & Company No 99.4%
  • Evercore No 98.9%
  • Morgan Stanley 01 98.3%
  • Banco Santander 02 97.7%
  • BMO Capital Markets 12 97.2%

Professional Growth Opportunities

July 2026 Investment Banking

  • Evercore 01 99.4%
  • Moelis & Company 01 98.9%
  • Morgan Stanley 06 98.3%
  • Goldman Sachs 01 97.7%
  • JPMorgan 01 97.2%

Total Avg Compensation

July 2026 Investment Banking

  • Vice President (16) $429
  • Associates (46) $258
  • 3rd+ Year Analyst (8) $210
  • 2nd Year Analyst (22) $179
  • Intern/Summer Associate (14) $159
  • 1st Year Analyst (80) $150
  • Intern/Summer Analyst (73) $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
kanon's picture
kanon
99.0
3
BankonBanking's picture
BankonBanking
99.0
4
Secyh62's picture
Secyh62
99.0
5
dosk17's picture
dosk17
98.9
6
GameTheory's picture
GameTheory
98.9
7
Betsy Massar's picture
Betsy Massar
98.9
8
CompBanker's picture
CompBanker
98.9
9
DrApeman's picture
DrApeman
98.9
10
numi's picture
numi
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...”