conditional formatting data bar for Due Date

DDT~123

Board Regular
Joined
May 31, 2012
Messages
220
Greetings All,

I'm needing a little help with the formula for creating a data bar which compares the date a task was assigned to the due date. Column A has the "Assigned Date", Cell B1 has the TODAY() formula, and Column C has the "Due Date". The progress bar would need to compare the 3 dates and convert to a percentage of time remaining. If the Due Date is equal to TODAY then it would need to show 100% and the data bar completely full.

Thank you in advance for your help!!
 

Excel Facts

Convert text numbers to real numbers
Select a column containing text numbers. Press Alt+D E F to quickly convert text to numbers. Faster than "Convert to Number"
If what you want is time remaining try this: =((C1-TODAY())/(C1-A1)) and format it as percentage.
However, if time remaining is what you want, when due date equals to today then time remaining would be 0% and not 100%. If you still want it to be 100% even so, add an if statement: =IF(C1=TODAY(),1,(C1-TODAY())/(C1-A1)). You can replace TODAY() with your cell B1 of course.
For conditional formatting, try here: How to Create Progress Bars in Excel With Conditional Formatting but use 0 and 1 instead of 0 and 100 for Min and Max. Conditional formatting also has the option of not showing the number just the bar if you prefer as well.

Alex
 
Upvote 0
Thank you for replying Alex! I input your formula but it outputs "100%" if the value in Column A equals 6/19/15 and the value in Column C equals 7/1/15.
 
Upvote 0
Today is 6/19/15 so time remaining is all the time allocated in the first place, meaning 100% of the time.

If, on the other hand, you want to know how much time has passed, try this:
=IF(C1=TODAY(),1,1-(C1-TODAY())/(C1-A1))

Alex
 
Upvote 0

Forum statistics

Threads
1,223,249
Messages
6,171,031
Members
452,374
Latest member
keccles

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