Help with iferror

Hi,

I have this formula that i have written. It works fine, but I am getting blank fields, when I was expecting N/A.

The product line row has EBS, JDE, SAP.

The TLR Scope is Financials, HR, Payroll

For EBS I want values returned and N/A for the other product lines.

=IFERROR(IF(AND($[Product Line]@row = "EBS", $[TLR Scope]@row = "Financials"), INDEX({Add-on}, MATCH($Country@row, {Country}, 0))), "N/A")


What am i missing?

Thanks,

Peggy

Comments

  • Genevieve P.
    Genevieve P. Employee Admin

    Hi Peggy,

    You have no "Value if False" for your IF statement which then defaults to blank.

    So if the Product line isn't EBS or the TLR Scope isn't Financials, then it will return blank... it won't even go on to the INDEX(MATCH formula because it will only do that if the previous criteria are met.

    Try adding in N/A as part of the IF statement as well:


    =IFERROR(IF(AND($[Product Line]@row = "EBS", $[TLR Scope]@row = "Financials"), INDEX({Add-on}, MATCH($Country@row, {Country}, 0)), "N/A"), "N/A")


    Let me know if that makes sense!

    Cheers,

    Genevieve

Help Article Resources

Want to practice working with formulas directly in Smartsheet?

Check out the Formula Handbook template!