Conditional Formatting Formula

STEVENS3010

Board Regular
Joined
Feb 4, 2020
Messages
87
Office Version
  1. 365
  2. 2016
Platform
  1. Windows
Hey guys,

I'm trying to add text to a cell based on another cell's value using conditional formatting. (i.e. when a certain numerical value is input in one cell, a text will display in another cell).

In this scenario I'm trying to make the text display if the numerical value is less than 5.

I've added the below formula but I'm not getting the text display in the cell where I've added the formatting. Any ideas???

=IF(F4<5,"Bottom 50%","")
 

Excel Facts

Workdays for a market open Mon, Wed, Friday?
Yes! Use "0101011" for the weekend argument in NETWORKDAYS.INTL or WORKDAY.INTL. The 7 digits start on Monday. 1 means it is a weekend.
Conditional formatting cannot "add" a value to a cell, it can only affect the way it's displayed.

You would need to put that formula in the cell.
 
Upvote 0
Ah I understand, thanks for coming back to me so quickly. Can I adapt the formula to include more rules in that case? (e.g. if less than 5 display "Bottom 50%, if between 5 and 7 then display "51% to 66%" and so on???
 
Upvote 0
You can nest the If function like
Excel Formula:
=IF(F4<5,"Bottom 50%",IF(F4<7,"51% to 66%",""))
 
Upvote 0
You're welcome & thanks for the feedback.
 
Upvote 0
Me again, sorry. Separate to the above, I am trying to use the following formula to format a cell based on two values in two differing cells.

Excel Formula:
AND($B$9<=75%,$F$2="Value 1")
- is it possible to tweak this formula slightly, maybe using the 'OR' function to encompass differing values in cell F2 (in this example)

e.g. F2="value 1" or "value 2" or "value 3" - I'm not sure where the adjustment would need to be made.

Thanks for any help as always
 
Upvote 0
Is this what you are looking for?
AND($B$9<=75%,OR($F$2="Value 1",$F$2="Value 2",$F$2="Value 3"))
 
Upvote 0
Another option if this is going into a cell, rather than in CF
Excel Formula:
=AND($B$9<=75%,OR($F$2={"Value 1","Value 2","Value 3"}))
 
Upvote 0
Thanks both - although unfortunately neither of the above appear to work?
 
Upvote 0

Forum statistics

Threads
1,214,914
Messages
6,122,211
Members
449,074
Latest member
cancansova

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