# Calculate Due Date from 4 possible columns

Options

I'm fairly new to Smartsheet and need to provide a due date based on the most recent response received from a vendor. I've got the formula for the column working for the first 2 scenarios below, but am having trouble getting the correct syntax to calculate dates when responses 3 & 4 are received.

These are all in the same row of the Smartsheet, and the chart shows the 4 potential scenarios.

Here's what I have so far for the first two scenarios.

=IF(ISBLANK([Response 2]@row), [Response 1]@row + 14, [Response 2]@row+14

Due Date Scenarios:

If Responses 4, 3, 2 are blank and 1 is not blank, due date shows Response 1 + 14 days.

If Responses 4, 3 are blank, and 2, 1 are not blank, due date shows Response 2 + 14 days.

If Response 4 is blank, and 3, 2, 1 are not blank, due date shows Response 3 + 14 days.

If Response 4 is not blank, due date shows Response 4 + 14 days.

Thanks in advance!

## Best Answers

• ✭✭✭✭✭✭
Answer ✓
Options

HI @Jill Burch,

Rather than needing a big nested IF statement, you could just use MAX instead:

=MAX([Response 1]@row:[Response 4]@row) + 14

This is of course assuming you're not going to have later dates in earlier responses!

• Answer ✓
Options

@Nick Korna Thanks for the great solution! Much easier than what I was trying to do.

## Answers

• ✭✭✭✭✭✭
Answer ✓
Options

HI @Jill Burch,

Rather than needing a big nested IF statement, you could just use MAX instead:

=MAX([Response 1]@row:[Response 4]@row) + 14

This is of course assuming you're not going to have later dates in earlier responses!

• Answer ✓
Options

@Nick Korna Thanks for the great solution! Much easier than what I was trying to do.

## Help Article Resources

Want to practice working with formulas directly in Smartsheet?

Check out the Formula Handbook template!