Help with iferror

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([email protected], {Country}, 0))), "N/A")


What am i missing?

Thanks,

Peggy

Comments

  • 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([email protected], {Country}, 0)), "N/A"), "N/A")


    Let me know if that makes sense!

    Cheers,

    Genevieve

Sign In or Register to comment.