Search a phrase in a sheet then display that phrase in the cell

Jazzzola324

New Member
Joined
Jun 1, 2019
Messages
7
Hello,
I am trying to figure out a formula which will search a separate sheet for four different phases. Then, display the one phrase that is in the sheet.

I need to search the exact phrase and the cells it is search will only contain that phrase ( i.e. I’m not search a paragraph of text)

I tried combining IF and INDEX, but that didn’t work.

any help you can give will be much appreciated
 

Excel Facts

What did Pito Salas invent?
Pito Salas, working for Lotus, popularized what would become to be pivot tables. It was released as Lotus Improv in 1989.
With the 4 phrases in A1:A4 in sheet containing the formula, and searching for phrases in Sheet XYZ

=IF(COUNTIF('Sheet XYZ'!1:1048576,A1)>0,A1,
IF(COUNTIF('Sheet XYZ'!1:1048576,A2)>0,A2,
IF(COUNTIF('Sheet XYZ'!1:1048576,A3)>0,A3,
IF(COUNTIF('Sheet XYZ'!1:1048576,A4)>0,A4,"NOT FOUND"))))

Search this sheet

Excel 2016 (Windows) 32 bit
A
B
C
D
E
1
2
Punch Judy
3
cat and dog
4
apples & pears
5
Heart of stone
6
7
Sheet: Sheet XYZ

Returns this (formula is in cell B5 )
Excel 2016 (Windows) 32 bit
A
B
1
cat and dogs
2
apples & pears
3
Punch & Judy
4
heart of gold
5
apples & pears
Sheet: Sheet2

Note
or if preferred place phrases in the formula like this...

=IF(COUNTIF('Sheet XYZ'!1:1048576,"my phrase 1")>0,"my phrase 1",
etc
 
Upvote 0

Forum statistics

Threads
1,214,542
Messages
6,120,116
Members
448,945
Latest member
Vmanchoppy

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