Follow

Keep Up to Date with the Most Important News

By pressing the Subscribe button, you confirm that you have read and are agreeing to our Privacy Policy and Terms of Use
Contact

Find a string that contains a value and return the adjacent cell

I have a spreadsheet where I automatically get hundreds urls and spreadsheet names (half home address half full names) and put them in the spreadsheet column. I only need around 50 of the urls based on a set of addresses I track.

Each spreadsheet name has the address inside of it that I need to search for.

Somehow I need to search the spreadsheet name column for an address in another cell, and then return the url that is adjacent to the column. Even if it returned both the url column and the spreadsheet name column that would be great.

MEDevel.com: Open-source for Healthcare and Education

Collecting and validating open-source software for healthcare, education, enterprise, development, medical imaging, medical records, and digital pathology.

Visit Medevel

I’ve tried a few things, most notably the formula below which has worked for me in the past for similar issues, but this formula doesn’t explicitly include searching the cells for the string I am looking for.

=ARRAYFORMULA(IFERROR(A1:A,QUERY(‘Finding INformation’!A:B,"select A where B contains "A1:A"")))

I created a spreadsheet with fewer values and no sensitive information. https://docs.google.com/spreadsheets/d/1oxtM_hQVIjBoB5SJ2b_b8oP5XIj4Gv5EngNx6KI4LiE/edit?usp=sharing
Based on the spreadsheet I would need for example "link 1" to the right of "Address 1", imagining that link 1 actually had a link in it so I can’t use the URL as a search parameter.

>Solution :

added the following formula to your sheet

=BYROW(A:A,LAMBDA(ax,if(ax="",,xlookup(ax&"*",'Finding INformation'!B:B,'Finding INformation'!A:A,,2))))

enter image description here

Add a comment

Leave a Reply

Keep Up to Date with the Most Important News

By pressing the Subscribe button, you confirm that you have read and are agreeing to our Privacy Policy and Terms of Use

Discover more from Dev solutions

Subscribe now to keep reading and get access to the full archive.

Continue reading