match macro from a list

John Caines

Well-known Member
Joined
Aug 28, 2006
Messages
1,155
Office Version
  1. 2019
Platform
  1. Windows
Hi All,
I have a spreadsheet with a list of urls and data columns on a tab called 'Queries',, 5 columns of data (I'll upload spreadsheet so it helps visualise exactly what I have).
I have another tab in the workbook called 'my list'. This can list search terms (words) in Column A2 down,,, usually about 10 keyword phrases,, but could be many more,, IE up to 100

What I really would love to be able to do is have an tab sheet called' results',, and this could have a macro button.
When I press it, it looks at all the keyword phrases on sheet 'my list' (from A2 down) and then looks to find (match) the same phrases that would be in the sheet 'Queries' in column A2 down.

All matches (all data as well on the same row) would be put into sheet results (from A 2 down).

Simple eh! :)

Only, I'm not clever enough to know how to do / write this :(

Hope someone can help me out here.
I include an excel sheet attached with sample data...arhhhh,,, I see I cannot attach a sheet here.
here's a dropbox link

Queries tab
Top queriesClicksImpressionsCTRPosition
شركة عقارات ابوظبي11100%1
property group11100%2
abu dhabi house for sale11100%20
property management companies in dubai01500%81.52
property management dubai01380%59.54
property management in dubai01070%69.65
property management company in dubai0700%67.56
dubai property management company0610%80.39
property management companies in uae0440%56.3
property management company dubai0420%72.45
mortgage broker dubai0370%46
list of property management companies in dubai0360%53.81
property management0330%50.97
mortgage brokers in dubai0310%36.23
ajman property for sale0240%53.96
facility management0220%91.77
mortgage brokers uae0200%58.2
real estate management companies in dubai0200%71.75
property management companies abu dhabi0190%17.26
property management abu dhabi0180%15.06
villas in abu dhabi0180%80.78
property management companies dubai0180%89.22
property management uae0170%26.29



my list tab
Queries-mrexcel-sample-sheet.xlsm
ABC
1My Search Query
2property management dubai
3property management abu dhabi
4mortgage consultants in dubai
5real estate companies in ajman
6propery management
7ajman studio for rent
8
9
my list


results tab
Queries-mrexcel-sample-sheet.xlsm
ABCDEFGHIJ
1Matched QueriesClicksImpressionsCTRPosition
2
3
4
5Maybe a clickable macro button here?
6
7
8
9
10
11
results


Hope this helps (hope this xl2bb addin has worked!

Many thanks in advance.
Hope it all makes sense

Best regards
john C
 

Excel Facts

Workdays for a market open Mon, Wed, Friday?
Yes! Use "0101011" for the weekend argument in NETWORKDAYS.INTL or WORKDAY.INTL. The 7 digits start on Monday. 1 means it is a weekend.
Hi All,,
I actually forgot to show what the data to be returned would / should look like if you clicked the macro button in the 'results' tab!
I'd left that tab (results) blank! :(

Sorry about that.
Below is what I would hope could be returned from my above example.
Queries-mrexcel-sample-sheet.xlsm
ABCDE
1Matched QueriesClicksImpressionsCTRPosition
2property management dubai01380%59.54
3property management abu dhabi0180%15.06
4mortgage consultants in dubai090%46.22
5real estate companies in ajman050%35
6propery management020%16
7ajman studio for rent010%38
results


Example spreadsheet again is here

Hope this all makes sense, and someone might be able to create some vba code to run this,,, it would be really helpful.

I don't think it's a huge vba problem, but I just don't know how to create this in VBA :(
If anybody needs any more info, please let me know
Many thanks all
Best regards
John C
 
Upvote 0

Forum statistics

Threads
1,214,630
Messages
6,120,634
Members
448,973
Latest member
ChristineC

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