Number of days remaining based on 3 dates

Brian2me

New Member
Joined
Feb 3, 2021
Messages
2
Office Version
  1. 2016
Platform
  1. Windows
Hello Exel Guru's,
I'm trying to calculate the either number of days remaining or the numbers of days between start and finish if an finish date has been entered.
A2 = Start Date = 01 Jan 21
B2 = Target Date = 01 Mar 21
C2 = Actual Date Completed = 01 Feb 21

D2 = if C2 = Blank then calculate B2-today() to calculate number of days left to complete task, but if C2 has a completed date then B2-A2 to understand number of days it took to complete task
 

Excel Facts

Workdays for a market open Mon, Wed, Friday?
Yes! Use "0101011" for the weekend argument in NETWORKDAYS.INTL or WORKDAY.INTL. The 7 digits start on Monday. 1 means it is a weekend.
=IF ( C2 = "" , B2 - today() , B2 - A2 )

Would that be C2 - A2 actual days to complete ? rather than B2 - A2 , which is target date - start date and would not change

=IF ( C2 = "" , B2 - today() , C2 - A2 )
 
Upvote 0
Solution
Thanks you etaf, yes you were correct with the 2nd option. Disappointed that I didn't figure the formula out. I had used =if(C2="","", B2 - today() , B2 - A2)) but obviously failed due to first section
 
Upvote 0

Forum statistics

Threads
1,214,897
Messages
6,122,151
Members
449,068
Latest member
shiz11713

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