+ Reply to Thread
Results 1 to 8 of 8

How to combine LARGE and SUMPRODUCT

  1. #1
    Forum Contributor
    Join Date
    06-10-2005
    MS-Off Ver
    2007
    Posts
    223

    How to combine LARGE and SUMPRODUCT

    Hi,
    I have a SUMPRODUCT formula that works great to sum multiple criteria. Specifically, from 3 columns it finds a particular date and
    sums values if they have transaction codes "VISA", "MCARD", or "DISC". However, I need to use the LARGE function on the same subset but do not know how to do this. I have attached a sample file and highlighted the cells in row 75 where I would like to use a
    formula. The existing formula is:
    =IF(F75="","",SUMPRODUCT(--(C40:C75=F75),D40:D75,--ISNUMBER(MATCH(E40:E75,{"MCARD","VISA","DISC"},0))))
    The IF is used based on a helper column with dates in order to only display the last row's data when there are multiple transactions
    on the same day.
    Any suggestions would be appreciated.

    Thanks,
    Phillycheese
    Attached Files Attached Files
    Last edited by Phillycheese5; 02-10-2016 at 09:26 AM.

  2. #2
    Forum Guru
    Join Date
    08-05-2004
    Location
    NJ
    MS-Off Ver
    365
    Posts
    13,582

    Re: How to combine LARGE and SUMPRODUCT

    Try this arrayed formula

    =LARGE(IF($C$40:$C$75=$F75, IF(($E$40:$E$75="Visa")+($E$40:$E$75="MCard")+($E$40:$E$75="Disc"), $D$40:$D$75)), COLUMNS($H$75:H$75))
    ChemistB
    My 2?

    substitute commas with semi-colons if your region settings requires
    Don't forget to mark threads as "Solved" (Edit First post>Advanced>Change Prefix)
    If I helped, Don't forget to add to my reputation (click on the little star at bottom of this post)

    Forum Rules: How to use code tags, mark a thread solved, and keep yourself out of trouble

  3. #3
    Forum Expert José Augusto's Avatar
    Join Date
    10-29-2014
    Location
    Portugal
    MS-Off Ver
    2013-2016
    Posts
    3,329

    Re: How to combine LARGE and SUMPRODUCT

    Hi
    Try these and copy right
    Formula: copy to clipboard
    Please Login or Register  to view this content.

  4. #4
    Forum Contributor
    Join Date
    06-10-2005
    MS-Off Ver
    2007
    Posts
    223

    Re: How to combine LARGE and SUMPRODUCT

    Hi ChemistB---this formula works great, thank you!!

    Hi Jose---the AGGREGATE formula works great as well, although it shows a zero instead of the -41.85 which would be the sixth largest. Is there a way to show the actual value?

  5. #5
    Forum Expert José Augusto's Avatar
    Join Date
    10-29-2014
    Location
    Portugal
    MS-Off Ver
    2013-2016
    Posts
    3,329

    Re: How to combine LARGE and SUMPRODUCT

    Quote Originally Posted by Phillycheese5 View Post
    Is there a way to show the actual value?
    Hi Philly
    Yes. Use these formula
    Formula: copy to clipboard
    Please Login or Register  to view this content.


    Regards.
    Last edited by José Augusto; 02-09-2016 at 06:13 PM.

  6. #6
    Forum Contributor
    Join Date
    06-10-2005
    MS-Off Ver
    2007
    Posts
    223

    Re: How to combine LARGE and SUMPRODUCT

    Jose,
    That's pretty crazy stuff!! It works great, thank you!!! If you have a moment, would you mind walking me through the syntax so I can better understand what's going on here...in case I ever need to tweak it, at least I can make a reasonable attempt :-)
    Thanks again,
    Phillycheese

  7. #7
    Forum Contributor
    Join Date
    12-23-2003
    Posts
    179

    Re: How to combine LARGE and SUMPRODUCT

    You can use the same logic for multiple-value OR...

    In H75 control+shift+enter, not just enter, and copy across:
    Please Login or Register  to view this content.

  8. #8
    Forum Contributor
    Join Date
    06-10-2005
    MS-Off Ver
    2007
    Posts
    223

    Re: How to combine LARGE and SUMPRODUCT

    Thanks for the additional formula Aladin!

+ 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] How to combine multiple worksheets of text data into one large worksheet?
    By drgreenjr in forum Excel Programming / VBA / Macros
    Replies: 9
    Last Post: 07-20-2016, 03:09 PM
  2. Replies: 4
    Last Post: 11-17-2015, 12:07 AM
  3. [SOLVED] Sumproduct(large( problem
    By STU22 in forum Excel Formulas & Functions
    Replies: 10
    Last Post: 07-13-2013, 07:27 PM
  4. Combine large range of data into one cell
    By MissLauren in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 09-20-2012, 12:48 PM
  5. Replies: 2
    Last Post: 06-18-2012, 08:50 AM
  6. Trying to combine =LARGE & =OFFSET formula
    By MightyP in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 10-01-2009, 09:03 AM
  7. [SOLVED] large / sumproduct combo
    By David in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 11-01-2005, 11:05 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