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.
 

Soluta voluptas accusantium magni voluptatem possimus. Velit qui qui quia. Aut nam ea voluptates beatae dolorem ea. Et unde cumque praesentium quibusdam. Velit voluptas qui ducimus rerum autem cupiditate. Porro neque in soluta sunt. Aut eaque reprehenderit qui officia.

Odit velit ipsam nihil minima quam consequatur. Atque facilis ut ut sequi occaecati laudantium rerum.

Career Advancement Opportunities

June 2026 Investment Banking

  • Evercore 01 99.4%
  • Moelis & Company 01 98.8%
  • JPMorgan 01 98.2%
  • Guggenheim Partners 01 97.7%
  • Morgan Stanley 07 97.1%

Overall Employee Satisfaction

June 2026 Investment Banking

  • Moelis & Company No 99.4%
  • Morgan Stanley 01 98.8%
  • Evercore 01 98.2%
  • BMO Capital Markets 12 97.6%
  • Banco Santander 01 97.1%

Professional Growth Opportunities

June 2026 Investment Banking

  • Moelis & Company No 99.4%
  • Evercore No 98.8%
  • Morgan Stanley 05 98.2%
  • JPMorgan No 97.7%
  • BMO Capital Markets 12 97.1%

Total Avg Compensation

June 2026 Investment Banking

  • Vice President (14) $434
  • Associates (43) $259
  • 3rd+ Year Analyst (8) $210
  • 2nd Year Analyst (22) $179
  • Intern/Summer Associate (13) $156
  • 1st Year Analyst (75) $151
  • Intern/Summer Analyst (65) $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
CompBanker's picture
CompBanker
98.9
8
GameTheory's picture
GameTheory
98.9
9
Betsy Massar's picture
Betsy Massar
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...”