Color fill a cell based on formula result

gbenkler

New Member
Joined
Oct 1, 2008
Messages
2
I have a spreadsheet with a series of 31 tabs that record test results. Those individual test results are recorded by selecting a value from a pull down menu and clicking on one of six values. The values are either "pass" or "fail".

In the same excel spreadsheet I recap all the pass/fail results from the 31 tabs onto a separate spreadsheet. I was able to accomplish this automatically by entering a series of formulas on the recap sheet that captures the content of each of the results cells. The cell formula is something like ='1'!C27. The values are dynamic.

How do I also layer on a test of the value to fill the cell with a color based on the selected value itself. e.g., if ='1'!C27 in the cell contains the value "fail" I would like the fill color to be red. I was not able to figure this out by looking at page 869 of Bill Jelens book Learn Excel 97 through exel 2007 2nd edition.
 

Excel Facts

How to fill five years of quarters?
Type 1Q-2023 in a cell. Grab the fill handle and drag down or right. After 4Q-2023, Excel will jump to 1Q-2024. Dash can be any character.
Hi

You should check out Conditional Formatting (Format/Conditional Formatting) and there you can set background colours etc depending on the values of cells in your Recap Sheet.

Hope this helps

Seamus
 
Upvote 0

Forum statistics

Threads
1,215,454
Messages
6,124,933
Members
449,195
Latest member
Stevenciu

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