+ Reply to Thread
Results 1 to 9 of 9

sumproduct can this be done?

  1. #1
    Registered User
    Join Date
    04-07-2008
    Posts
    5

    sumproduct can this be done?

    Hi,

    I have an excel sheet that spawns from a browser, and would like to sum qty's the based on criteria and rows. The problem I face is I do not know what the rows will be when the sheet generates.

    Please Login or Register  to view this content.
    Is it possible?
    Attached Files Attached Files

  2. #2
    Forum Expert NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003:2010
    Posts
    34,898
    if the style and colour are always grouped together as shown in your sample then you can just use a range that goes to the bottom of the sheet... it will only sum the items where the corresponding style and colour match your criteria.

    e.g. In I4, use formula:
    Please Login or Register  to view this content.
    copied across.
    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
    04-07-2008
    Posts
    5
    NBVC, thanks soooo much! awsome! Is there a way to add another criteria in for the size (rows I2:U2)? For your solution below the size would be 0-6M.

    Please Login or Register  to view this content.

  4. #4
    Forum Expert NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003:2010
    Posts
    34,898
    I am not sure why you need that since your formulas are directly under each of those column headers and they can be copied across (the last range I$5:I$65535 would adjust to J$5:J$65535, and so on).

    But if you must.... then we will need to revert to an array entered Sum(IF()) formula since the I:U range has numbers and text.....

    so the new formula in I4 would be something like:

    Please Login or Register  to view this content.
    which must be confirmed with the CTRL+SHIFT+ENTER keys, not just the ENTER key. You will notice { } brackets appear around the formula.

    Then you can copy across.

    Edit: Actually that last range in this formula can be expanded to include all columns
    Please Login or Register  to view this content.
    Last edited by NBVC; 04-07-2008 at 04:28 PM.

  5. #5
    Registered User
    Join Date
    04-07-2008
    Posts
    5
    Hi NBVC,

    Thanks for your help. I understand what you mean when I copied across. For the next set of Styles and Colors though, when I copy across, I get a circular reference error.

  6. #6
    Forum Expert NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003:2010
    Posts
    34,898
    Remove the $ from before each 5 in the formula.

  7. #7
    Registered User
    Join Date
    04-07-2008
    Posts
    5
    Quote Originally Posted by NBVC
    Remove the $ from before each 5 in the formula.
    Thanks again! I really appreciate it.

    For some reason though when the sheet spawns from my browser, I will get the circular reference error. But when I copy to each set, it works perfect.

    The attachment even gives the error.
    Attached Files Attached Files

  8. #8
    Forum Expert oldchippy's Avatar
    Join Date
    02-14-2005
    Location
    Worcester, UK
    MS-Off Ver
    Excel 2007 (Home)
    Posts
    7,097
    Hi,

    This has got rid of the error
    oldchippy
    -------------


    Blessed are those who can give without remembering and take without forgetting

    If you are happy with the help you have received, please click the <--- STAR icon on the left - Thanks.

    Click here >>> Top Excel links for beginners to Experts

    Forum Rules >>>Please don't forget to read these

  9. #9
    Registered User
    Join Date
    04-07-2008
    Posts
    5
    oldchippy,

    Thank you m8. The part I will have trouble with is I don't know what the row numbers will be.

    I had it going something like this...

    Please Login or Register  to view this content.

+ 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