Help w/ IF OR formula

Options
jmo
jmo ✭✭✭✭✭✭
edited 03/19/21 in Formulas and Functions

Hi team - I have a formula that is working for 90% of my selections.

I column called Type with the following drop down options:

  • 1st Line Control Testing
  • 1st Line Management Identified
  • 2nd Line Compliance Self-Identified
  • Audit Identified
  • Compliance Identified
  • Compliance Testing
  • DE Assessment Identified
  • ECORT-IT
  • Risk Management Identified

When I select one of the Types I need the MII/SLOD/3LOD column to show the appropriate selection from the drop down menu:

  • FLOD/MII
  • SLOD
  • 3LOD

I am using the following formula and everything works EXCEPT when I select Audit Identified:

=IF(OR(Type@row = "1st Line Control Testing", Type@row = "1st Line Management Identified", Type@row = "DE Assessment Identified"), "FLOD/MII", IF(OR(Type@row = "2nd Line Compliance Self-Identified", Type@row = "Compliance Identified", Type@row = "Compliance Testing", Type@row = "ECORT-IT", Type@row = "Risk Management Identified"), "SLOD", IF(OR(Type@row = "Audit Identified", "3LOD"))))

Here's what happens:

Any ideas why I'm getting the INCORRECT ARGUMENT error when that is selected but every other selection works as expected?

Best Answer

  • Kelly Moore
    Kelly Moore ✭✭✭✭✭✭
    Answer ✓
    Options

    Hey @jmoser

    In your last criteria, you haven't closed off your OR statement before the "3LOD". With only the one term, the OR isn't necessary.

    Try this

    =IF(OR(Type@row = "1st Line Control Testing", Type@row = "1st Line Management Identified", Type@row = "DE Assessment Identified"), "FLOD/MII", IF(OR(Type@row = "2nd Line Compliance Self-Identified", Type@row = "Compliance Identified", Type@row = "Compliance Testing", Type@row = "ECORT-IT", Type@row = "Risk Management Identified"), "SLOD", IF(Type@row = "Audit Identified", "3LOD")))

    cheers,

    Kelly

Answers

  • Kelly Moore
    Kelly Moore ✭✭✭✭✭✭
    Answer ✓
    Options

    Hey @jmoser

    In your last criteria, you haven't closed off your OR statement before the "3LOD". With only the one term, the OR isn't necessary.

    Try this

    =IF(OR(Type@row = "1st Line Control Testing", Type@row = "1st Line Management Identified", Type@row = "DE Assessment Identified"), "FLOD/MII", IF(OR(Type@row = "2nd Line Compliance Self-Identified", Type@row = "Compliance Identified", Type@row = "Compliance Testing", Type@row = "ECORT-IT", Type@row = "Risk Management Identified"), "SLOD", IF(Type@row = "Audit Identified", "3LOD")))

    cheers,

    Kelly

  • jmo
    jmo ✭✭✭✭✭✭
    Options

    That 100% worked!!!

    Thanks for your input, @KDM !

Help Article Resources

Want to practice working with formulas directly in Smartsheet?

Check out the Formula Handbook template!