Want To Find Many Words At a Time ,MultiSearch Function

amolpomane

New Member
Joined
Jul 7, 2012
Messages
7
Hello All,

I have my Search Query Report of Adwords with me ,it contains more than 5000 search queries and I have a list of around 20-30 words that I need to find in this list ,I want to find all search queries or data that contain a word given.

Basically I want a multisearch function that will find all 20 values and will show the result.I have both coloumns in one sheet only .


Can you help me ?
 

Excel Facts

Which lookup functions find a value equal or greater than the lookup value?
MATCH uses -1 to find larger value (lookup table must be sorted ZA). XLOOKUP uses 1 to find values greater and does not need to be sorted.
Hi,
let Your Data (Queries) be in Column A and let a word be in B1, then try the code:
Code:
Sub Finding()
Dim tbl, tblh, i&, j&, x&, word As String

word = Cells(1, 2).Value
a = Cells(Rows.Count, 1).End(xlUp).Row

tbl = Application.Transpose(Range("A1:A" & a))

For i = LBound(tbl) To UBound(tbl)
  tblh = Split(tbl(i), " ")
  For j = LBound(tblh) To UBound(tblh)
    If tblh(j) = word Then x = x + 1
  Next j
Next i

MsgBox x
End Sub
Best regards.
 
Upvote 0
I tried it ,But it just gives me a number of times a word present in this list .I want those rows also which contains the list numbers ,this code is working for a single word only ,I want to search a multiple words at a time and ,want searched rows .
 
Upvote 0

Forum statistics

Threads
1,213,546
Messages
6,114,256
Members
448,558
Latest member
aivin

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