How to do index match based on two columns

I have two sheets. One that has just first name and last and the other which I will call the source file that has first name, last, phone numbers and a lot of other things. I am trying to see if there is a formula in which I can use Index Match to check both the First Name and Last Name to return the phone number from the source file.



Best Answer

  • AravindGP
    AravindGP Community Champion
    Answer ✓

    Hi @ealexis


    You can use Index/collect. Your formula would be =INDEX(COLLECT({Phone number column reference}, {First name column reference}, [First Name]@row, {Last Name column reference}, [Last Name]@row), 1)

    Thanks,

    Aravind GP| Delivery Manager

    Atturra Data & Integration

    M: +61493337445

    E:Aravind.GP@atturra.com

    W: www.atturra.com

Answers

  • AravindGP
    AravindGP Community Champion
    Answer ✓

    Hi @ealexis


    You can use Index/collect. Your formula would be =INDEX(COLLECT({Phone number column reference}, {First name column reference}, [First Name]@row, {Last Name column reference}, [Last Name]@row), 1)

    Thanks,

    Aravind GP| Delivery Manager

    Atturra Data & Integration

    M: +61493337445

    E:Aravind.GP@atturra.com

    W: www.atturra.com

  • ealexis
    ealexis ✭✭

    Hi Aravind,

    Thank you so much! I understand this formula and it works!

Help Article Resources

Want to practice working with formulas directly in Smartsheet?

Check out the Formula Handbook template!