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

Get help while writing formula
Click the italics "fx" icon to the left of the formula bar to open the Functions Arguments dialog. Help is displayed for each argument.
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,543
Messages
6,120,123
Members
448,947
Latest member
test111

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