Excel Conditional Formatting

ziad alsayed

Well-known Member
Joined
Jul 17, 2010
Messages
665
dear all

in cell A1 i have a number and in cell A2 a target related to cells A1

i need to color the number in A2 in 3 different color, if it is 75% of A1, if it is = to A1 and if it is greater than A1.

appreciate your help
 

Excel Facts

What does custom number format of ;;; mean?
Three semi-colons will hide the value in the cell. Although most people use white font instead.
Here are the 3 conditional formatting formulas...

=IF(A2/A1=0.75,TRUE,FALSE)

=IF(A1=A2,TRUE,FALSE)

=IF(A2>A1,TRUE,FALSE)
 
Upvote 0
thanks, but this is not working.
i have number so 0.75 will not work.
about the 3 formula , do you mean i have to put 3 condition??
i think it shoud be one formula.
 
Upvote 0
Ziad,
In Excel 2007 you can use the formatting tool. Format A2 as follows using three different conditions; (1) Cell Value is Between 75 & 99 color Red, (2) Cell Value is Equal to 100 color Green, (3) Cell Value Greater Than 100 color Yellow.
 
Upvote 0
thanks all for your input,

may be i didn't explain clearly,below is what i have

still appreciate you input
Excel Workbook
AB
1OT ActualOT taget
2107.5
Sheet2
Excel 2010
 
Upvote 0
Ziad,
I think the three different conditions will still work. You will just need to change the numbers.
 
Upvote 0
dear all

ths below works, i put 3 conditions

1- =IF(AND(B2>(A2*0.5),B2<(A2*0.75)),TRUE,FALSE)
2-=$B$2>$A$2
3- =$B$2>($A$2*0.75)

thanks for all you input

i will try now to do it in one conditon:)
 
Upvote 0

Forum statistics

Threads
1,224,598
Messages
6,179,820
Members
452,946
Latest member
JoseDavid

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