Find text in cell and return values in array

zjamespryor

New Member
Joined
Aug 7, 2014
Messages
12
Office Version
  1. 365
Platform
  1. Windows
Hello,

I have a sheet that needs to search for text in a column, and then return the corresponding value next to it. I need the results stacked together so that there aren't blank rows between results. I can't use VBA for this as I'm actually doing it in Google Sheets. Thank you in advance for any help you can offer!
Array Help.xlsx
ABCDEFGHI
1
2Person (Desired results)Lookup ->DogData Validation
3JamesDog
4DanCat
5Horse
6Pigeon
7
8PersonAnimals
9JamesHorse, Dog
10SarahCat, Horse
11DanDog
12AaronPigeon
13JeffCat, Pigeon
Results Page
Cells with Data Validation
CellAllowCriteria
E2List=$H$3:$H$6
 

Excel Facts

How to show all formulas in Excel?
Press Ctrl+` to show all formulas. Press it again to toggle back to numbers. The grave accent is often under the tilde on US keyboards.
How about
Excel Formula:
=FILTER(H9:H13,ISNUMBER(SEARCH(E2,I9:I13)))
 
Upvote 0
Solution
How about
Excel Formula:
=FILTER(H9:H13,ISNUMBER(SEARCH(E2,I9:I13)))
Works like a charm. I've been smacking myself for almost 3 hours coming up with all sorts of long complicated formulas that have not worked. Simple and effective. Thank you so much!
 
Upvote 0
You're welcome & thanks for the feedback.
 
Upvote 0

Forum statistics

Threads
1,215,352
Messages
6,124,453
Members
449,161
Latest member
NHOJ

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top