Index and Match or VLookup or both
I am trying to recreate this excel formula in smartsheet:
=IF(ISNA(VLOOKUP(B2,'Participating Hotels'!$B:$B,2,FALSE)),"Not Available","Available")
- "B2" is the Property ID column on my sheet where the results will sit. So it will be ID@row
- Participating Hotels $B:$B is the base sheet column where all of the data sits. So this would be ID:ID, of course linked to the other sheet.
- Instead of 2, it would need to be 1 because the ID column in Smartsheet is column 1.
Darla Brown
What you meditate on, you empower!
Overachiever - Core Product Certified - Mobilizer - EAP
Best Answer
-
That's an odd error to be getting. Hmm...
=IF(COUNTIFS({Other Sheet ID Column}, ID@row) = 0, "Unavailable", "Available")
What happens with that one?
Answers
-
Can you show a screenshot of each sheet with sensitive/confidential data removed, blocked, and/or replaced with "dummy data" as needed?
-
I have this formula now just so I can verify it is available, but would like for it to say "Available" or Unavailable".
My second step would be to show Chain segment and Property Type data from the Benchmarker list since properties will update those.
Darla Brown
What you meditate on, you empower!
Overachiever - Core Product Certified - Mobilizer - EAP
-
What determine if it is "Available" or Unavailable"?
-
If that ID is also found on the Benchmarker List.
Darla Brown
What you meditate on, you empower!
Overachiever - Core Product Certified - Mobilizer - EAP
-
Ok. Try something like this then...
=IF(CONTAINS(ID@row, {Other Sheet ID Column}), "Available", "Unavailable")
-
It is defaulting to Unavailable for all even though they are there. hmmm.
Darla Brown
What you meditate on, you empower!
Overachiever - Core Product Certified - Mobilizer - EAP
-
How is the ID entered on each of the sheets?
-
Both sheets were imported from excel. Benchmarker List is this year's list. The 2nd sheet is last year's list I need to update. So instead of manually searching, I wanted to do a formula. The VLookup I had originally, just returned the ID which told me they were available. So then I would have to manually type over the ID to say "Available" or "Unavailable. They are both Text/Number formatted columns.
Darla Brown
What you meditate on, you empower!
Overachiever - Core Product Certified - Mobilizer - EAP
-
Ok. Lets try a FIND function instead...
=IF(FIND(ID@row, {Other Sheet ID Column}) > 0, "Available", "Unavailable")
-
Returns #INVALID DATA TYPE
Darla Brown
What you meditate on, you empower!
Overachiever - Core Product Certified - Mobilizer - EAP
-
Is that error present anywhere within the {Other Sheet ID Column} range?
-
No. Just the data.
Darla Brown
What you meditate on, you empower!
Overachiever - Core Product Certified - Mobilizer - EAP
-
That's an odd error to be getting. Hmm...
=IF(COUNTIFS({Other Sheet ID Column}, ID@row) = 0, "Unavailable", "Available")
What happens with that one?
-
That worked!
Darla Brown
What you meditate on, you empower!
Overachiever - Core Product Certified - Mobilizer - EAP
Help Article Resources
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
Check out the Formula Handbook template!