Database - macro


Board Regular
Aug 30, 2009
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).


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

Some videos you may like

Excel Facts

Format cells as time
Select range and press Ctrl+Shift+2 to format cells as time. (Shift 2 is the @ sign).

Subscribe on YouTube

Watch MrExcel Video

Forum statistics

Latest member

This Week's Hot Topics

  • Turn fraction around
    Hello I need to turn a fraction around, for example I have 1/3 but I need to present as 3/1
  • TIme Clock record reformatting to ???
    Hello All, I'd like some help formatting this (Tbl-A)(Loaded via Power Query) [ATTACH type="full" width="511px" alt="PQdata.png"]22252[/ATTACH]...
  • TextBox Match
    hi, I am having a few issues with my code below, what I need it to do is when they enter a value in textbox8 (QTY) either 1,2 or 3 the 3 textboxes...
  • Using Large function based on Multiple Criteria
    Hello, I can't seem to get a Large formula to work based on two criteria's. I can easily get a oldest value based one value, but I'm struggling...
  • Can you check my code please
    Hi, Im going round in circles with a Compil Error End With Without With Here is the code [CODE=rich] Private Sub...
  • Combining 2 pivot tables into 1 chart
    Hello everyone, My question sounds simple but I do not know the answer. I have 2 pivot tables and 2 charts that go with this. However I want to...