IF AND In Between Formula

Samantha S.
Samantha S. ✭✭✭✭✭

I'm attempting to mark whether a sale is valid based on the following criteria:

  1. Clinic must have had an AHHI-1 or AHNN-1 tracking code and
  2. Invoiced Date on the sale must be between the Start and End Date of the event.

I've tried this multiple different ways but keep getting errors. Here is what I have:

=IF(AND([Clinic ID]@row = {Clinic ID}, [Invoiced Date]@row >= {Start Date}, [Invoiced Date]@row <= {End Date}, OR({Code} = "AHHI-1", {Code} = "AHNN-1"), 1, 0))

Validation Sheet

image.png

Event Tracking Sheet

image.png

Best Answer

Answers

Help Article Resources

Want to practice working with formulas directly in Smartsheet?

Check out the Formula Handbook template!