Macro to extract data based on certain criteria

amandeep08

Board Regular
Joined
Mar 20, 2011
Messages
130
Office Version
  1. 365
I have one sales report having 4 sheets each containing 8 Lac rows. D Column contain customer name.

I have another data where customer name and weekly time period (Weekly, Bi-Weekly or monthly) and date is mentioned is mentioned.

I want to extract the data from 4 sheets based on the second file from a macro.

I want to run the query that if i will select weekly and date range, Macro will fetch all records from 4 sheets and provide me the sales report of all the customers mentioned in the second file mapped to weekly billing as per date range.
 
Last edited:

Excel Facts

Bring active cell back into view
Start at A1 and select to A9999 while writing a formula, you can't see A1 anymore. Press Ctrl+Backspace to bring active cell into view.
Dear All,

Can someone pl help here:

Below is my Query:

I have one sales report having 4 sheets each containing 8 Lac rows. B Column contain customer name.

I have another data where customer name and date is mentioned.

I want to extract the data from 4 sheets based on the second file from a macro.

I want to run the query that if i will date range, Macro will fetch all records from 4 sheets and provide me the sales report of all the customers mentioned in the second file mapped to customer name and date range.

In the image, raw data is in sheet 1 while the master is in sheet 2. Once i run the query, it will fetch the yellow line items from sheet 1 and prepare the another sheet.
 

Attachments

  • Image.png
    Image.png
    59 KB · Views: 13
Upvote 0

Forum statistics

Threads
1,214,922
Messages
6,122,281
Members
449,075
Latest member
staticfluids

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