Format if one cell is less than another

russlock

New Member
Joined
Sep 17, 2003
Messages
26
Hi all,
I have tried many ways to do this and have given up.

I have a few customers and I have the spend for each month and I was trying to get the text to highlight if the spend is less than the previous month (if that makes sense).
I have typed how it should look (I have manually changed the text colour)

I hope someone can lead me down the right path. Thanks.

customer jan feb mar
fred 500 354 487
bill 26 200 190

etc..
 

Excel Facts

Remove leading & trailing spaces
Save as CSV to remove all leading and trailing spaces. It is faster than using TRIM().
Assuming that the first value (500 in your case) is in B2, then select b2 to last col,last row of data
On home tab, conditional format, new rule,use a formula
=C2<B2
and select your format
 
Upvote 0
Assuming that the first value (500 in your case) is in B2, then select b2 to last col,last row of data
On home tab, conditional format, new rule,use a formula
=C2<B2
and select your format

thanks for this. I tried that and it works for the first cell but then does not for the rest of the row or the data on the next lines
 
Upvote 0
Apologies the board stripped out part of the formula it should be
=C2< B2
 
Upvote 0
Apologies the board stripped out part of the formula it should be
=C2< B2

still not working for some reason.
did exactly as above and there are months that are clearly higher than the previous month, but still it changes to red and if the formula is correct, it should not change.
 
Upvote 0
Got it wrong delete the rule, then select C2 to last row/col & use that formula
 
Upvote 0
You're welcome & thanks for the feedback
 
Upvote 0

Forum statistics

Threads
1,214,644
Messages
6,120,709
Members
448,983
Latest member
Joaquim_Baptista

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