Look up a range of cell values and extract matches

glynn1969

Board Regular
Joined
Nov 24, 2018
Messages
80
Office Version
  1. 365
Platform
  1. Windows
Hello and hope you experts can help.

I am new to world of macros but have just how powerful they are when used correctly.

On sheet 1 I have in column A a list of invoice numbers from 1 to 100 (which may contain duplicates). On sheet 1 column B I have associated invoice value....with more data in columns c to AZ.

On sheet 2 column ZZ (in column zz. so theyre. hidden a bit) I have a range of invoice numbers, let's say...1,22,43,47,56,78,88. And on sheet 3. in column ZZ I have invoice numbers 2,35,38,57,59,79.....this pattern continues across multiple sheets covering all 100 invoice numbers.

Is there a vba code that will allow me to extract all data from sheet 1 into the relevant sheets in the workbook based on the ZZ column.

Hope you can help as currently doing manual filter taking me hours.

Thanking you for any guidance.
 

Excel Facts

How to create a cell-sized chart?
Tiny charts, called Sparklines, were added to Excel 2010. Look for Sparklines on the Insert tab.
On sheet 1 I have in column A a list of invoice numbers from 1 to 100 (which may contain duplicates). On sheet 1 column B I have associated invoice value....with more data in columns c to AZ.
On sheet 2 column ZZ (in column zz. so theyre. hidden a bit) I have a range of invoice numbers, let's say...1,22,43,47,56,78,88. And on sheet 3. in column ZZ I have invoice numbers 2,35,38,57,59,79.....this pattern continues across multiple sheets covering all 100 invoice numbers.
Is there a vba code that will allow me t
pretend sheet2pretend sheet3
pretend sheet 1
inv00144inv00247inv00968
inv00247inv00865inv00659
inv00350inv00350inv00144
inv00453inv00556
inv00556
inv00659
inv00762
inv00865
inv00968formula finding 47
against invoice 2
=OFFSET($A$11,MATCH(G12,$A$12:$A$20,0),1)
if there are two inv 005 in above list do you want too bring across the total ?

<colgroup><col><col span="13"></colgroup><tbody>
</tbody>
 
Upvote 0
Hello, thank you for looking at my query. I would actually like both inv05 to pull across in two separate lines. Hope this helps
 
Upvote 0
Hello, thank you for looking at my query. I would actually like both inv005 to pull across in two separate lines. Hope this helps
 
Upvote 0

Forum statistics

Threads
1,214,585
Messages
6,120,394
Members
448,957
Latest member
Hat4Life

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