+ Reply to Thread
Results 1 to 8 of 8

URGENT SUMPRODUCT INDEX Formula

  1. #1
    Registered User
    Join Date
    06-21-2014
    Location
    Sydney
    MS-Off Ver
    2011
    Posts
    92

    URGENT SUMPRODUCT INDEX Formula

    To the wonderfully helpful smart bunch you all are, I need some further assistance building another model!

    I have a sumproduct Index issue.

    I would like to sum column based on a number of criteria.

    The conditions are:
    1. Division (in this case marketing)
    2. Subdivision (in this case either CE02 CE03 onwards)
    3. Location (Central or otherwise)
    4. Year (2012 or 2013)
    5. Company (13A up to 31S)
    Other conditions could be for example Column F & E in the DATA tab

    Challenges for me:

    The index is quite big
    The Year and Company are row based conditions
    There could be up to 12 conditions as I would like the model to remain flexible for future use
    .....(someone else on this forum taught me about using column index e.g. ("&A1&":"&A1) where A1 would have a column reference L or something which I think will allow me to make the model really flexible but I havent tried it yet!


    I have attached a sample spreadsheet and please do ask any questions if it is not quite clear enough.
    Attached Files Attached Files

  2. #2
    Valued Forum Contributor Saarang84's Avatar
    Join Date
    02-19-2009
    Location
    Chennai, India
    MS-Off Ver
    XL 2003 to 2010
    Posts
    812

    Re: URGENT SUMPRODUCT INDEX Formula

    Hi,

    You can use the SUMIFS or the SUMPRODUCT function for your requirement, but you need to change the layout in the DATA sheet. Or you can build a pivot table out of your data and then use it accordingly.
    If my assistance has helped, there is a reputation icon * on the left hand corner below the post - you can show your appreciation to the user who has helped in resolving your requirement.

    If your requirement has been solved please mark your thread as Solved.
    In the menu bar above the very first post, select Thread Tools, then select "Mark this thread as Solved".

    Kindly use [FORMULA] or [CODE] tags when posting your code.

    Regards,
    Sarang

  3. #3
    Registered User
    Join Date
    06-21-2014
    Location
    Sydney
    MS-Off Ver
    2011
    Posts
    92

    Re: URGENT SUMPRODUCT INDEX Formula

    Thanks, I would like to use the SUMPRODUCT but I cant get it to work

  4. #4
    Registered User
    Join Date
    06-21-2014
    Location
    Sydney
    MS-Off Ver
    2011
    Posts
    92

    Re: URGENT SUMPRODUCT INDEX Formula

    In the sample spreadsheet I show the issue I am having with the SUMPRODUCT,

    =SUMPRODUCT((DATA!B:B=Profiling!C4)*(DATA!D:D=C12)*(DATA!K1:AX1="2012")*(DATA!K2:AX2="05B")*(DATA!A1:AX2000))

    I have been using a version of this but it keeps bringing back a 0

    I would really appreciate some help on this

    Thanks so much everyone

    K

  5. #5
    Registered User
    Join Date
    06-21-2014
    Location
    Sydney
    MS-Off Ver
    2011
    Posts
    92

    Re: URGENT SUMPRODUCT INDEX Formula

    In what way do I need to change the layout in the DATA sheet?

    Thanks so much,

    Keelin

  6. #6
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    53,049

    Re: URGENT SUMPRODUCT INDEX Formula

    Quote Originally Posted by Keelin View Post
    Thanks, I would like to use the SUMPRODUCT but I cant get it to work
    Not sure why you would want to use SUMPRODUCT when there are more efficient and simper formulas available?

    Here's what I did. Because you said you have a large database, I added a helper column in DATA sheet (I inserted a column after F) and put this in G2, copied down...
    =B3&"-"&C3&"-"&D3
    I use a helper because it will simplify the next calc and eliminate the need for potentially resource-hungry array formulas.

    Now, I understand that the categories you put in D12:D15 were just to show what you want (and btw, you have CE01 (with a zero) instead of CEO1), but based on those, I used this...
    =SUMIF(DATA!$G:$G,MODEL!$D12&"-"&MODEL!$D15&"-"&MODEL!$D16,DATA!H:H)
    You can copy this across as needed
    1. Use code tags for VBA. [code] Your Code [/code] (or use the # button)
    2. If your question is resolved, mark it SOLVED using the thread tools
    3. Click on the star if you think someone helped you

    Regards
    Ford

  7. #7
    Registered User
    Join Date
    06-21-2014
    Location
    Sydney
    MS-Off Ver
    2011
    Posts
    92

    Re: URGENT SUMPRODUCT INDEX Formula

    Hi Ford,

    You wouldn't happen to still have that spreadsheet to attach by any chance?

    It would be awesome to compare to

    Thanks so much

    Keelin

  8. #8
    Registered User
    Join Date
    06-21-2014
    Location
    Sydney
    MS-Off Ver
    2011
    Posts
    92

    Re: URGENT SUMPRODUCT INDEX Formula

    I thought I had it, but it turns out I can't quite get it to work properly,

    Would you mind talking me through the helper column a bit more? I haven't come across something like that before.

    Thanks so much,

    Keelin

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Sumproduct or index match dynamic formula
    By jw01 in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 11-18-2013, 07:54 PM
  2. [SOLVED] how to ignore text in a sumproduct, index, and match formula.
    By sbham in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 08-12-2013, 04:55 PM
  3. [SOLVED] VBA or formula. match, index and sumproduct
    By rain4u in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 09-18-2012, 02:46 PM
  4. Index/Match or Sumproduct formula
    By pauldaddyadams in forum Excel General
    Replies: 5
    Last Post: 01-19-2012, 11:32 AM
  5. Sumproduct, or Index / Match Formula
    By bountifulgrace in forum Excel General
    Replies: 6
    Last Post: 11-03-2006, 04:55 PM

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