+ Reply to Thread
Results 1 to 11 of 11

Is there a formula to list the number of items sold in a month from a long list of data ..

  1. #1
    Registered User
    Join Date
    01-05-2013
    Location
    london
    MS-Off Ver
    Libreoffice Calc
    Posts
    5

    Angry Is there a formula to list the number of items sold in a month from a long list of data ..

    Hi Guys just joined and have a problem.

    I have searched the internet for the solution and am getting ready to start head butting the wall. I sure there is a very simple answer to my problem but google just wont give me it!

    What I have is two columns, one (Column A) has a list of products in it ie Coats, Shoes, Hat, etc. The other (Column B) just has the Month they were sold in ie, January, well you get the idea.

    What I want to do is list how many Coats were sold in each month and so forth for all the products. Is there a formula for this? I'm pretty sure there is but I'm getting nowhere is google or guessing.

    Any help would be most appreciated!

    Thanks for you help and apologies if its just me being thick.
    Last edited by 3o3; 01-05-2013 at 01:20 PM. Reason: as requested by mod

  2. #2
    Valued Forum Contributor
    Join Date
    02-08-2012
    Location
    wales
    MS-Off Ver
    Excel 2007
    Posts
    964

    Re: Help with formula which I can't figure out..

    SUMPRODUCT will do it if you upload a book ill write the formula.

    essencally is =sumproduct(((Range1="hats")*(Range2="january")),Range3)

    where range 1 is your products rnage 2 is your months and range 3 is your slaes
    The Importance of INDEX - A GUIDE TO INDEX'S OTHER USES
    <--- If a post helps hit the star

  3. #3
    Forum Guru :) Sixthsense :)'s Avatar
    Join Date
    01-01-2012
    Location
    India>Tamilnadu>Chennai
    MS-Off Ver
    2003 To 2010
    Posts
    12,788

    Re: Help with formula which I can't figure out..

    Use Text function Column-C for getting the Month from columnb. Like =TEXT(A2,"MMMM") and use pivot Table to get the summary of each month's sale.


    If your problem is solved, then please mark the thread as SOLVED>>Above your first post>>Thread Tools>>
    Mark your thread as Solved


    If the suggestion helps you, then Click *below to Add Reputation

  4. #4
    Forum Expert Tony Valko's Avatar
    Join Date
    12-31-2011
    Location
    Pittsburgh
    MS-Off Ver
    2002, 2007:2013
    Posts
    18,890

    Re: Help with formula which I can't figure out..

    Try this...

    Data in the range A2:B21

    Summary area:

    D2:Dn = unique items
    E1:P1 = month names, Jan, Feb, Mar, etc.

    Enter this formula in E2:

    =SUMPRODUCT(--($A$2:$A$21=$D2),--($B$2:$B$21=E$1))

    Copy across to P2 then down as needed.
    Biff
    Microsoft MVP Excel
    Keep It Simple Stupid

    Let's Go Pens. We Want The Cup.

  5. #5
    Registered User
    Join Date
    01-05-2013
    Location
    london
    MS-Off Ver
    Libreoffice Calc
    Posts
    5

    Re: Help with formula which I can't figure out..

    Apologies I've not given all the information. SUMPRODUCT does the counting fine individually. I forgot to mention on some days I sell more than one product and I have a thrid column with a number in it. Would I just multiply the SUMPRODUCT by that number? Or can it take that number into account? Sorry again.

    @ Sixthsense I don't understand what a pivot table is sorry.
    Last edited by 3o3; 01-05-2013 at 10:27 AM.

  6. #6
    Forum Expert Tony Valko's Avatar
    Join Date
    12-31-2011
    Location
    Pittsburgh
    MS-Off Ver
    2002, 2007:2013
    Posts
    18,890

    Re: Help with formula which I can't figure out..

    Quote Originally Posted by 3o3 View Post
    Apologies I've not given all the information. SUMPRODUCT does the counting fine individually. I forgot to mention on some days I sell more than one product and I have a thrid column with a number in it. Would I just multiply the SUMPRODUCT by that number? Or can it take that number into account? Sorry again.
    I don't understand your layout.

    Can you post a SMALL sample file that shows us the results you expect?

  7. #7
    Registered User
    Join Date
    01-05-2013
    Location
    london
    MS-Off Ver
    Libreoffice Calc
    Posts
    5

    Re: Is there a formula to list the number of items sold in a month from a long list of dat

    Nevermind I figured it out I think. SUMPRODUCT handles it all. This is my formula.

    =(SUMPRODUCT(SALES.B5:SALES.B1048576="COATS",SALES.A5:SALES.A1048576="January",SALES.C5:SALES.C1048576))

    Column A is the Month
    Column B is the Item
    Column C is the Number of Items

    Seems to work though it is a long formula.

  8. #8
    Forum Expert Tony Valko's Avatar
    Join Date
    12-31-2011
    Location
    Pittsburgh
    MS-Off Ver
    2002, 2007:2013
    Posts
    18,890

    Re: Is there a formula to list the number of items sold in a month from a long list of dat

    I've neve seen a "dot" used as the sheet delimiter.

    You don't need to repeat the sheet name:

    =SUMPRODUCT(--(SALES!B5:B1048576="COATS"),--(SALES!A5:A1048576="January"),SALES!C5:C1048576)

    If you're referencing that many rows then you're not using Excel 2003 as is displayed in your "user ID" stamp.

    If you're uisng Excel 2007 or later then you can use the more efficient SUMIFS function:

    =SUMIFS(sales!C:C,sales!B:B,"COATS",sales!A:A,"January")

  9. #9
    Registered User
    Join Date
    01-05-2013
    Location
    london
    MS-Off Ver
    Libreoffice Calc
    Posts
    5
    Apologies, I left everything to the default. I dont use excel be libreoffice calc. Ive updated my profile.

  10. #10
    Forum Expert Tony Valko's Avatar
    Join Date
    12-31-2011
    Location
    Pittsburgh
    MS-Off Ver
    2002, 2007:2013
    Posts
    18,890

    Re: Is there a formula to list the number of items sold in a month from a long list of dat

    OK, well, I have no experience with that application so I don't know what would work and what wouldn't work.

  11. #11
    Registered User
    Join Date
    01-05-2013
    Location
    london
    MS-Off Ver
    Libreoffice Calc
    Posts
    5

    Re: Is there a formula to list the number of items sold in a month from a long list of dat

    I think its pretty much the same as 2003 excel with a few improvements, but not a advanced as excel 2007 onwards. But good enough for free!

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1