Auto color coding a cell with a formula

bdanner

New Member
Joined
May 19, 2002
Messages
34
I am trying to find out how you would color code a cell. I'd like to have it set so if the results of the formula in that cell are greater than 97, the cell is colored green. If the results are less than 97 it would be red. Is there an Excel formnula that would allow for this?

Thanks!
 

Excel Facts

When did Power Query debut in Excel?
Although it was an add-in in Excel 2010 & Excel 2013, Power Query became a part of Excel in 2016, in Data, Get & Transform Data.
On 2002-07-05 10:45, bdanner wrote:
I am trying to find out how you would color code a cell. I'd like to have it set so if the results of the formula in that cell are greater than 97, the cell is colored green. If the results are less than 97 it would be red. Is there an Excel formnula that would allow for this?

Thanks!

You can use conditional formatting for this.
Highlight the cells you want this to happen for.
Choose conditional formatting from the format menu.
For condition one, select greater than from the drop down box, and type in 97.
Click on the forat box and choose a green color.
Click on the add button, and repeat the process for your less than 97 criteria.

Good luck
 
Upvote 0
You can do this through Conditional Formation:

Fromt the Format Menu, go to Conditional Formation
on Condition1: from the drop down menu select Formula Is: and type =A1>=97
(note: A1 is the cell that you are evaluating)
click on Format button, select the Pattern tab and choose the color green
Follow this by adding a condition by clicking on Add>>
repeat with formula =A1<97 and choose color red on the pattern tab

-Sylvia
 
Upvote 0
This isnt that directly useful for me.

Ive got a formula like this:=IF(OR(ISERROR(VLOOKUP($E234,'SHEET1.csv'!$A$1:$AZ$600,28,FALSE)),VLOOKUP($E234,'SHEET1.csv'!$A$1:$AZ$600,28,FALSE)=0),VLOOKUP($E234,'SHEET1.csv'!$A$1:$AZ$600,30),VLOOKUP($E234,'SHEET1.csv'!$A$1:$AZ$600,28,FALSE))

Basically saying put the 28th column cell value if the condition is matched, put the 30th column cell value if the condition is not matched.

I want to also have the values of the 30th column to be red or blue, so i could filter by them easily.

Basically what im asking is , i want the cells to be red (or blue) if the condition is not matched. Do you know a way (a forumula idealy) to do/apply this?

I could create anither column (helper column) to give me 1's or 0's and then i could easily spit/filter by that to see which rows my condition met or not, but ... it would be nice/cool to be able to put this in straight away by applying a make-colour forumula. (if it exists and if it is possible).

anyone?

Format Cells
 
Upvote 0

Forum statistics

Threads
1,213,550
Messages
6,114,265
Members
448,558
Latest member
aivin

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