needing Index / Match formula help, If cell matches cell in another sheet, return value from

Zdnow
Zdnow โœญโœญ

Needing to populate SAP Item # is BPX MM# matches on another sheet.

Sheet ref.jpg

Best Answers

Answers

  • jessica.smith
    jessica.smith โœญโœญโœญโœญโœญโœญ
    edited 11/08/24

    @Zdnow

    =IFERROR(INDEX({Source_SAP}, MATCH([BPX MM#]@row, {Source_BPX}, 0)), "")

    Does this formula work for you?

    Jessica Selano

    jessica.selano@outlook.com

  • Zdnow
    Zdnow โœญโœญ

    Got it to work, thanks! Only one more challenge. Thoughts on how It could have it also return a 0 if the source MM# is blank but does have an SAP#? Currently it returns the first SAP# it finds that may not have an MM# assigned yet.

    indexmatch omit.jpg
  • jessica.smith
    jessica.smith โœญโœญโœญโœญโœญโœญ
    Answer โœ“

    You could add another IF statement to return a blank ("") or 0 if the BPX MM# is blank.

    =IFERROR(IF(ISBLANK([BPX MM#]@row), 0, INDEX({Source_SAP}, MATCH([BPX MM#]@row, {Source_BPX}, 0))), "")

    Jessica Selano

    jessica.selano@outlook.com

  • Zdnow
    Zdnow โœญโœญ
    Answer โœ“

    genius. thanks you!

Help Article Resources

Want to practice working with formulas directly in Smartsheet?

Check out the Formula Handbook template!