Formula to search column on different sheet
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
-
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
-
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.
-
Yay!!
Happy to help
Kind regards
Debbie
Categories
- All Categories
- 14 Welcome to the Community
- Smartsheet Customer Resources
- 63.8K Get Help
- 410 Global Discussions
- 219 Industry Talk
- 457 Announcements
- 4.7K Ideas & Feature Requests
- 143 Brandfolder
- 136 Just for fun
- 57 Community Job Board
- 459 Show & Tell
- 31 Member Spotlight
- 1 SmartStories
- 298 Events
- 37 Webinars
- 7.3K Forum Archives