+ Reply to Thread
Results 1 to 3 of 3

Finding a pair of max number

  1. #1
    Forum Contributor
    Join Date
    08-30-2007
    Location
    Vancouver, B.C.
    Posts
    149

    Finding a pair of max number

    Say I have 2 columns : Years and Months

    There are various entries in each month of the year. As well, the list is not listed

    eg:

    Year, Month
    2005, 1
    2005, 1
    2007, 12
    2006, 3
    2006, 5
    2005, 6
    2007, 3


    If the list is sorted, I can use the array formula to find the latest month of the latest year in the list

    Please Login or Register  to view this content.
    However, the formula doesn't work if the list is not sorted. What is a good formula to achieve what I need?

    Thanks

  2. #2
    Forum Expert daddylonglegs's Avatar
    Join Date
    01-14-2006
    Location
    England
    MS-Off Ver
    Microsoft 365
    Posts
    14,702
    If sorted so that the latest date is last you'd only need

    =LOOKUP(13,B:B)

    If unsorted try

    =MAX(IF(A1:A100=MAX(A1:A100),B1:B100))

  3. #3
    Forum Contributor
    Join Date
    08-30-2007
    Location
    Vancouver, B.C.
    Posts
    149
    Wow, that's awesome. I would have never thought of it

    Thanks!

+ 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