calculating progress of Time or Date

lezawang

Well-known Member
Joined
Mar 27, 2016
Messages
1,805
Office Version
  1. 2016
Platform
  1. Windows
Hi
I want to calculate the progress. I have Start and End date and also Start and End time. I want to find the progress as of today and time now.

So I used conditional formatting --> new --> based on cell value -->bar
(please see attached excel file).

for date
A2= Start date: 1/1/2019
C2= End date: 12/12/2019

So the bar Min value set to A2 and Max value set to C2. The value of the cell set to =today()
Now I want to calculate the progress in term of % as of today. So I wrote this formula

= today()/(C2-A2)

But the result is not correct

I did the same thing for time

A9= Start time: 7:00 am
C9= End time: 4:00 pm

progress = time(hour(now()),minute(now(),second(now())/ (C9-A9)

But again the result is not correct. Can you please show me how to find the progress in this 2 cases? Thank you very much.


https://drive.google.com/file/d/11Zxq7xn06v9f2Et7Ak6AA8xLZrbenXP2/view?usp=sharing
 

Excel Facts

Do you hate GETPIVOTDATA?
Prevent GETPIVOTDATA. Select inside a PivotTable. In the Analyze tab of the ribbon, open the dropown next to Options and turn it off
Yes it works :) thank you so much. would you kindly explain to me why subtracted today()-start time or for the second example time()-start time? thank you so much for the help really.
 
Upvote 0
Basic linear interpolation:

Pct Complete = (now - begin) / (end - begin)

The period of performance is (end - begin) and the current state is (now - begin).

If you get on I-35 in Austin at mile marker 233 headed to Dallas at mile marker 450, then at mile marker 337 in Waco (or Whacko), you are

(337 - 233) / (450 - 233) ~ 48% complete.
 
Last edited:
Upvote 0

Forum statistics

Threads
1,223,896
Messages
6,175,260
Members
452,627
Latest member
KitkatToby

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