If there is a date in the column return "Complete"

TYOzzy

New Member
Joined
Oct 5, 2011
Messages
16
Hello,

I'm trying to come up with a formula to put in cell K2 that says, if there is a date (any date at all) in cell J2 then return "Complete" in cell K2, but if there is no date in cell J2, subtract today's date from cell I2 and place the value in work days in cell K2.

I've tried =IF(J2>=I2,"Complete",TODAY()-I2) , but it returns the word complete even if there is a blank in J2. It also doesn't count for workdays.

Thanks in advance for your help!
TYOzzy
 

Excel Facts

Back into an answer in Excel
Use Data, What-If Analysis, Goal Seek to find the correct input cell value to reach a desired result
Take a look in the Excel help which will explain in far better than I, but in essence, the N function is looking for a number and not text.

You could also use...

=IF(ISNUMBER(J2),"Complete",NETWORKDAYS(I2,TODAY()))
 
Upvote 0
Could something like this work for you...

=IF(N(J2),"Complete",NETWORKDAYS(I2,TODAY()))

Out of curiosity... Is there a way to get it to calculate the months and leftover days instead of all days? Thanks again! It's not necessary, I'm just curious. :)
 
Upvote 0
Take a look in the Excel help which will explain in far better than I, but in essence, the N function is looking for a number and not text.

You could also use...

=IF(ISNUMBER(J2),"Complete",NETWORKDAYS(I2,TODAY()))

Ahh thank you. I knew about the "isnumber", but not the N. I fought with the formula for a long time before I gave up and came to the forums. :)
 
Upvote 0

Forum statistics

Threads
1,225,071
Messages
6,182,694
Members
453,132
Latest member
nsnodgrass73

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