Formula to search column on different sheet

Michael Culley
Michael Culley ✭✭✭✭✭
edited 12/09/19 in Smartsheet Basics

I want to create a formula in a checkbox column. I want the formula to go like this:

 

I have 2 smartsheets. 1 is a sign-in sheet which will have a column for employee number.

The 2nd smartsheet will be a smartsheet to search through the first smartsheet and check off any employee who's number appears on that sheet.

 

For example:

Sheet1 - 3 columns - "employee number", "employee name", "date"

Sheet2 - 3 columns - "employee number", "employee name", checkbox column if employee showed up.

 

Something like =If({employeenumberSHEET1} contains [employeenumberONcurrentrow], 1)

 

I feel like this is doable I'm just getting confused why I can't get it to work.

 

Thanks for any and all advice.

Comments

  • Debbie Sawyer
    Debbie Sawyer ✭✭✭✭✭✭

    Using your scenario above this worked for me,

    =IFERROR(IF(VLOOKUP([Employee Number]@row, {test sheet Range 1}, 1, false) = [Employee Number]@row, 1, 0), 0)

     

    Where {test sheet Range 1} is refering to Sheet 1 Employee Number and Employee Name columns.

    Happy to help further if required.

    Debbie Sawyer Consultant & Training Manager

     

     

    Smarter Processes mean happy people in successful businesses

  • Hi Debbie,

    I'm trying to use this formula for the same purpose but for some reason when I apply it, every flag symbol in the column shows up red when the cell that the formula is referring to is completely blank. I'm guessing this is happening because there are blank cells in the corresponding column on the second sheet, so the formula is returning a match. Any idea how to correct this?

    Thanks!

    Nicole

  • Debbie Sawyer
    Debbie Sawyer ✭✭✭✭✭✭

    Oh Nicole

    Hmmm.

    How about a further nested IF looking for empty cells and returning 0 for those.

    =IFERROR(IF(VLOOKUP([Employee Number]@row, {test sheet Range 1}, 1, false) = "", 0, IF(VLOOKUP([Employee Number]@row, {test sheet Range 1}, 1, false) = [Employee Number]@row, 1, 0)), 0)

    Does this work?

    Kind regards

    Debbie

  • That worked! Thanks for your help.

  • Debbie Sawyer
    Debbie Sawyer ✭✭✭✭✭✭

    Yay!!

    Happy to help ;)

    Kind regards

    Debbie