+ Reply to Thread
Results 1 to 9 of 9

Find second date maximum value

  1. #1
    Forum Contributor
    Join Date
    05-16-2012
    Location
    Latina, ITALY
    MS-Off Ver
    Excel 2010--2016
    Posts
    947

    Find second date maximum value

    Good morning I ask for your help to find the date of a maximum value.
    In the attached file in M5 I have the following formula:

    = INDEX ($ B $ 3: $ K $ 3; COMPARE (MAX (B5: K5); B5: K5; 0))

    I find the maximum value in the line and it works if I only have a value.
    If I have the same two values as in line 5, how can I change the formula to get the value I handed in cell N5?

    the rye can also be combined as in cell P5
    Thank you.
    Attached Files Attached Files

  2. #2
    Forum Expert bebo021999's Avatar
    Join Date
    07-22-2011
    Location
    Vietnam
    MS-Off Ver
    Excel 2016
    Posts
    9,481

    Re: Find second date maximum value

    Try:

    Please Login or Register  to view this content.
    Quang PT

  3. #3
    Forum Expert shukla.ankur281190's Avatar
    Join Date
    05-17-2014
    Location
    Lucknow, India
    MS-Off Ver
    Office 365
    Posts
    3,937

    Re: Find second date maximum value

    tRY

    Formula: copy to clipboard
    Please Login or Register  to view this content.


    You can change highlighted party if you required.


    ...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 I helped, Don't forget to add reputation (click on the little star ★ at bottom of this post)
    Don't forget to mark threads as "Solved" (Thread Tools->Mark thread as Solved)

  4. #4
    Forum Expert tim201110's Avatar
    Join Date
    10-23-2011
    Location
    Russia
    MS-Off Ver
    2016, 2019
    Posts
    2,357

    Re: Find second date maximum value

    =lookup(max(b5:k5),b5:k5,$b$3:$k$3)

  5. #5
    Forum Expert
    Join Date
    05-05-2015
    Location
    UK
    MS-Off Ver
    Microsoft Excel for Microsoft 365 MSO (Version 2402 Build 16.0.17328.20068) 64-bit
    Posts
    28,364

    Re: Find second date maximum value

    Try

    in M2

    =IFERROR(INDEX($B$3:$K$3,SMALL(IF($B$5:$K$5=MAX($B$5:$K$5),COLUMN($B$3:$K$3)-COLUMN($B$3)+1,""),COLUMNS($B$3:B3))),"")



    ...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.

    Copy (drag) across to N2

  6. #6
    Forum Expert
    Join Date
    10-10-2016
    Location
    Sheffield
    MS-Off Ver
    365 and rarely 2016
    Posts
    3,212

    Re: Find second date maximum value

    Entered as an array formula (shift Control Enter) try
    =IFERROR(INDEX($B$3:$K$3,SMALL(IF($B5:$K5=MAX($B5:$K5),COLUMN($B$3:$K$3)-COLUMN(INDEX(B5:K5,1))+1),2)),"")

  7. #7
    Forum Guru
    Join Date
    02-27-2016
    Location
    Vietnam
    MS-Off Ver
    2016
    Posts
    5,925

    Re: Find second date maximum value

    Try this in M5:

    =IFERROR(INDEX($B$3:$K$3,SMALL(IF($B5:$K5=MAX($B5:$K5),COLUMN($B5:$K5)-1,""),COLUMNS($M$5:M$5))),"")

    Enter with Ctrl+Shift+Enter.

  8. #8
    Forum Contributor
    Join Date
    05-16-2012
    Location
    Latina, ITALY
    MS-Off Ver
    Excel 2010--2016
    Posts
    947

    Re: Find second date maximum value

    Thank you all for your help
    with glass proposed by john Topley
    I get all the dates by dragging it to the right with a single formula.
    Thank you very much

  9. #9
    Forum Contributor
    Join Date
    05-16-2012
    Location
    Latina, ITALY
    MS-Off Ver
    Excel 2010--2016
    Posts
    947

    Re: Find second date maximum value

    I also tried after the solution of Phuocam
    with a formula you get all the dates
    Thanks again
    Next

+ 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. find out the maximum date from all true values
    By jsalotra in forum Excel General
    Replies: 4
    Last Post: 05-23-2017, 12:22 PM
  2. [SOLVED] Find maximum date with from range with last value greater than zero from next column
    By anotherbe01 in forum Excel Formulas & Functions
    Replies: 9
    Last Post: 01-27-2017, 07:31 PM
  3. [SOLVED] Plotting Year wise maximum value & occurance date - the input date is in text format.
    By thilag in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 07-08-2014, 06:34 AM
  4. Replies: 5
    Last Post: 06-07-2014, 09:54 AM
  5. Excel 2007 : Find out Maximum date with two criteria
    By avk in forum Excel - New Users/Basics
    Replies: 5
    Last Post: 08-11-2013, 06:18 PM
  6. Find maximum and minimum value for each date
    By anna.gladkova in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 06-05-2012, 08:50 PM
  7. Find Maximum date
    By sgl in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 02-15-2006, 04:10 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