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

#### TYOzzy

##### New Member
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.

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
Could something like this work for you...

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

Could something like this work for you...

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

Works beautifully. Thanks so much! What does the N do for the formula? I appreciate it greatly.

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()))

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.

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.

Replies
7
Views
54
Replies
5
Views
666
Replies
7
Views
203
Replies
5
Views
415
Replies
7
Views
161

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.

### Which adblocker are you using?

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

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