dynamically formatting cells help!!!

anonymowho

New Member
Joined
Dec 2, 2005
Messages
21
Hi this is what I am trying to do. I have a testing tool written in excel which gives the number of errors and asks the developers to enter an explanation of this error.

item1______12_______This error occurred because blah blah...

in this above row, there are 12 errors indicated for item 1. I want to show the cell with the number 12 as red if no explanation for the error is entered, i want it to show green if an explanation has been provided, and no color fill if the number is 0 which means no errors.

I am trying to do this with conditional formatting but I am having no luck. Can someone tell me of a better way to handle this.
 

Excel Facts

Easy bullets in Excel
If you have a numeric keypad, press Alt+7 on numeric keypad to type a bullet in Excel.

xenou

MrExcel MVP
Joined
Mar 2, 2007
Messages
16,836
Office Version
  1. 2019
Platform
  1. Windows
I have this worksheet:
Book1
ABCDE
1ITEM#ErrorsReason
2Item11
3Item22UserError
4Item33Dogatemynotes
5Item40
6
Sheet2



My Conditional Format In Cell B2 Is:
Condition 1 --
Cell Value | Is Equal To | 0
Format Font to Regular

Condition 2 --
Formula Is | =OR(ISBLANK(OFFSET(B2,0,1)),OFFSET(B2,0,1)="")
Format Font to Bold Red

Condition 3 --
Formula Is | =NOT(ISBLANK(OFFSET(B2,0,1)))
Format Font to Bold Green

The Format in Cell B2 can be copied down to the other cells in Column B.
Hopefully I have the order of precedence correct. I like to use the offsets so that inserting rows/columns doesn't screw up the formulas.
 
Upvote 0

Forum statistics

Threads
1,191,076
Messages
5,984,494
Members
439,893
Latest member
johnsboxftm

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
Top