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

How to change case of text in Excel?
Use =UPPER() for upper case, =LOWER() for lower case, and =PROPER() for proper case. PROPER won't capitalize second c in Mccartney
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,215,172
Messages
6,123,443
Members
449,100
Latest member
sktz

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