+ Reply to Thread
Results 1 to 10 of 10

Help with combining OFFSET and MAX Function

  1. #1
    Registered User
    Join Date
    09-16-2011
    Location
    Minnesota
    MS-Off Ver
    Excel 2007
    Posts
    30

    Help with combining OFFSET and MAX Function

    I have a spreadsheet with sets of numeric values in cells R54:Y54, R55:Y55, R56:Y56, etc.

    I want to enter a formula in Z54 which returns the value in the cell below the cell with the highest value in R54:Y54. In other words, if S54 contains the highest value in R54:Y54, I want the formula in Z54 to return the value in S55 (which is the cell below S54).

    It should be easy, I have a start but it's not what I'm looking for, it's returning the highest value in the next row =MAX(R54: (OFFSET(Y54,1,0)))
    Last edited by oyz79; 02-15-2013 at 01:01 AM.

  2. #2
    Forum Moderator vlady's Avatar
    Join Date
    09-22-2011
    Location
    Philippines - OLSHCO -Guimba-Nueva Ecija
    MS-Off Ver
    2021
    Posts
    4,361

    Re: Help with combining OFFSET and MAX Function

    try it like this
    =index(R55:Y55,match(max(R54:Y54),R54:Y54))
    I think people forget the word "THANK YOU!!!!" Do you still know it???

    There is a little star ( ADD REPUTATION ) below those person who helped you. Click it to say your "PRIVATE APPRECIATION TO THEIR EFFORT ON THEIR CONTRIBUTIONS "

    Regards,
    Vladimir

  3. #3
    Registered User
    Join Date
    09-16-2011
    Location
    Minnesota
    MS-Off Ver
    Excel 2007
    Posts
    30

    Re: Help with combining OFFSET and MAX Function

    I think that gets me closer, but it's still returning the inproper value.

    Here is an example of the first three rows of data. When I use your formula it returns 0.094026678. It should return 0.110917104, which is the number directly below the highest value in the first row.

    0.081477039 0.057894072 0.093630624 0.079991513 0.082844357 0.065840149 0.092406184 0.072061874
    0.110089401 0.085882506 0.110917104 0.097062406 0.106385246 0.089011369 0.114787811 0.094026678
    0.079926547 0.066077363 0.069295308 0.0643637 0.070181533 0.062582418 0.079161143 0.067954872

  4. #4
    Forum Moderator vlady's Avatar
    Join Date
    09-22-2011
    Location
    Philippines - OLSHCO -Guimba-Nueva Ecija
    MS-Off Ver
    2021
    Posts
    4,361

    Re: Help with combining OFFSET and MAX Function

    can you upload a sample with those data and the formula you are using.thanks.

    To attach a sample workbook. Make sure there is just enough data to make it clear what is needed. Include BEFORE/AFTER sheets if needed to show the process you're trying to complete or automate. Remember to desensitize the data.

    Click on GO ADVANCED and use the paperclip icon to open the upload window.

    View Pic

  5. #5
    Registered User
    Join Date
    09-16-2011
    Location
    Minnesota
    MS-Off Ver
    Excel 2007
    Posts
    30

    Re: Help with combining OFFSET and MAX Function

    Quote Originally Posted by vlady View Post
    can you upload a sample with those data and the formula you are using.thanks.

    To attach a sample workbook. Make sure there is just enough data to make it clear what is needed. Include BEFORE/AFTER sheets if needed to show the process you're trying to complete or automate. Remember to desensitize the data.

    Click on GO ADVANCED and use the paperclip icon to open the upload window.

    View Pic
    Attached is a sample, the cells are different but idea is the same
    Attached Files Attached Files

  6. #6
    Registered User
    Join Date
    09-16-2011
    Location
    Minnesota
    MS-Off Ver
    Excel 2007
    Posts
    30

    Re: Help with combining OFFSET and MAX Function

    Quote Originally Posted by oyz79 View Post
    Attached is a sample, the cells are different but idea is the same
    Did my attachment help?

  7. #7
    Forum Expert icestationzbra's Avatar
    Join Date
    01-07-2004
    MS-Off Ver
    2007, 2010
    Posts
    1,421

    Re: Help with combining OFFSET and MAX Function

    in the attachment that you uploaded, you can use this in cell J2:

    Please Login or Register  to view this content.
    - i.s.z -
    CSE, aka Array aka { }, formulae are confirmed with CONTROL+SHIFT+ENTER.
    Replace commas ( , ) with semicolons ( ; ) in formulae, if your locale setting demands.
    All good ideas are courtesy resources from this forum as well as others around the web.
    - e.o.m -

  8. #8
    Registered User
    Join Date
    09-16-2011
    Location
    Minnesota
    MS-Off Ver
    Excel 2007
    Posts
    30

    Re: Help with combining OFFSET and MAX Function

    Awesome, thank you so much!

  9. #9
    Registered User
    Join Date
    09-16-2011
    Location
    Minnesota
    MS-Off Ver
    Excel 2007
    Posts
    30

    Re: Help with combining OFFSET and MAX Function

    Quote Originally Posted by icestationzbra View Post
    in the attachment that you uploaded, you can use this in cell J2:

    Please Login or Register  to view this content.
    I have one other issue - if the cells aren't in rows next to each other, how could the formula be written?

    I have attached a sample workbook. I want a formula which identifies the strategy with the highest value in J3:q3 and then generates the value in cells a4:h4 that relate to the same strategy. For example, strategy 3 is highest in j3:q3, so write a formula that generates the value in c4
    Attached Files Attached Files

  10. #10
    Forum Expert daddylonglegs's Avatar
    Join Date
    01-14-2006
    Location
    England
    MS-Off Ver
    2016
    Posts
    14,675

    Re: Help with combining OFFSET and MAX Function

    You can adjust the ranges as required - try this formula

    =INDEX(A4:H4,MATCH(MAX(J3:Q3),J3:Q3,0))
    Audere est facere

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

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