+ Reply to Thread
Results 1 to 13 of 13

Require day of maximum amount calculated by sumif

  1. #1
    Forum Contributor
    Join Date
    02-13-2016
    Location
    MUMBAI
    MS-Off Ver
    Microsoft 365
    Posts
    180

    Require day of maximum amount calculated by sumif

    Hii..

    I have Column A & Column B as my original data.

    the output in D column is calcuated by sumif day-wise

    the maximum amount of 203 is on wednesay.

    I want wednesday as my final output in single cell without helper columns C & D.

    Thank you.
    Attached Images Attached Images

  2. #2
    Forum Expert
    Join Date
    06-08-2012
    Location
    Left the forum!
    MS-Off Ver
    Left the forum!
    Posts
    5,189

    Re: Require day of maximum amount calculated by sumif

    It can be done with one helper column, but I don't think it is possible to eliminate both of them.

    Assuming that C1 contains
    Formula: copy to clipboard
    Please Login or Register  to view this content.
    , this array formula will get your result.
    Formula: copy to clipboard
    Please Login or Register  to view this content.
    ...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.

  3. #3
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,739

    Re: Require day of maximum amount calculated by sumif

    Please attach a copy of the workbook.
    Ali


    Enthusiastic self-taught user of MS Excel who's always learning!
    Don't forget to say "thank you" in your thread to anyone who has offered you help.
    You can reward them by clicking on * Add Reputation below their user name on the left, if you wish.

    Forum Rules (updated August 2023): please read them here.

  4. #4
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,739

    Re: Require day of maximum amount calculated by sumif

    Jason - in this old thread I think you did something similar with AVERAGE: https://www.excelforum.com/excel-for...t-average.html

    Can this not be done in one?

  5. #5
    Forum Guru
    Join Date
    09-10-2017
    Location
    Chippenham, England
    MS-Off Ver
    365
    Posts
    15,077

    Re: Require day of maximum amount calculated by sumif

    Another option
    In C1 copied down
    Formula: copy to clipboard
    Please Login or Register  to view this content.
    and then
    Formula: copy to clipboard
    Please Login or Register  to view this content.

  6. #6
    Forum Expert
    Join Date
    06-08-2012
    Location
    Left the forum!
    MS-Off Ver
    Left the forum!
    Posts
    5,189

    Re: Require day of maximum amount calculated by sumif

    Ali, the old thread that you refer to is working with clusters of consecutive cells, in this example they are not consecutive.

    Also, the dates need to be manipulated in some way in order to group the different dates by weekday. As with countif(s), etc, subtotal will only accept ranges, not values.

    I was wondering if it might be possible with a bit of MMULT wizardry, but if it is, it's not something that I have been able to figure out.

  7. #7
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,739

    Re: Require day of maximum amount calculated by sumif

    Ah, OK - yes, there may be an MMULT solution, but it's beyond me, too.

  8. #8
    Forum Expert
    Join Date
    06-08-2012
    Location
    Left the forum!
    MS-Off Ver
    Left the forum!
    Posts
    5,189

    Re: Require day of maximum amount calculated by sumif

    I've been thinking this one over while I've been doing other things, the only way that I can see to solve this with a single formula is to take a novice approach and nest over 30 simple functions.
    Formula: copy to clipboard
    Please Login or Register  to view this content.
    I wouldn't want to change that every time a new row of data is added

  9. #9
    Forum Expert
    Join Date
    06-08-2012
    Location
    Left the forum!
    MS-Off Ver
    Left the forum!
    Posts
    5,189

    Re: Require day of maximum amount calculated by sumif

    And immediately after posting the aforementioned novice formula, I have a eureka moment.
    Formula: copy to clipboard
    Please Login or Register  to view this content.
    Array confirmed with Ctrl Shift Enter.

  10. #10
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,739

    Re: Require day of maximum amount calculated by sumif

    Brilliant, Jason! One for the collection. I hope the OP will come back and see this.

  11. #11
    Forum Expert
    Join Date
    06-08-2012
    Location
    Left the forum!
    MS-Off Ver
    Left the forum!
    Posts
    5,189

    Re: Require day of maximum amount calculated by sumif

    Thanks for the rep, Ali and Fluff!

    @Fluff, I'm not convinced that I fully understand how it works either I've attached a copy of my test file with some pointy arrow things and a few labels to try and illustrate how I think that the data is manipulated by MMULT. My explanation is far from that which would be expected for any kind of college course though.
    Attached Files Attached Files

  12. #12
    Forum Guru
    Join Date
    09-10-2017
    Location
    Chippenham, England
    MS-Off Ver
    365
    Posts
    15,077

    Re: Require day of maximum amount calculated by sumif

    Thanks for that Jason, certainly clearer now

  13. #13
    Forum Contributor
    Join Date
    02-13-2016
    Location
    MUMBAI
    MS-Off Ver
    Microsoft 365
    Posts
    180

    Re: Require day of maximum amount calculated by sumif

    Quote Originally Posted by jason.b75 View Post
    Thanks for the rep, Ali and Fluff!

    @Fluff, I'm not convinced that I fully understand how it works either I've attached a copy of my test file with some pointy arrow things and a few labels to try and illustrate how I think that the data is manipulated by MMULT. My explanation is far from that which would be expected for any kind of college course though.
    Wonderful Jason!! Thanks for the solution...

+ 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. Replies: 5
    Last Post: 08-15-2016, 03:33 PM
  2. VBA coding require for auto fill maximum location in blank cells
    By anil kmr in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 01-21-2015, 12:15 AM
  3. [SOLVED] Require a formula to subtract holidays progrsssively from a start amount
    By john dalton in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 06-19-2014, 08:31 AM
  4. [SOLVED] Maximum amount with various data
    By MAHMUZ in forum Excel Formulas & Functions
    Replies: 10
    Last Post: 05-19-2014, 02:05 PM
  5. [SOLVED] Require a VBA Code macro to summarize the common material codes and amount from two sheets
    By PRADEEPB270 in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 10-19-2013, 08:12 AM
  6. Replies: 2
    Last Post: 09-14-2012, 12:45 PM
  7. [SOLVED] Maximum amount of macros supported
    By Bror in forum Excel General
    Replies: 2
    Last Post: 08-18-2006, 10:15 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