+ Reply to Thread
Results 1 to 8 of 8

rank highest date together with its adjacent rows

  1. #1
    Forum Contributor
    Join Date
    08-07-2008
    Location
    United States
    MS-Off Ver
    Microsoft Office 2003
    Posts
    362

    rank highest date together with its adjacent rows

    hi,

    I hope I could get more help this time, can someone help me out how to display the highest date together with the adjacent data on its row? I have attached a sample file.

    regards,

    stoey
    Attached Files Attached Files
    Last edited by stoey; 04-19-2009 at 10:51 AM.

  2. #2
    Forum Guru
    Join Date
    08-26-2007
    Location
    London
    Posts
    4,606

    Re: rank highest date together with its adjacent rows

    Highest start time, right? You don't need VBA.

    J37: =INDEX(J12:J35,MATCH($K$37,$K$12:$K$35,0))
    K37: =MAX(K12:K35)
    L37 (copy from J37): =INDEX(L12:L35,MATCH($K$37,$K$12:$K$35,0))

  3. #3
    Forum Contributor
    Join Date
    08-07-2008
    Location
    United States
    MS-Off Ver
    Microsoft Office 2003
    Posts
    362

    Re: rank highest date together with its adjacent rows

    hi,

    Highest start time, right? You don't need VBA.
    actually its the date with the highest start time...is it possible to just simply use one formula which will eventually display the date which has the highest start time together with its start and end time

    regards,

    stoey

  4. #4
    Forum Guru
    Join Date
    08-26-2007
    Location
    London
    Posts
    4,606

    Re: rank highest date together with its adjacent rows

    You can put the results into one cell by concatenating those formulae.

  5. #5
    Forum Contributor
    Join Date
    08-07-2008
    Location
    United States
    MS-Off Ver
    Microsoft Office 2003
    Posts
    362

    Re: rank highest date together with its adjacent rows

    i'm not that familiar on how to do that though...can you give me an idea?

  6. #6
    Forum Expert martindwilson's Avatar
    Join Date
    06-23-2007
    Location
    London,England
    MS-Off Ver
    office 97 ,2007
    Posts
    19,320

    Re: rank highest date together with its adjacent rows

    to return all in one cell
    =TEXT(INDEX($J$12:$J$35,MATCH($K$37,$K$12:$K$35,0)),"d-mmm-yy")&" " &TEXT(MAX($K$12:$K$35),"hh:mm")&" "&TEXT(INDEX($L$12:$L$35,MATCH($K$37,$K$12:$K$35,0)),"hh:mm")

    BIG EDIT.............
    thats not quite right however!!!!
    it needs not to ref K37 but have the formula from k37 instead so
    =TEXT(INDEX($J$12:$J$35,MATCH(MAX(K$12:$K$35),$K$12:$K$35,0)),"d-mmm-yy")&" " &TEXT(MAX($K$12:$K$35),"hh:mm")&" "&TEXT(INDEX($L$12:$L$35,MATCH(MAX($K$12:$K$35),$K$12:$K$35,0)),"hh:mm")
    Last edited by martindwilson; 04-19-2009 at 10:58 AM.
    "Unless otherwise stated all my comments are directed at OP"

    Mojito connoisseur and now happily retired
    where does code go ?
    look here
    how to insert code

    how to enter array formula

    why use -- in sumproduct
    recommended reading
    wiki Mojito

    how to say no convincingly

    most important thing you need
    Martin Wilson: SPV
    and RSMBC

  7. #7
    Forum Contributor
    Join Date
    08-07-2008
    Location
    United States
    MS-Off Ver
    Microsoft Office 2003
    Posts
    362

    Re: rank highest date together with its adjacent rows

    wow! that works perfectly martindwilson...thanks a lot! hey stephen thanks a lot as well..your formula works perfectly as well... thanks a lot for all your quick responses...You guys Rock


    Regards,

    stoey

  8. #8
    Forum Expert martindwilson's Avatar
    Join Date
    06-23-2007
    Location
    London,England
    MS-Off Ver
    office 97 ,2007
    Posts
    19,320

    Re: rank highest date together with its adjacent rows

    STOEY
    before you say ah ha there is a problem !!!! re read my previous post lol

+ 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