+ Reply to Thread
Results 1 to 2 of 2

sumif statement

  1. #1
    Ted Metro
    Guest

    sumif statement

    I have a big table of sales numbers broken out by month and by product across
    the top, with customers on the left. So it looks something like this
    starting at A1

    column A B C D E
    F G
    Jan-04 Feb-04
    Mar-04
    widgets gidgets widgets gidgets
    widgets gidgets
    Customer A 6 4 5 3
    8 3
    Customer B 1 11 6 9
    10 2

    So I want a column at the end that will display the total by product.
    So for Customer-A for widgets it would be B3+D3+F3, and for gidgets C3+E3+G3.

    I tried a sumif and it worked for customer A, but not for customer B.
    My sumif was -- =sumif($B$2:$G$2,"=widgets",$B3:$G3)

    What is the formula I need so that I can build it and then copy it down?



  2. #2
    JulieD
    Guest

    Re: sumif statement

    Hi Ted

    as far as i can tell your formula should work .. i used your formula and
    mine (as below) and both returned the same results:
    =SUMIF($B$2:$G$2,"widgets",B3:G3)

    could there be another problem - calculation set to manual (tools / options
    / calculation tab)??
    Cheers
    JulieD



    "Ted Metro" <TedMetro@discussions.microsoft.com> wrote in message
    news:11DEDA3C-6AF5-461C-AD22-305E8F6635DC@microsoft.com...
    >I have a big table of sales numbers broken out by month and by product
    >across
    > the top, with customers on the left. So it looks something like this
    > starting at A1
    >
    > column A B C D E
    > F G
    > Jan-04 Feb-04
    > Mar-04
    > widgets gidgets widgets gidgets
    > widgets gidgets
    > Customer A 6 4 5 3
    > 8 3
    > Customer B 1 11 6 9
    > 10 2
    >
    > So I want a column at the end that will display the total by product.
    > So for Customer-A for widgets it would be B3+D3+F3, and for gidgets
    > C3+E3+G3.
    >
    > I tried a sumif and it worked for customer A, but not for customer B.
    > My sumif was -- =sumif($B$2:$G$2,"=widgets",$B3:$G3)
    >
    > What is the formula I need so that I can build it and then copy it down?
    >
    >




+ 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