I need help with the IF function in a string based on multiple selections in a cell.
I need the formula to have difference values based on users selecting multiple items in a cell.
Follow is my attempt at the formula, but clearly not working:
=IF(HAS([RESOURCES]@row, "RESOURCE 1"), 1), IF([RESOURCES], "RESOURCE 1", "RESOURCE 2"), 2), IF([RESOURCES], "RESOURCE 1", "RESOURCE 2", "RESOURCE 3"), 3))
Image of the Smartsheet:
RESOURCES | TOTAL SHTS |
|---|
RESOURCE 1
RESOURCE 2
RESOURCE 3 | |
The formula should result with the following:
IF ONLY RESOURCE 1 IS SELECTED - THEN TOTAL SHEETS = 1
IF RESOURCE 1 AND 2 IS SELECTED - THEN TOTAL SHEETS = 2
IF RESOURCE 1, 2 AND 3 IS SELECTED - THEN TOTAL SHEETS = 3
Most probably pretty straight forward, but you never know!