What am I doing wrong?

Nathan Slatton
Nathan Slatton ✭✭✭✭

Shows #Incorrect Argument set

=IF(AND(IF([Jan Scheduling Location]@row = "BPHO|Belen Public Health Office", [Jan Appt Type]@row, "Err1"), IFERROR(INDEX(DISTINCT(COLLECT([BPHO|Belen Public Health Office AT]:[BPHO|Belen Public Health Office AT], [BPHO|Belen Public Health Office AT]:[BPHO|Belen Public Health Office AT], NOT(ISBLANK(@cell )))), Index@row), "err2"), "err3"))

Tags:

Best Answer

  • Kelly Moore
    Kelly Moore Community Champion
    Answer βœ“

    @Nathan Slatton

    A report might do this for you, depending on your sheet structure. You would Group by Location then by Appt Type, counting the Apt Types

    As Paul and I are indicating, your IF/AND is not syntaxed correctly. As you have it written, there is no 'AND' portion of the formula, that is two simultaneous criteria that must be met for the IF statement to be true.

    Try the INDEX/COLLECT without the IF statements but include the location in the COLLECT.

    IFERROR(INDEX(DISTINCT(COLLECT([BPHO|Belen Public Health Office AT]:[BPHO|Belen Public Health Office AT], [Jan Scheduling Location]:[Jan Scheduling Location],"BPHO|Belen Public Health Office", [BPHO|Belen Public Health Office AT]:[BPHO|Belen Public Health Office AT], <>"")), Index@row),"err3")

    Does this give you the correct list?

    Kelly

Answers

Help Article Resources

Want to practice working with formulas directly in Smartsheet?

Check out the Formula Handbook template!