Skip to main content
Solved

Leave Blank instead of #ERROR

  • May 2, 2023
  • 4 replies
  • 321 views

Forum|alt.badge.img+2
  • Participating Frequently
  • 7 replies
Hello,
 
I'm current working with this formula:
 
WORKDAY({Start Date},{SLA Test}  ---which is the formula in the 'due date' column.

I would like for the Due Date to be left blank instead of #Error if there is no start date or SLA.

Can someone help with an additional formula that I could add to the one above? 

Thank you. 

Best answer by aleaja

You could write this at least two ways.

1) Using ISERROR:

IF( ISERROR( WORKDAY( {Start Date}, {SLA Test} ) ), "", WORKDAY( {Start Date}, {SLA Test} ) )

2) Checking for values in the relevant fields:

IF( AND( {Start Date}, {SLA Test} ), WORKDAY( {Start Date}, {SLA Test} ), "" )

4 replies

Forum|alt.badge.img+5
  • Inspiring
  • 8 replies
  • Answer
  • May 2, 2023

You could write this at least two ways.

1) Using ISERROR:

IF( ISERROR( WORKDAY( {Start Date}, {SLA Test} ) ), "", WORKDAY( {Start Date}, {SLA Test} ) )

2) Checking for values in the relevant fields:

IF( AND( {Start Date}, {SLA Test} ), WORKDAY( {Start Date}, {SLA Test} ), "" )

Forum|alt.badge.img+2
  • Author
  • Participating Frequently
  • 7 replies
  • May 2, 2023

Thank you. How do I add the original formula and one of the formulas you provided? Can I have two formulas together? If so, how does it look? 


Forum|alt.badge.img+5
  • Inspiring
  • 8 replies
  • May 3, 2023

Hi @JaclynB, both of the formulas in my initial response include your original formula. The two formulas I offered are two ways of doing the same thing. You can use the one you prefer.


Forum|alt.badge.img+2
  • Author
  • Participating Frequently
  • 7 replies
  • May 4, 2023

Thank you for your help. The errors are gone however the formatting is not correct. Can you help me so it shows as a (work) day?

Background: 

When start date and SLA number are entered the due date automatically updates using a work day formula.