+ Reply to Thread
Results 1 to 8 of 8

SUMIF query, possibly...?

  1. #1
    Registered User
    Join Date
    08-19-2007
    Posts
    23

    SUMIF query, possibly...?

    I have two tables, the first contains data arranged as described,

    The Column A contains a list of items, some of which are duplicated (this is necessary). Columns B, C, D etc. contains numeric data for each of these items. Columns B, C, D etc. have user nominated numeric ID's i.e. 1, 2, 3; any of these columns may end up with the same ID No.

    I then have a separate table which I need to use to consolidate the sum of the values against each item, BUT these need to be grouped by Column ID i.e. if columns B - D all have the same ID "1", then I want the sum of the values of each items across the range of columns with the ID of "1".

    Can anyone help?

  2. #2
    Valued Forum Contributor
    Join Date
    02-09-2006
    Location
    Melbourne, Australia
    MS-Off Ver
    Office 2016
    Posts
    1,077
    SUMPRODUCT may be the function you need. If you can zip and attach a copy of your workbook it will be easier to give you a working example of the formula. Otherwise, if you search the forum for SUMPRODUCT you will find lots of help.
    Trish in Oz
    -------------
    A problem well defined is a puzzle half solved


    If you attach a sample of your workbook it will be easier to find a solution. Remember to remove/replace sensitive data before uploading the file. Look here if you need help with attachments:
    http://www.excelforum.com/faq.php?fa...b3_attachments

  3. #3
    Registered User
    Join Date
    08-19-2007
    Posts
    23
    Tuph

    I have attached a much simplified copy of a worksheet showing what is required. Hopefully you can do something with it. The actual worksheet could have any number of rows and/or columns.

    Thanks,
    Attached Files Attached Files

  4. #4
    Forum Expert dominicb's Avatar
    Join Date
    01-25-2005
    Location
    Lancashire, England
    MS-Off Ver
    MS Office 2000, 2003, 2007 & 2016 365
    Posts
    4,867

    Smile

    Good afternoon Joey123

    Does this help?

    HTH

    DominicB
    Last edited by dominicb; 08-19-2008 at 04:30 AM.
    Please familiarise yourself with the rules before posting. You can find them here.

  5. #5
    Registered User
    Join Date
    08-19-2007
    Posts
    23
    That's along the right lines. HOWEVER, in my haste to post I forgot one IMPORTANT addtional piece of info.

    The list of items in Column A will & has to contain duplicate entries, so a two pronged approach is required, the result has to be a consolidated value, then grouped by column ID.

    I have attached a revised example...

    How would this work...?
    Attached Files Attached Files

  6. #6
    Valued Forum Contributor
    Join Date
    02-09-2006
    Location
    Melbourne, Australia
    MS-Off Ver
    Office 2016
    Posts
    1,077
    Quote Originally Posted by Joey123
    That's along the right lines. HOWEVER, in my haste to post I forgot one IMPORTANT addtional piece of info.

    The list of items in Column A will & has to contain duplicate entries, so a two pronged approach is required, the result has to be a consolidated value, then grouped by column ID.

    I have attached a revised example...

    How would this work...?
    Does this work for you?
    Attached Files Attached Files

  7. #7
    Registered User
    Join Date
    08-19-2007
    Posts
    23
    Worked like a dream, BRILLIANT!!

    Thanks,

  8. #8
    Valued Forum Contributor
    Join Date
    02-09-2006
    Location
    Melbourne, Australia
    MS-Off Ver
    Office 2016
    Posts
    1,077
    You're welcome. Thanks for the feedback.

+ 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