Forum Discussion

PeterBowen's avatar
PeterBowen
Copper Contributor
Jun 26, 2023

Product Count and Number Sold

I have a series of Excel worksheets in a single workbook that I create every month to track sales of products so I have columns for ITEM purchased and QUANTITY which is always one. There are up to 90 different items but the quantity sold is always 1.

 

1. How can I combine all of the worksheets into a single workbook for each year?

 

2. I would like to know how to see how many of each item I have sold?

 

Peter Bowen

  • mtarler's avatar
    mtarler
    Silver Contributor
    why not CREATE them in 1 worksheet to start with? Then if you want to see just 1 month you can just filter by that month. I would recommend a column for date to start and to 'Format as a Table' (from the home menu). Once all the data is in 1 table in addition to filters you can use pivot tables or other functions to break the data out by month, or item or customer or whatever you want. Basically it is easier to start with a single data source than having man y fragmented sources.
  • mathetes's avatar
    mathetes
    Silver Contributor

    PeterBowen 

     

    I just want to underscore what mtarler has already said. You would be way ahead if you were to work with a single data table showing:

    date, item, quantity, etc.

    from that single database you could create a pivot table that shows data by month, quarter, year

     

    Excel can do wonders with single well designed data tables. We humans like to break things out by month (or other sub-divisions) because it's clearer to our eyes and minds. But don't impose that structure on Excel; let it do the breaking out after you have collected ALL the raw data into a single table.

    • PeterBowen's avatar
      PeterBowen
      Copper Contributor

      mathetes 

       

      How do I create a data table from my existing workbook which has 3 years of data in separate worksheets

      • mathetes's avatar
        mathetes
        Silver Contributor

        PeterBowen 

         

        How do I create a data table from my existing workbook which has 3 years of data in separate worksheets?

         

        Probably most effectively done (unless there's a Power Query way to do it, which isn't a method I know)...by a series of copy/paste operations. This is assuming that the data in each sheet are arrayed in the same way. You'll need to add a column representing dates (months and years if that's the level of granularity you employ), but other than that just make sure you're putting each row from each month's sheet into the appropriate columns. Three years would have 36 months; so copying and pasting, adding dates, will take a bit of time, but not a lot, especially in view of the time it'll save once done.

Resources