compare, format and include difference

commodus

New Member
Joined
Mar 23, 2011
Messages
9
Hello!

I've been searching the board but only found part of the solution to my problem. As an example, I have column A with $100, column B with $125. I want Column C to reflect if I'm on budget (yes/no) and highlight Red, and, to show the difference such as -$25 in red instead of the whole cell highlighting red. I have the =IF(B3<=A3,"YES","NO") and it reflects NO with the whole cell red... any suggestions?

Thanks!!!!
 

Excel Facts

When they said...
When they said you are going to "Excel at life", they meant you "will be doing Excel your whole life".
It sounds like you have used Conditional Formatting and set the Fill color to red if the condition is true. Try Changing that to the Font color.
 
Upvote 0
ha! of course... not sure what happened there :) Thanks! BUT, how do I get it to reflect the true $ difference instead of no/yes/whatever?
 
Upvote 0
The CF formula would be the same; the formula in the cell should be

=B3-A3
 
Upvote 0
wow I'm just batting a 100 now, for some reason I was making that harder than needed. I guess that leads me to - I would like for the return value to be the $ difference between A1 and B1, but, if it is equal to then return value of Yes. So that way I would have a column (header of meet budget) that would have some yes, yes, yes and $1.23 or whatever the calculated difference is. Does that make sense?
 
Upvote 0
awesome, last question on this - promise! Is it possible to use that same string but have that return value show negative or in ()? that way if it's printed out black and white it still reflects a negative value?

Thank you VERY much!
 
Upvote 0

Forum statistics

Threads
1,224,522
Messages
6,179,299
Members
452,904
Latest member
CodeMasterX

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