If Statement Values and Changing Cell Colors Problem

Harley51

New Member
Joined
Aug 24, 2011
Messages
4
Here's what I need to do. Using an IF statement enter a number value in cell B8. Enter a number value in cell B28. If they are equal number change font to red. If they are not equal change number font to black. Can someone write it out for me. I have spent days trying to get this to work. Thanks in advance.
 

Excel Facts

How to find 2nd largest value in a column?
MAX finds the largest value. =LARGE(A:A,2) will find the second largest. =SMALL(A:A,3) will find the third smallest
What do you mean with "Using an IF statement enter a number value in cell B8." ?

Is this value entered somewhere else or in cell B8 itself ?
 
Upvote 0
I'll be using an If statement in a Macro to check when I enter a number into cell B8. I enter a number into cell B29. If they are equal change the color on the number font in cell B8 to Red. If the number in B28 doesn't equal B8 then leave the number font black.
 
Upvote 0
Use conditional format. Instead of 'Value is' you'll have to use 'Formula is' and enter =B8=B28 .
Add a red color to the font and your ready.
 
Upvote 0
Thank you I'll give it a try. I will need to do this to six times (IE: C8, C28). Do you this as a problem to finihed this statement??
 
Upvote 0

Forum statistics

Threads
1,224,550
Messages
6,179,463
Members
452,915
Latest member
hannnahheileen

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