Conditional formatting multiple cells based on highest value in row

TheFlyingHalibut

New Member
Joined
Aug 3, 2015
Messages
2
Hi,

I'm having trouble with conditional formatting.
I have a large sample of data looking similar to the example below, lots of dates for lots of rows.

I am trying to use the below data to create a sort of progress bar, and initially did so by counting blank cells per row, and then in a separate sheet having a progress bar =(8-Blank Cells). Unfortunately this didn't provide me with enough information.

SentShortAssessedCheckedActionSelectionOfferedStarted
22/06/201526/06/201528/06/201515/07/201528/07/2015
15/06/201517/06/201522/06/201512/07/2015
14/06/201525/06/201501/07/201505/07/201501/08/201502/08/2015
08/06/201515/06/201520/06/2015

<tbody>
</tbody>

With the information above, I want to be able to represent the data similar to the image below, so it looks like progress bars against each row, however depending on how old the most recent date is, I want the progress bar to change colour.

E.g.
If the highest date within the row is less than a week old, any cell that contains data is filled blue.
If the highest date within the row is more than a week but less than two weeks old, any cell that contains data is filled yellow.
If the highest date within the row is more than two weeks old, any cell that contains data is filled orange.
XagtQ2I.png


I am trying to have this set up so that "raw data" is in one worksheet, and then "progress bars" are in another nice dashboard worksheet. Main reason is that I will be dumping new data into the "raw data" worksheet on the regular from some software output and do not want to have to format it to look nice each time.

Most of my formatting so far has come from nested ifs:
e.g.
ZHAQN6P.png
<today()-7,"c",if(data!w2,"z","")))

<today()-7,"c",if(data!ab2,"z","")))))
<today()-7,"c",if(data!ab2,"z","")))
The above example has three conditions - empty, older than a week, newer than a week.
Ideally I want a fourth condition being oldr than a week but less than two.

Please help!

Thanks,</today()-7,"c",if(data!ab2,"z","")))
</today()-7,"c",if(data!ab2,"z","")))))
</today()-7,"c",if(data!w2,"z","")))
 
Last edited:

Excel Facts

Copy PDF to Excel
Select data in PDF. Paste to Microsoft Word. Copy from Word and paste to Excel.

Excel 2010
ABCDEFGH
1
2
3SentShortAssessedCheckedActionSelectionOfferedStarted
422/06/201526/06/201528/06/201515/07/201528/07/2015
515/06/201517/06/201522/06/201512/07/2015
614/06/201525/06/201501/07/201505/07/201501/08/201502/08/2015
708/06/201515/06/201520/06/2015
8
9
10
11SentShortAssessedCheckedActionSelectionOfferedStarted
12
13YellowYellowYellowYellowYellow   
14OrangeOrangeOrangeOrange
15BlueBlueBlueBlueBlueBlue
16OrangeOrangeOrange
MyForm
Cell Formulas
RangeFormula
A13=IF(A4,IF(NOW()-MAX($A4:$H4)<=7,"Blue",IF(NOW()-MAX($A4:$H4)<=14,"Yellow","Orange")),"")
B13=IF(B4,IF(NOW()-MAX($A4:$H4)<=7,"Blue",IF(NOW()-MAX($A4:$H4)<=14,"Yellow","Orange")),"")
C13=IF(C4,IF(NOW()-MAX($A4:$H4)<=7,"Blue",IF(NOW()-MAX($A4:$H4)<=14,"Yellow","Orange")),"")
D13=IF(D4,IF(NOW()-MAX($A4:$H4)<=7,"Blue",IF(NOW()-MAX($A4:$H4)<=14,"Yellow","Orange")),"")
E13=IF(E4,IF(NOW()-MAX($A4:$H4)<=7,"Blue",IF(NOW()-MAX($A4:$H4)<=14,"Yellow","Orange")),"")
F13=IF(F4,IF(NOW()-MAX($A4:$H4)<=7,"Blue",IF(NOW()-MAX($A4:$H4)<=14,"Yellow","Orange")),"")
G13=IF(G4,IF(NOW()-MAX($A4:$H4)<=7,"Blue",IF(NOW()-MAX($A4:$H4)<=14,"Yellow","Orange")),"")
H13=IF(H4,IF(NOW()-MAX($A4:$H4)<=7,"Blue",IF(NOW()-MAX($A4:$H4)<=14,"Yellow","Orange")),"")
 
Upvote 0
Hi
I have a similar problem. I have a worksheet that I use for calculating premiums on a rolling monthly basis. I indicate New policies in GREEN (that's policies that have been started between 25th of the previous month and the 30th of the current month),
Cancelled policies in RED and all others in ORANGE.

I'm trying to have the 'fill color' change automatically. I know I can use conditional formatting to achieve this, but i i have over 100 rows and i'm trying to apply it to individual rows. i.e. if I enter a cancellation date, I want just THAT row to turn RED.

It looks like this formula will do the job, I just don't understand how it works.

this is a clip of my sheet:

Sorry I can't work out how to include an image :(
 
Upvote 0
Post the image on a photo sharing site or your Google+ and then here click the image icon and paste in the url
 
Upvote 0
Forgot to say: you should really start a new thread. Put a link in to this thread and also put a post here with a link to your new thread
 
Upvote 0

Forum statistics

Threads
1,215,059
Messages
6,122,918
Members
449,093
Latest member
dbomb1414

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