Vlookup/Index/Contains HELP!!!
Hello,
I have been trying for several days now to grab a contact name if there is a partial match on an address. I have one sheet that will have the address (sheet1) and I want it to pull the owner contact info from second sheet if the address is contained in the address field of sheet2 into sheet1 in the 'Who?' column.
1st sheet has part of the address and the column that needs the info from sheet2:
Contact sheet (2nd sheet)
The current formula that I am using is in the 1st image.
As you can see that the property addresses will not be an exact match. I thought that maybe the unit number was messing it up but I put that in a separate column. The first part of the address will be included in Range2 in the Test Contact Sheet and there will not be an exact match.
Any and all suggestion are welcomed!
Thank you,
Lisakay
Best Answer
-
Hi @LisakayS
It looks like you just have one of the references identified incorrectly.
In your CONTAINS function, instead of a {cross sheet range} you'll want to point to the cell in this current sheet: [Property Address]@row
Try:
=IFERROR(INDEX(COLLECT({Test Contact Sheet Range 1}, {Test Contact Sheet Range 2}, CONTAINS( [Property Address]@row, @cell)), 1), "None")
Cheers,
Genevieve
Join us at Smartsheet ENGAGE 2024 🎉
October 8 - 10, Seattle, WA | Register now
Answers
-
I think you will find your answer here:
https://community.smartsheet.com/discussion/70471/contains-cross-reference-formula
I am bouncing along on a bus, so I can't test it, but it seems like it will work for you.
-
Hey James,
Thank you for the reference but what I am trying to achieve is slightly different. I will not have multiple occurrences to be returned and the data (address) I have to compare is not an exact match. I am trying to find the name associated with the full address by using a partial address. Each address will have 1 value/owner to return.
Seems others have had luck trying to achieve this with COLLECT and CONTAINS.
Thanks again,
Lisakay
-
Hi @LisakayS
It looks like you just have one of the references identified incorrectly.
In your CONTAINS function, instead of a {cross sheet range} you'll want to point to the cell in this current sheet: [Property Address]@row
Try:
=IFERROR(INDEX(COLLECT({Test Contact Sheet Range 1}, {Test Contact Sheet Range 2}, CONTAINS( [Property Address]@row, @cell)), 1), "None")
Cheers,
Genevieve
Join us at Smartsheet ENGAGE 2024 🎉
October 8 - 10, Seattle, WA | Register now
Help Article Resources
Categories
- All Categories
- 14 Welcome to the Community
- Smartsheet Customer Resources
- 62.1K Get Help
- 348 Global Discussions
- 199 Industry Talk
- 427 Announcements
- 4.4K Ideas & Feature Requests
- 133 Brandfolder
- 127 Just for fun
- 127 Community Job Board
- 455 Show & Tell
- 28 Member Spotlight
- 1 SmartStories
- 282 Events
- 36 Webinars
- 7.3K Forum Archives
Check out the Formula Handbook template!