+ Reply to Thread
Results 1 to 3 of 3

Fine the Max Value and corresponding date in unsorted arrays

  1. #1
    Registered User
    Join Date
    01-10-2015
    Location
    London
    MS-Off Ver
    2010
    Posts
    1

    Fine the Max Value and corresponding date in unsorted arrays

    Hi,

    I want to fined the max value from A2, A4, A6, A9 and display it in C1, and fined the corresponding time in B and display it in D1. As you can see A is not ordered, what function I can use for D? Since I can use =Max(a2,a4,a6,a9) for C1.

    Thank you

  2. #2
    Forum Guru Pete_UK's Avatar
    Join Date
    12-31-2011
    Location
    Warrington, England
    MS-Off Ver
    Office 2019 (still learning)
    Posts
    25,412

    Re: Fine the Max Value and corresponding date in unsorted arrays

    Try this:

    =INDEX($B$2:$B$9,MATCH(C1,$A$2:$A$9,0))

    or you could use VLOOKUP:

    =VLOOKUP(C1,$A$2:$B$9,2,0)

    Hope this helps.

    Pete

  3. #3
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    53,048

    Re: Fine the Max Value and corresponding date in unsorted arrays

    Hi, welcome to the foum

    As you can see A is not ordered
    Not sure if you tried to attrach a WB, but nothing came through - so no, we cant see lol

    Anyway, you could use vlookup or index/match for this. Without your sample data to play with, this is a guess...
    =VLOOKUP(Max(a2,a4,a6,a9),$A$2:$B$9,2,0)
    or =VLOOKUP(C1,$A$2:$B$9,2,0)
    or
    =INDEX($B$2:$B$9,match(Max(a2,a4,a6,a9),$A$2:$A$9,0))or
    or=INDEX($B$2:$B$9,match(C1,$A$2:$A$9,0))
    1. Use code tags for VBA. [code] Your Code [/code] (or use the # button)
    2. If your question is resolved, mark it SOLVED using the thread tools
    3. Click on the star if you think someone helped you

    Regards
    Ford

+ 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. Pull next date in unsorted data given criteria
    By wallock in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 10-30-2014, 05:59 PM
  2. Serial Counter based on unsorted Date
    By Rick_Hawk in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 02-20-2014, 08:43 AM
  3. Arrays - excluding more than one date
    By asdf@12 in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 07-28-2013, 04:54 AM
  4. Finding matches between two date arrays
    By cpranov in forum Excel Programming / VBA / Macros
    Replies: 9
    Last Post: 07-08-2011, 10:15 AM
  5. finding closest date between two arrays
    By adam9999 in forum Excel General
    Replies: 1
    Last Post: 01-19-2009, 04:17 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