Forum Discussion

DPFinan's avatar
DPFinan
Copper Contributor
Aug 18, 2023
Solved

Need some help with a switch statement

I am trying to get a cell in a spreadsheet to evalute a formula that is coming up with a percentage and then based on ranges populate the cell with a text value this is what I have so far but I am mi...
  • SergeiBaklan's avatar
    SergeiBaklan
    Aug 18, 2023

    DPFinan 

    Perhaps

    =IFNA(
        LOOKUP(
            Q4 / B4 * 100,
            {0.01, 25, 50, 75, 96},
            {
                "Crippled",
                "Heavy Damage",
                "Medium Damage",
                "Light Damage",
                "Unmanaged"
            }
        ),
        "?"
    )

Resources