Database - macro

SOSVBA

Board Regular
Joined
Aug 30, 2009
Messages
210
I have the following situation:

I have a workbook that contains a number of spreadsheets;
Each spreadsheet is a year - e.g. 2010, 2009, 2008,...2005

Each each spreadsheet for the year - contains monthly sales for each of our stores.

I have created macros (not active tools - I believe that it is called). I have created macros that allow me to select a year, store, and provide me the yearly sales for that store.

The drop down menus (combo boxes) were created on a separate sheet.
When I select a store, I provide useful info such as the store ranking, sales increase/decrease % when compared to another period (which is also selected).


Question:

I would like to display for a particular month the company's same stores sales increase/decrease.

The same store sales increase/decrease is computed by not simply taking the total sales for one period vs total sales for another period.

Rather - the total sales for one period vs another period must have the same stores.

For example - if in May 2010, there were stores A, B, C, D, E but in May 2009, there were stores A, B, C, F

I need to only include the common stores in May 2010 and May 2009 - being A, B, C

Is there anyway of doing this? I don't want to compute it manually. I would like the flexibility of allowing the user to select any 2 periods and the same stores sales % increase/decrease be shown.


Thank you
 

Excel Facts

Format cells as currency
Select range and press Ctrl+Shift+4 to format cells as currency. (Shift 4 is the $ sign).

Forum statistics

Threads
1,213,539
Messages
6,114,221
Members
448,554
Latest member
Gleisner2

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