SEARCH function

TOKYOJ1

New Member
Joined
Aug 14, 2017
Messages
30
Hi,

I would like to search of repeating words in excel across multiple worksheets and display the results as sheet numbers and frequency table::

Eg:
Voltaire

Sheet 111
Freq: 3

Sheet 200
Freq: 6

Sheet 303
Freq: 1

Can somebody advise the formula for that?

Thanks
TJ
 

Excel Facts

Do you hate GETPIVOTDATA?
Prevent GETPIVOTDATA. Select inside a PivotTable. In the Analyze tab of the ribbon, open the dropown next to Options and turn it off
I am looking for Voltaire across the whole workbook.

I can do this using the "Find and Select" tab but I need to use a formula for this purpose.
 
Upvote 0
Apologies, the correct response should be specific range within each sheet: A1 to A20

Create a range which houses the names of all of the relevant sheets, i.e. 111, 200, 205, 300, 303, etc.
Select this range and name the selection SheetList.



Book1
AB
1Voltaire
2wherefreq
31113
42001
53032
Sheet1


A1 houses a search word of interest.

In A3 control+shift+enter, not just enter, and copy down:

=IFERROR(INDEX(SheetList,SMALL(IF(COUNTIFS(INDIRECT("'"&SheetList&"'!A1:A20"),$A$1)>0,ROW(SheetList)-ROW(INDEX(SheetList,1,1))+1),ROWS($A$3:A3))),"")

In B3 just enter and copy down:

=IF($A3="","",COUNTIFS(INDIRECT("'"&$A3&"'!A1:A20"),$A$1))
 
Upvote 0
Hi,

The formula works great.

Is it possible to search for a specific word within a string of text within a cell?
Eg: Sheet 10: Cell A1:"As Voltaire was walking along..."

Regards,
 
Upvote 0
Hi,

The formula works great.

Is it possible to search for a specific word within a string of text within a cell?
Eg: Sheet 10: Cell A1:"As Voltaire was walking along..."

Regards,

Add wildcard around the A1 calls... That is:

=IFERROR(INDEX(SheetList,SMALL(IF(COUNTIFS(INDIRECT("'"&SheetList&"'!A1:A20"),"*"&$A$1&"*")>0,ROW(SheetList)-ROW(INDEX(SheetList,1,1))+1),ROWS($A$3:A3))),"")

and

=IF($A3="","",COUNTIFS(INDIRECT("'"&$A3&"'!A1:A20"),"*"&$A$1&"*"))
 
Upvote 0

Forum statistics

Threads
1,214,923
Messages
6,122,286
Members
449,076
Latest member
kenyanscott

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