Conditional Formatting

stevembe

Well-known Member
Joined
Mar 14, 2011
Messages
501
I have an impossible task to achieve in a spreadsheet. Basically I have the five working days of the week in a column and next to it I have another column for figures, four digits in length e.g. 5935. What I need to do is if the cell value is less than the previous day it shades red, if more than green, if the same gray but if the hundreds unit remains the same it goes blue. I can achieve the first part with conditional formatting but the blue shading if the hundreds unit does not change is baffling me.

Any assistance would be greatly appreciated.


P.S. I am using Office 2010<!-- / message --><!-- BEGIN TEMPLATE: ad_showthread_firstpost_sig --><!-- END TEMPLATE: ad_showthread_firstpost_sig -->
<!-- controls -->
progress.gif
 

Excel Facts

What did Pito Salas invent?
Pito Salas, working for Lotus, popularized what would become to be pivot tables. It was released as Lotus Improv in 1989.
I think you can use this in your conditional formatting.

=ROUNDDOWN(D11/100,0)=ROUNDDOWN(C11/100,0)

CF works in order, so this will have to be your first condition, so that it only goes red or green if the 100s bit isn't the same (I presume that's what you want).

change the cell refs to suit your range.
 
Upvote 0

Forum statistics

Threads
1,224,595
Messages
6,179,799
Members
452,943
Latest member
Newbie4296

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