+ Reply to Thread
Results 1 to 4 of 4

formula needed for sumifs

Hybrid View

  1. #1
    Forum Contributor
    Join Date
    03-12-2012
    Location
    Singapore
    MS-Off Ver
    MS 365
    Posts
    532

    formula needed for sumifs

    example, in col A, i have list of text. lets say A to Z (might repeat). col B, i have number. 1-100 (will repeat). in col C. i have dollar value. There are no blank. I will have a drop down list in D1 that shows A to Z. lets say i choose R. i want a formula in E1 that show the biggest number in col B if Col A is R. in F1, sum up all the number in col C that is R in col A and the largest number in Col B.

  2. #2
    Forum Expert
    Join Date
    10-09-2014
    Location
    Newcastle, England
    MS-Off Ver
    2003 & 2013
    Posts
    1,986

    Re: formula needed for sumifs

    I'm not great at all on array formulas but the following should work

    =SUMIFS(C:C,A:A,D1,B:B,MAX(IF(A:A=D1,B:B)))
    ...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.
    If someone has helped you then please add to their Reputation

  3. #3
    Forum Contributor
    Join Date
    03-12-2012
    Location
    Singapore
    MS-Off Ver
    MS 365
    Posts
    532
    Quote Originally Posted by pjwhitfield View Post
    I'm not great at all on array formulas but the following should work

    =SUMIFS(C:C,A:A,D1,B:B,MAX(IF(A:A=D1,B:B)))
    ...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.
    would it work as well if i use Large instead of Max?

  4. #4
    Forum Guru
    Join Date
    08-28-2014
    Location
    USA
    MS-Off Ver
    Excel 2019
    Posts
    17,670

    Re: formula needed for sumifs

    It should.
    The array entered formula* that uses the LARGE function would read: =SUMIFS(C:C,A:A,D1,B:B,LARGE(IF(A:A=D1,B:B),1))
    Alternatively, since you are using the 2010 version, you should be able to use the following regular formula:
    Formula: copy to clipboard
    =SUMIFS(C:C,A:A,D1,B:B,AGGREGATE(14,6,(B:B)/(A:A=D1),1))

    * activated as described in post #2.
    Let us know if you have any questions.
    Consider taking the time to add to the reputation of everybody that has taken the time to respond to your query.

+ 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] SUMIFS or ARRAY formula needed
    By Aly1978 in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 03-05-2017, 02:35 PM
  2. [SOLVED] =sumifs ? or other formula needed
    By steve400243 in forum Excel General
    Replies: 4
    Last Post: 11-18-2016, 08:08 PM
  3. [SOLVED] Sumifs or alternative formula needed for multiple criteria
    By bwmuhich in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 03-31-2015, 02:41 PM
  4. [SOLVED] Formula needed for Sales Forcast - perhaps SUMIFS?
    By Hippo7 in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 06-03-2014, 12:46 PM
  5. Help needed with =IF(ISTEXT and/or =SUMIFS formula (I think...)
    By TopDog0310 in forum Excel Formulas & Functions
    Replies: 12
    Last Post: 05-10-2014, 06:24 PM
  6. SUMIFS formula help needed!
    By emackenney in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 02-09-2012, 02:21 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