If Statements, Dates, % and Blank Cells

KarenH119

New Member
Joined
Feb 4, 2010
Messages
6
Hello,
I am trying to figure out a way to for a cell to calculate the difference between two dates divided by the total days to = % of completion for a project. In that same cell if there is no start or end date leave the cell blank, but if today date is greater than end date make the cell say 100%
I was trying the following formula but it was not doing everything I wanted.

Showing in cell H11
=IF(C11<=H$5,(IF(G11>=H$5,(H$5-C11)/(G11-C11),1))," ")
 

Excel Facts

Using Function Arguments with nested formulas
If writing INDEX in Func. Arguments, type MATCH(. Use the mouse to click inside MATCH in the formula bar. Dialog switches to MATCH.
If start date is in C11 and end date is in G11, try:
Code:
=IF(OR(C11="",G11=""),"",IF(TODAY()>=G11,1,(TODAY()-C11)/(G11-C11)))
I didn't know what H5 represents. If the above doesn't work, please clarify H5.
 
Upvote 0

Forum statistics

Threads
1,214,945
Messages
6,122,393
Members
449,081
Latest member
JAMES KECULAH

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