If then formula for dates with multiple criteria

Sometimes what seems to be a simple formula, leaves me frustrated far too long. Here to humbling myself …

I have an audit field (date field), I am trying to build a formula that will return the results of the audit based on date. When building the COUNTIF formula using both a date column and several test columns, I am getting the #incorrect argument set" error. I suspect it is because of the column properties being different. So I created a helper column to convert the date to "Today", "Yesterday" or "Past".

Separately these formulas work -

=IF([AUDIT DATE]@row = TODAY(-1), "Yesterday", "Blank")

=IF([AUDIT DATE]@row = TODAY(), "Today", "Blank")

When I nest them together, I the results are #UNPARSEABLE

=IF(AUDIT DATE]@row = TODAY(), "Today", [AUDIT DATE]@row = TODAY(-1), "Yesterday", "Blank")

I know it has to be something simple but I can not figure it out.

Dawn

Best Answer

Answers

Help Article Resources

Want to practice working with formulas directly in Smartsheet?

Check out the Formula Handbook template!