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

What do {} around a formula in the formula bar mean?
{Formula} means the formula was entered using Ctrl+Shift+Enter signifying an old-style array formula.
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,223,948
Messages
6,175,579
Members
452,652
Latest member
eduedu

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