VBA to create a sub-set of list (advance filter)

VBA_Newbie

Active Member
Joined
Jan 7, 2005
Messages
258
Hi folks,

I was wondering if anyone could help me get started on a macro I'm trying to create (or point me in the direction of a similar thread).

Here's what I'm trying to accomplish:

I have a "master" list that looks as follows:
Subway Van Westendorp Pricing Model.xls
BCDEFGHIJK
1PricesPurchaseProbabilities
2RegionProductTooExpensiveExpensiveBargainTooCheapTooExpensiveExpensiveBargainTooCheap
3WestA2.501.991.990.990.000.810.810.00
4NorthB3.002.501.801.500.000.090.270.00
5EastC3.002.001.981.000.000.270.810.00
6SouthD3.001.591.390.990.000.270.270.00
7WestE3.002.001.991.200.000.810.270.00
8NorthA3.002.502.501.990.000.810.270.00
9EastB3.002.001.501.500.000.090.270.00
10SouthC3.002.991.990.990.000.270.810.00
11WestD3.003.001.990.990.000.030.810.00
12NorthE3.053.002.502.000.000.270.810.00
13EastA3.292.892.291.590.000.090.270.00
14SouthB3.393.002.391.790.000.090.270.00
15WestC3.492.992.491.990.000.270.810.00
16NorthD3.502.991.990.990.000.270.810.00
17EastE3.503.001.990.990.000.270.810.00
18SouthA3.502.291.501.250.000.270.270.00
19WestB3.502.991.990.990.000.030.090.00
20NorthC3.503.002.501.500.000.030.030.00
RAWDATA


I'm trying to create a sub-routine that will select specific sub-sets of this master list and paste it onto another work sheet. That is, I might want have only rows where the REGION is 'West' and the PRODUCT is "D".

Any suggestions?
 

Excel Facts

Copy PDF to Excel
Select data in PDF. Paste to Microsoft Word. Copy from Word and paste to Excel.
It would work...but not really what I'm looking for.

You see, I'm modifying an existing macro. That macro is used to run pricing scenarios with 1 product and 1 region. I want to have it so that the user can select a specific product in a specific region and then run the pricing scenarios. To do this, I need to select a cut of data (using the REGION and PRODUCT) and paste it into the another worksheet. The other worksheet is where the existing macro gets its data from in order to run the scenarios. I hope I've explained this properly.

Many thanks.
 
Upvote 0

Forum statistics

Threads
1,214,998
Messages
6,122,639
Members
449,093
Latest member
Ahmad123098

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