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

Did you know Excel offers Filter by Selection?
Add the AutoFilter icon to the Quick Access Toolbar. Select a cell containing Apple, click AutoFilter, and you will get all rows with Apple
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,203,179
Messages
6,053,949
Members
444,695
Latest member
asiaciara

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