If and Index Match

emmawallace24
emmawallace24 ✭✭
edited 10/18/23 in Formulas and Functions

Hi, I'm trying to use an If statement in my index match formula to skip rows that are pulling from a blank to not overwrite them. I want to skip over pulling from the blank demand ID rows and not overwrite the SubTower row. The below formula doesn't work, should I be using IFERROR function?


=IF(ISBLANK([Demand ID]@row, " ",INDEX({SubTower}, MATCH([Demand ID]@row, {Demand Sort}, 0)), "")))

Answers

  • Paul Newcome
    Paul Newcome ✭✭✭✭✭✭

    It looks like your parenthesis are off.

    =IF(ISBLANK([Demand ID]@row), " ",INDEX({SubTower}, MATCH([Demand ID]@row, {Demand Sort}, 0)))

    Come see me in Seattle at ENGAGE 2024! I will be at the 10xViz partner booth throughout as well as the "Lets Talk About Community" Meet & Eat table on Tuesday from 11:45am - 12:45pm!

    CERTIFIED SMARTSHEET PLATINUM PARTNER

    10xViz.com

  • emmawallace24
    emmawallace24 ✭✭
    edited 10/18/23

    Hi thanks for the help Paul. This formula worked but it still made the subtower column input blank. I want to keep what is already in the subtower column if Demand ID is blank. Only use index match if demand ID has criteria. should I be using IFERROR or no ISBLANK?

  • emmawallace24
    emmawallace24 ✭✭
    edited 10/18/23

    @Paul Newcome This formula worked but it still made the subtower column input blank. I want to keep what is already in the subtower column if Demand ID is blank. Only use index match if demand ID has criteria. should I be using IFERROR or no ISBLANK?

  • Paul Newcome
    Paul Newcome ✭✭✭✭✭✭

    You cannot have manual entry and a formula in the same cell. You will need to put the formula in a different column to maintain manual entry in the Subtower column.

    Come see me in Seattle at ENGAGE 2024! I will be at the 10xViz partner booth throughout as well as the "Lets Talk About Community" Meet & Eat table on Tuesday from 11:45am - 12:45pm!

    CERTIFIED SMARTSHEET PLATINUM PARTNER

    10xViz.com

Help Article Resources

Want to practice working with formulas directly in Smartsheet?

Check out the Formula Handbook template!