Help

Remove #Error when field isn't filled out

2473 3
cancel
Showing results for 
Search instead for 
Did you mean: 
Catherine_Murp1
4 - Data Explorer
4 - Data Explorer

Hello,

I am using the WORKDIFF formula to calculate the difference between workdays.

This is formula is this:

WORKDAY_DIFF({Date Started}, {Date Finished})

But I’m getting the #Error when the “Date Started” isn’t filled out. Any suggestions? Thank you!

3 Replies 3
Claudio
6 - Interface Innovator
6 - Interface Innovator

Try this:
IF({Date Started},WORKDAY_DIFF({Date Started}, {Date Finished}),“No Date Started”)

To include a check for Date Finished, you can use this:
IF({Date Started},IF({Date Finished},WORKDAY_DIFF({Date Started}, {Date Finished}),“No Date Finished”),“No Date Started”)

Catherine_Murp1
4 - Data Explorer
4 - Data Explorer

Thank you! It was throwing an error, so I removed the " (quotes) replaced with ’

IF({Date Started},WORKDAY_DIFF({Date Started}, {Date Finished}),‘No Date Started’)

and this one:

IF({Date Started},IF({Date Finished},WORKDAY_DIFF({Date Started}, {Date Finished}),‘No Date Finished’),‘No Date Started’)

Thank you for your help!

Claudio
6 - Interface Innovator
6 - Interface Innovator

I see that when you paste my formula the quotes are being changed to smart quotes: the first one goes up to the left, and the second one goes up to right.
You can still use double quotes if you type them directly into the formula, or you can type single quotes, as you did.
Glad it worked.