+ Reply to Thread
Results 1 to 3 of 3

SUM after using MAX

  1. #1
    Forum Contributor
    Join Date
    02-15-2005
    Location
    Central UK
    MS-Off Ver
    Office 365
    Posts
    175

    SUM after using MAX

    Hi,

    My sheet records data on a monthly basis. I use MAX to find the highest number (which can be in any of the four weeks of the month). I then need to SUM numbers in the row below.

    For example cells A1:A4 contain the following: 20;31;70;64
    Cells B1:B4contain the following: 2;4;1;6

    The MAX function will select 70 I then need to to SUM the 2;4;1

    I hope that this makes sense - can you help please?

    Many thanks

    Tony

  2. #2
    Toppers
    Guest

    RE: SUM after using MAX

    Assuming you always sum from row 1 to the row having the maximum value:

    =SUM(OFFSET($B$1,0,0,MATCH(MAX($A$1:$A$4),$A$1:$A$4,0),1))


    If this is not the rule, then come back with a (clearer) explanation.

    HTH


    "y_not" wrote:

    >
    > Hi,
    >
    > My sheet records data on a monthly basis. I use MAX to find the highest
    > number (which can be in any of the four weeks of the month). I then need
    > to SUM numbers in the row below.
    >
    > For example cells A1:A4 contain the following: 20;31;70;64
    > Cells B1:B4contain the following: 2;4;1;6
    >
    > The MAX function will select 70 I then need to to SUM the 2;4;1
    >
    > I hope that this makes sense - can you help please?
    >
    > Many thanks
    >
    > Tony
    >
    >
    > --
    > y_not
    > ------------------------------------------------------------------------
    > y_not's Profile: http://www.excelforum.com/member.php...o&userid=19947
    > View this thread: http://www.excelforum.com/showthread...hreadid=565625
    >
    >


  3. #3
    Forum Contributor
    Join Date
    02-15-2005
    Location
    Central UK
    MS-Off Ver
    Office 365
    Posts
    175

    Toppers

    You are, without doubt a genius!!

    From a really crap explaination you have managed to come up with a working solution!!!

    Thanks Mate

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

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