Options
✭✭

Hi,

I am trying to add days from a date, depending on the value of another cell. Instead of adding the days it appears to be concatenating. In the screen shot below the desired result would be an Expected Sample Date of 04/01/21. Instead it is displaying 03/01/2132.

Here are the Columns I am using:

1. Completed in Lab Date
2. Number of Days (this is based on a column formula, so will vary)
3. Expected Sample Date (Cell 1 + Cell 2)

The formula for Number of Days is:

=IF(Crop@row = "Cotton", "70", IF(Crop@row = "Soy", "32"))

This is the formula I'm using when I try to add Completed In Lab Date and Number of Days and what I'm getting below in a screenshot:

=[Completed in Lab Date]@row + [Number of Days]@row

When I add the number of days manually (no formula) everything behaves as it should.

Thanks in advance for any help!

• ✭✭✭✭✭✭
Options

I hope you're well and safe!

Try this for the Number of Days one.

```=IF(Crop@row = "Cotton", 70, IF(Crop@row = "Soy", 32))
```

Did that work/help?

I hope that helps!

Be safe and have a fantastic weekend!

Best,

Andrée Starå | Workflow Consultant / CEO @ WORK BOLD

SMARTSHEET EXPERT CONSULTANT & PARTNER

Andrée Starå | Workflow Consultant / CEO @ WORK BOLD

W: www.workbold.com | E:andree@workbold.com | P: +46 (0) - 72 - 510 99 35

Feel free to contact me for help with Smartsheet, integrations, general workflow advice, or anything else.

• ✭✭✭✭✭✭
Options

I hope you're well and safe!

Try this for the Number of Days one.

```=IF(Crop@row = "Cotton", 70, IF(Crop@row = "Soy", 32))
```

Did that work/help?

I hope that helps!

Be safe and have a fantastic weekend!

Best,

Andrée Starå | Workflow Consultant / CEO @ WORK BOLD

SMARTSHEET EXPERT CONSULTANT & PARTNER

Andrée Starå | Workflow Consultant / CEO @ WORK BOLD

W: www.workbold.com | E:andree@workbold.com | P: +46 (0) - 72 - 510 99 35

Feel free to contact me for help with Smartsheet, integrations, general workflow advice, or anything else.

• ✭✭
Options

This worked perfectly @Andrée Starå! I had a feeling it was something super simple.

Have a wonderful weekend and stay safe also!

Jen

• ✭✭✭✭✭✭
Options

Excellent!

You're more than welcome!

SMARTSHEET EXPERT CONSULTANT & PARTNER

Andrée Starå | Workflow Consultant / CEO @ WORK BOLD

W: www.workbold.com | E:andree@workbold.com | P: +46 (0) - 72 - 510 99 35

Feel free to contact me for help with Smartsheet, integrations, general workflow advice, or anything else.

## Help Article Resources

Want to practice working with formulas directly in Smartsheet?

Check out the Formula Handbook template!