How To Make Cell Blank If Two Other Cells Are Not Populated With Dates

Consult123

Banned user
Joined
Dec 30, 2023
Messages
22
Office Version
  1. 365
  2. 2010
Platform
  1. Windows
I have a formula that automatically calculates the percentage of completion on a project between two dates (the start date and end date). The formula I chose to use is: =IFERROR(MIN((DATEDIF(D11,TODAY(),"d")+1)/(DATEDIF(D11,E11,"d")+1),100%),0). However, when column D and E are not populated Column L shows 100% complete. How do I make Column L blank if Column D and E are not both populated?

1703952691755.png
 

Excel Facts

What is the last column in Excel?
Excel columns run from A to Z, AA to AZ, AAA to XFD. The last column is XFD.
I am not ratifying your formula. But wrap it in an AND function:
(you don't really need DATEDIF for days).

Excel Formula:
=IF(AND(d11 = "", e11="","",IFERROR(MIN((DATEDIF(D11,TODAY(),"d")+1)/(DATEDIF(D11,E11,"d")+1),100%),0))

again, please use the xl2bb add in. I(link below, i mentioned this in your other question).
 
Last edited:
Upvote 0
Solution
I am not ratifying your formula. But wrap it in an AND function:
(you don't really need DATEDIF for days).

Excel Formula:
=IF(AND(d11 = "", e11="","",IFERROR(MIN((DATEDIF(D11,TODAY(),"d")+1)/(DATEDIF(D11,E11,"d")+1),100%),0))

again, please use the xl2bb add in. I(link below, i mentioned this in your other question).
I don't understand your response but did get xl2bb to work after a bit of struggling. Please see below
Goals List Creation.xlsx
ABDEFGL
3Task IDTask NameStart DateDue DateActual % CompleteStatusProgress Tracker
4TASK-001Support new user acquisition in targeted regions12/29/2312/1/20241%IN PROGRESS1%
5TASK-002Improve customer satisfaction and reduce churn10/02/231/2/20245%OFF TRACK97%
6TASK-003Bolster revenue from new products and services12/03/2312/3/20241%ON TRACK 8%
7TASK-004Increase upsell and cross-sell revenue from existing customers01/04/2312/4/202450%AT RISK51%
8Q22024
9Task IDTask NameStart DateDue DateStatusProgress Tracker
10TASK-004Ramp up talent acquisition to strengthen teams12/30/202312/30/2023100%COMPLETE100%
11TASK-005Cultivate a customer communityCANCELLED100%
12TASK-006Increase employee productivity through automation1/3/202412/3/20240%NOT STARTED0%
2024
Cell Formulas
RangeFormula
L10:L12,L4:L7L4=IFERROR(MIN((DATEDIF(D4,TODAY(),"d")+1)/(DATEDIF(D4,E4,"d")+1),100%),0)
 
Upvote 0
I am not ratifying your formula. But wrap it in an AND function:
(you don't really need DATEDIF for days).

Excel Formula:
=IF(AND(d11 = "", e11="","",IFERROR(MIN((DATEDIF(D11,TODAY(),"d")+1)/(DATEDIF(D11,E11,"d")+1),100%),0))

again, please use the xl2bb add in. I(link below, i mentioned this in your other question).
I get the following error with your formula
1703965638735.png
 
Upvote 0
Excel Formula:
=IF(AND(d11 = "", e11=""),"",IFERROR(MIN((DATEDIF(D11,TODAY(),"d")+1)/(DATEDIF(D11,E11,"d")+1),100%),0))

but, I think a better formula is in Post #9 of the other thread. Here it is again:
Excel Formula:
=IF(D11="","",IF(D11>Today(),0,(Today()-D11+1)/(E11-D11+1)))
 
Last edited:
Upvote 0

Forum statistics

Threads
1,223,900
Messages
6,175,276
Members
452,629
Latest member
SahilPolekar

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