+ Reply to Thread
Results 1 to 8 of 8

YTD Sum based on multiple criteria from drop down list

  1. #1
    Forum Contributor
    Join Date
    06-23-2012
    Location
    Singapore
    MS-Off Ver
    Excel 2010
    Posts
    127

    YTD Sum based on multiple criteria from drop down list

    Dear Guys

    Trying to get YTD Sum based on multiple criteria using a drop down list.
    The criteria are based on columns. Not really sure how to go about it. Appreciate any help.
    Attached spreadsheet for reference. Thanks in advance guys!

    Ben
    Attached Files Attached Files

  2. #2
    Forum Expert NeedForExcel's Avatar
    Join Date
    03-16-2013
    Location
    Pune, India
    MS-Off Ver
    Excel 2016:2019, MS 365
    Posts
    3,873

    Re: YTD Sum based on multiple criteria from drop down list

    Can you tell which row has the YTD Sum?
    Cheers!
    Deep Dave

  3. #3
    Forum Contributor
    Join Date
    06-23-2012
    Location
    Singapore
    MS-Off Ver
    Excel 2010
    Posts
    127

    Re: YTD Sum based on multiple criteria from drop down list

    Hi Dave

    Row 8 (Sent). Thanks!

  4. #4
    Forum Expert NeedForExcel's Avatar
    Join Date
    03-16-2013
    Location
    Pune, India
    MS-Off Ver
    Excel 2016:2019, MS 365
    Posts
    3,873

    Re: YTD Sum based on multiple criteria from drop down list

    Now for example, FEBRUARY & BRAND 1 have occurred twice, do you want total of both?

    181774 + 181774??

    If yes then try this in Cell C8

    =SUMPRODUCT(IF((C3='DATA ENTRY'!A3:J3)*(SUMARY!C4='DATA ENTRY'!A4:J4)=1,'DATA ENTRY'!A8:J8,""))

    Commit using Ctrl+Shift+Enter

  5. #5
    Forum Contributor
    Join Date
    06-23-2012
    Location
    Singapore
    MS-Off Ver
    Excel 2010
    Posts
    127

    Re: YTD Sum based on multiple criteria from drop down list

    Quote Originally Posted by NeedForExcel View Post
    Now for example, FEBRUARY & BRAND 1 have occurred twice, do you want total of both?

    181774 + 181774??

    If yes then try this in Cell C8

    =SUMPRODUCT(IF((C3='DATA ENTRY'!A3:J3)*(SUMARY!C4='DATA ENTRY'!A4:J4)=1,'DATA ENTRY'!A8:J8,""))

    Commit using Ctrl+Shift+Enter
    Thanks Dave, however once I selected FEBRUARY, it didnt sum YTD amount.
    If selected FEBRUARY, YTD will cover JAN-FEB...

  6. #6
    Forum Expert NeedForExcel's Avatar
    Join Date
    03-16-2013
    Location
    Pune, India
    MS-Off Ver
    Excel 2016:2019, MS 365
    Posts
    3,873

    Re: YTD Sum based on multiple criteria from drop down list

    So if you select Feb and Brand 2 for instance, it should add up values for Jan & Feb, but only for Brand 2? Is this right?

  7. #7
    Forum Contributor
    Join Date
    06-23-2012
    Location
    Singapore
    MS-Off Ver
    Excel 2010
    Posts
    127

    Re: YTD Sum based on multiple criteria from drop down list

    Yes, Dave thats correct. Thanks.

  8. #8
    Forum Expert NeedForExcel's Avatar
    Join Date
    03-16-2013
    Location
    Pune, India
    MS-Off Ver
    Excel 2016:2019, MS 365
    Posts
    3,873

    Re: YTD Sum based on multiple criteria from drop down list

    Try this in c8 on Summary Sheet.

    Make sure you unmerge cells before applying the formula.

    =SUMPRODUCT(IF(INDIRECT("'DATA ENTRY'!$C$4:"&ADDRESS(4,LOOKUP(2,1/(SUMARY!C3='DATA ENTRY'!C3:H3),COLUMN('DATA ENTRY'!$C$3:$H$3))))=SUMARY!C4,INDIRECT("'DATA ENTRY'!C8:"&ADDRESS(8,LOOKUP(2,1/(SUMARY!C3='DATA ENTRY'!C3:H3),COLUMN('DATA ENTRY'!$C$3:$H$3)))),0))

    ...confirmed by pressing CTRL+SHIFT+ENTER to activate the array, not just ENTER. You will know the array is active when you see curly braces { } appear around your formula. If you do not CTRL+SHIFT+ENTER you will get an error or a clearly incorrect answer.

    See the file attached.
    Attached Files Attached Files
    Last edited by NeedForExcel; 04-18-2016 at 07:07 AM.

+ 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] using SUMIFS and adding values based on multiple criteria based on selection from the drop
    By muheebrahman in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 03-25-2015, 12:55 AM
  2. Replies: 0
    Last Post: 02-10-2015, 05:17 PM
  3. Dynamic drop down list, based on a criteria
    By marcinpec in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 07-17-2014, 11:00 AM
  4. Move row to another sheet based on criteria in drop down list
    By cbesinger in forum Excel Programming / VBA / Macros
    Replies: 16
    Last Post: 09-13-2012, 03:26 PM
  5. create a dynamic drop down list based on specific criteria
    By stevegrobertson in forum Excel General
    Replies: 4
    Last Post: 02-21-2012, 08:07 PM
  6. Variable Drop Down Dependent List with Multiple Criteria
    By Spellbound in forum Excel Formulas & Functions
    Replies: 43
    Last Post: 02-02-2012, 06:40 AM
  7. Date popup based on criteria in drop down list
    By Donnerblue in forum Excel General
    Replies: 3
    Last Post: 08-14-2011, 03:03 PM

Tags for this Thread

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