+ Reply to Thread
Results 1 to 7 of 7

How to extract data based on multiple criteria

  1. #1
    Forum Contributor
    Join Date
    10-11-2013
    Location
    California
    MS-Off Ver
    Excel 2010
    Posts
    230

    How to extract data based on multiple criteria

    I am in need of assistance with a sumproduct formula. The attached file has yellow highlighted cells K12-AB13 in the Monthly worksheet which is where I need the formula.

    I need a formula that will sum the data on the Details worksheets columns AB-AE. The criteria is:
    The Name field on both sheets needs to match.
    The Cat field on both sheets needs to match.
    The Type field on both sheets needs to match.
    The date in col AG on the Details page: the first day of the month in that col needs to match the date across row 9 in the Monthly tab.

    The formula for the Cap row in the monthly tab needs to sum col AB in the Details tab for the matching data.
    The formula for the Exp row in the monthly tab needs to sum col AC-AE in the Details tab for the matching data.

    Thanks.
    sumproduct formula help.xlsx
    Last edited by FDibbins; 05-11-2015 at 06:18 PM.

  2. #2
    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
    52,939

    Re: Need SUMPRODUCT formula help

    Please take a moment to read the forum rules and then amend your thread title to something descriptive of your problem - not what you think the answer might be. (think google search terms?). Once you have done this please send me a PM and I will remove this request. (Also, include a link to your thread - copy from the address bar)

    Many members search our previous posts, and thread titles play a big part of the search. I doubt anybody would do a search based on your title?

    To change a Title on your post, click EDIT POST then Go Advanced and change your title, if 2 days have passed ask a moderator to do it for you.
    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

  3. #3
    Forum Contributor
    Join Date
    10-11-2013
    Location
    California
    MS-Off Ver
    Excel 2010
    Posts
    230

    Re: Need SUMPRODUCT formula help

    I'm confused. My problem is that I can't get my sumproduct formula to work so I need help with one. Before I posted, I searched for sumproduct so I'm not sure why others wouldn't. Can you clarify for me why asking for help on a sumproduct formula is not a valid subject line?

  4. #4
    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
    52,939

    Re: Need SUMPRODUCT formula help

    You dont need SP. Your title should describe what your problem is, not what you think the answer might be

  5. #5
    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
    52,939

    Re: How to extract data based on multiple criteria

    Maybe something like this title?

    Anyway, like I said, you dont need SP.

    K5=SUMIFS(Details!$AB$6:$AB$22,Details!$M$6:$M$22,$E12,Details!$O$6:$O$22,$G12,Details!$P$6:$P$22,$I12,Details!$AG$6:$AG$22,">="&K$9,Details!$AG$6:$AG$22,"<"&EDATE(K$9,1))
    copied across.

    For the Exp, I could modify that to cover those 3 columns, but it would become pretty complex, so, instead, I added a helper column in Details, to add those 3 columns (I used AI), with this copied down from AI6...
    =SUM(AC6:AE6)
    The formula for Exp, then becomes...
    =SUMIFS(Details!$AI$6:$AI$22,Details!$M$6:$M$22,$E12,Details!$O$6:$O$22,$G12,Details!$P$6:$P$22,$I12,Details!$AG$6:$AG$22,">="&K$9,Details!$AG$6:$AG$22,"<"&EDATE(K$9,1))

  6. #6
    Forum Contributor
    Join Date
    10-11-2013
    Location
    California
    MS-Off Ver
    Excel 2010
    Posts
    230

    Re: How to extract data based on multiple criteria

    I see you changed the title. For me it doesn't match the solution I'm looking for, but really all I care about is the solution and not the title, so it's fine.

    As for the formula, I don't need a formula in K5. I need the formulas in the yellow cells on rows 12-13. I still copied and pasted the K5 formula and entered it into K12 instead. It worked.
    As for the exp formula, when I enter it into K13 and drag it over, I don't get anything for December.

  7. #7
    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
    52,939

    Re: How to extract data based on multiple criteria

    I see you changed the title. For me it doesn't match the solution I'm looking for, but really all I care about is the solution and not the title, so it's fine
    you are welcome

    As for the formula, I don't need a formula in K5. I need the formulas in the yellow cells on rows 12-13
    so put my suggestions there instead.


    when I enter it into K13 and drag it over, I don't get anything for December.
    maybe you did not enter it correctly? I get the exact same values as your manually entered answers

    P
    Q
    R
    S
    T
    U
    V
    W
    8
    Jun-14
    Jul-14
    Aug-14
    Sep-14
    Oct-14
    Nov-14
    Dec-14
    Jan-15
    9
    Jun-14
    Jul-14
    Aug-14
    Sep-14
    Oct-14
    Nov-14
    Dec-14
    Jan-15
    10
    0
    0
    0
    0
    0
    0
    0
    0
    11
    12
    $ -
    $ 3,250.08
    $ 15,670.24
    $ 7,778.88
    $ 20,201.11
    $ 3,241.20
    $ -
    $ -
    13
    $ 500.00
    $ 2,600.00
    $ -
    $ 864.32
    $ -
    $ 300.00
    $ 6,500.16
    $ -

+ 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. [SOLVED] SumProduct Formula
    By rizmomin in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 05-04-2013, 07:03 PM
  2. [SOLVED] Sumif Formula or Sumproduct Formula? Three Criteria.
    By oHUTCHYo in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 01-28-2013, 10:50 AM
  3. [SOLVED] Sumproduct Formula Help
    By tt388 in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 09-07-2012, 02:19 PM
  4. SumProduct Formula
    By Dhoang25 in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 08-10-2010, 02:37 PM
  5. SUMProduct Formula
    By aftabn10 in forum Excel General
    Replies: 9
    Last Post: 03-04-2009, 11:17 AM

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