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
- Customer Resources
- 64.8K Get Help
- 434 Global Discussions
- 138 Industry Talk
- 470 Announcements
- 4.9K Ideas & Feature Requests
- 129 Brandfolder
- 148 Just for fun
- 65 Community Job Board
- 486 Show & Tell
- 33 Member Spotlight
- 2 SmartStories
- 300 Events
- 36 Webinars
- 7.3K Forum Archives