+ Reply to Thread
Results 1 to 4 of 4

Excel 2007 : Look for next previous max value based on date in column header

  1. #1
    Registered User
    Join Date
    08-26-2011
    Location
    Kansas City, Missour
    MS-Off Ver
    Excel 2007
    Posts
    4

    Look for next previous max value based on date in column header

    I have a list of values, all under the column header of entered date

    Person -- Jan 1 -- Jan 2 -- Jan 3 .......
    Bob -- 6 -- 8 -- 10 ....
    Alex -- 4 -- empty -- empty

    what I need to do is, based on date and person, if the cell is empty or zero, find the next previous maximum value.

    In the example above, if I asked for the maximum value for Alex on Jan 3rd, the returned value would be 4

    If I asked for the maximum value for Bob on Jan 3rd, the maximum value would be 10.

  2. #2
    Forum Expert NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003:2010
    Posts
    34,902

    Re: Look for next previous max value based on date in column header

    Assuming your table is in A1:D3 with headers in column 1 and row 1,

    Then assuming you enter a name in A8 and a date in A9, try this formula:

    Please Login or Register  to view this content.
    adjust ranges and references to suit your actual data.
    Where there is a will there are many ways.

    If you are happy with the results, please add to the contributor's reputation by clicking the reputation icon (star icon) below left corner

    Please also mark the thread as Solved once it is solved. Check the FAQ's to see how.

  3. #3
    Registered User
    Join Date
    08-26-2011
    Location
    Kansas City, Missour
    MS-Off Ver
    Excel 2007
    Posts
    4

    Re: Look for next previous max value based on date in column header

    worked like a charm, much thanks

  4. #4
    Forum Expert NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003:2010
    Posts
    34,902

    Re: Look for next previous max value based on date in column header

    Please mark your thread as Solved.

    How to mark a thread Solved
    Go to the first post
    Click edit
    Click Go Advanced
    Just below the word Title you will see a dropdown with the word No prefix.
    Change to Solved
    Click Save

+ 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