Does anyone know how to do this in excel?

I need to do the following:

I have a large list that is categorized by font color (already color coded). I need the cells adjacent to the list to be automatically categorized based on the color of the cell next to it. For example, lets say my first three rows are:

Row 1, Column 1 (in red font)
Row 2, Column 1 (in blue font)
Row 3, Column 1 (in green font)
etc.

I need the cells in column 2 to say something based on the font color of the list in the first column. For example, the red color font will mean "x" in column 2, green color font means "y", etc.

Anyone know how to do this without doing it manually?

6 Comments
 
Best Response

this is a job for VBA (at least, i can't think of a way to do it otherwise).

Sub colorCode():

Dim selRange as Range

set selRange = Application.InputBox(type:= 8)

'note, the above allows you to select the range you want to loop through. you could always hardcode the range though

selRange.select

for each cell in selRange if cell.interiorcolor= *add the color here - also i forget if it is cell.interiorcolor or something else then blah blah blah

do some more if statements for your other colors

end if

next cell

end for end sub

That is a seriously rudimentary first attempt at what you need to input, but I'm pretty sure you could google the answer or at least google the missing parts of what I just wrote.;

Anway, good luck

Remember, once you're inside you're on your own. Oh, you mean I can't count on you? No. Good!
 

It's not completely automatic but it beats updating it manually - you can filter by colour.

Use the basic filter tool (ctrl shift L) and once you do that, you can "filter by colour", and "font colour" should be a section you can select.

Once you isolate the colour, you can paste in the appropiate value you want to id it in the column beside it.

 

VBA is not necessary. This can be done with an excel formula.

1.Open the Name Manager 2.Give the formula a name. Say FontColor 3.Type this formula in Refers To =GET.CELL(24,OFFSET(INDIRECT("RC",FALSE),0,-1)) and click OK

Now go to the second column of your worksheet and simply type the formula =fontcolor

The respective number corresponding to the font in the adjacent cell will be displayed. You can then use a vlookup or any other function from there to define certain font colors as desired labels (X, Y, etc). I have a simple example in excel I can send you but not sure I can attach it to a forum comment? I will try a PM.

 
Industry84

VBA is not necessary. This can be done with an excel formula.

1.Open the Name Manager
2.Give the formula a name. Say FontColor
3.Type this formula in Refers To =GET.CELL(24,OFFSET(INDIRECT("RC",FALSE),0,-1)) and click OK

Now go to the second column of your worksheet and simply type the formula =fontcolor

The respective number corresponding to the font in the adjacent cell will be displayed. You can then use a vlookup or any other function from there to define certain font colors as desired labels (X, Y, etc). I have a simple example in excel I can send you but not sure I can attach it to a forum comment? I will try a PM.

Holy jesus, care to explain what that just did? I have no clue what the "GET" does, and the CELL(24 doesn't match the formula's requirement,s and the indirect is also fucked up on the context... It works, which really dumfounds me
 

Illum dolorum quia nostrum molestiae. Veritatis fugiat voluptatum reiciendis. Officiis sed ipsum in ut ut velit. Eveniet quae nemo eveniet dolores similique ipsum error.

Libero accusantium quasi repellat qui nihil. Blanditiis laboriosam aliquam quaerat sed. Est explicabo tempora in deserunt cumque quos. In est nisi harum provident excepturi est.

Reiciendis iusto dolore qui est enim. Quaerat quo dolore omnis et tenetur corrupti iusto. Itaque eum consequatur quia magni. Neque blanditiis aspernatur dicta est in odio. Aspernatur omnis tempore rerum.

Eos est repudiandae amet sapiente. Error quod vitae impedit velit repellat.

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
kanon's picture
kanon
99.0
4
BankonBanking's picture
BankonBanking
99.0
5
dosk17's picture
dosk17
98.9
6
GameTheory's picture
GameTheory
98.9
7
DrApeman's picture
DrApeman
98.9
8
CompBanker's picture
CompBanker
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...”