Making referencing another sheet dynamic

Hello I want to have the following sentence work. If Fname "Tom" is a match on sheet 1 & sheet 2 sheets, then import food allergies from sheet 2 to sheet 1.


I actually managed to write the code that worked!

=IF(FNAME@row = {NHO Demo Form Range 3}, {NHO Demo Form Range 4}, 0)

The problem is when I drag the code down to the next line it does not work. It pulls a zero and I'm not understanding why?

Answers

  • Kelly Moore
    Kelly Moore ✭✭✭✭✭✭

    Hi @ForrestPRIM

    I believe the INDEX/MATCH is the formula set you are looking for. The IFERROR function allows us to avoid having #NOMATCH appear in a cell if a match is not found.

    =IFERROR(INDEX({NHO Demo Form Range 4}, MATCH(FNAME@row, {NHO Demo Form Range 3},0)),"")

Help Article Resources

Want to practice working with formulas directly in Smartsheet?

Check out the Formula Handbook template!