+ Reply to Thread
Results 1 to 6 of 6

Table Question

  1. #1
    Registered User
    Join Date
    10-21-2003
    Posts
    13

    Table Question

    My table is as follows:

    A B C … H
    Desc Value Pcs per Qty
    1 Widget A 2 1
    2 Widget A 2 2
    3 Widget A 2 3
    4 Widget B 1 1
    5 Widget C 3 2
    6 Widget C 2 3


    If the columns A, B, and C were constant and never changed and only column H changes from job to job, how do I:

    SUM the TOTAL number of pieces (pcs per X qty) if the value in column B is "A"?

    I need to do this without creating a seperate mutliplication column for the sum of the pieces. It all needs to be done without adding any new columns.

    Help!

    Thanks,

    Brett
    Last edited by NBVC; 02-10-2009 at 09:02 AM.

  2. #2
    Forum Expert NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003:2010
    Posts
    34,898

    Re: Table Question

    Have a look at Sumif() function in Excel Help file.. I think that is what you want...
    Where there is a will there are many ways.

    If you are happy with the results, please add to the contributor's reputation by clicking the reputation icon (star icon) below left corner

    Please also mark the thread as Solved once it is solved. Check the FAQ's to see how.

  3. #3
    Registered User
    Join Date
    10-21-2003
    Posts
    13

    Re: Table Question

    Correct me if I am wrong, but the last argument of the SUMIF statement is the Sum-range, which are the cells to sum. The problem I am having is that I am simply not summarizing a group of cells, I have to first multiply two columns together to get a value and that would be the argument that gets summed, but I cannot add a column to do the multiplication, it has to be within the SUMIF formula. How do I do multiplication within a SUMIF formula?

    Thanks

  4. #4
    Forum Expert
    Join Date
    12-23-2006
    Location
    germany
    MS-Off Ver
    XL2003 / 2007 / 2010
    Posts
    6,326

    Re: Table Question

    Hi,
    Try
    Please Login or Register  to view this content.
    Adapt the range to your needs and add ranges to be multiplied in the same way

  5. #5
    Forum Expert NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003:2010
    Posts
    34,898

    Re: Table Question

    Quote Originally Posted by BrettOlbrys View Post
    Correct me if I am wrong, but the last argument of the SUMIF statement is the Sum-range, which are the cells to sum. The problem I am having is that I am simply not summarizing a group of cells, I have to first multiply two columns together to get a value and that would be the argument that gets summed, but I cannot add a column to do the multiplication, it has to be within the SUMIF formula. How do I do multiplication within a SUMIF formula?

    Thanks
    Yes, then Sumproduct would be the alternative.

    =Sumproduct(--($B$1:$B$100="Widget A"),$C$1:$C$100,$H$1:$H$100)

    This sums the products of column C and H...

    the result would be repeated everytime Widget A appears in column A.. is that what you wanted...

  6. #6
    Registered User
    Join Date
    10-21-2003
    Posts
    13

    Re: Table Question

    Worked perfectly, thank you!

+ 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