conditional formatting icon, use in if statement

johansdr

New Member
Joined
Mar 24, 2022
Messages
2
Office Version
  1. 2016
Platform
  1. Windows
Hello!

I have a a big dataset where I've used the conditional formating to color values that are grouped as:
The values are in percentage of the total in that specific dataset, so all values are somewhere between 0 and 1.
Above 20% : green traffic light
19,9% to 5% : yellow traffic light
and below 5% : red trafic light
This works fine, but...

The thing is that i have multiple columns, where only one of the columns have data on each row (value between 0-1). If the column has a number, then i want to use an if statement to see if it is green: then it should be "A", if it is yellow it should be "B" and if red, it should be "C".

Something like:

If value in range C2:Z2 is >0 then:
Check if
color of icon is green, then print "A" or color of icon is yellow, then print "B" or color of icon is green, then print "C"

Is this possible to do in excel? :)

Thanks in advance!

//Johan
 

Excel Facts

What is the last column in Excel?
Excel columns run from A to Z, AA to AZ, AAA to XFD. The last column is XFD.
"Something like:

If value in range C2:Z2 is >0 then:
Check if
color of icon is green, then print "A" or color of icon is yellow, then print "B" or color of icon is green, then print "C"
"

Just to clarify: select the cell that has that has a value and returnera a, b or c - depending on the color.
 
Upvote 0

Forum statistics

Threads
1,214,975
Messages
6,122,538
Members
449,088
Latest member
RandomExceller01

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top