+ Reply to Thread
Results 1 to 6 of 6

Finding Date and Time at Max

  1. #1
    Registered User
    Join Date
    02-09-2011
    Location
    US
    MS-Off Ver
    Excel Mac 2011
    Posts
    31

    Finding Date and Time at Max

    I am working with a very large data set (200+ pages) and I am trying to isolate the max and min values for various parameters. Is there any way to write a macro or equation that will pull up the data and time associated with that max or min value? I have been searching the column for the max value and finding that date that way. Date is column A, Time column B and the data go from C to L. Thanks
    Last edited by ScottL; 02-11-2011 at 11:05 AM.

  2. #2
    Forum Contributor
    Join Date
    01-16-2011
    Location
    Abu Dhabi, UAE
    MS-Off Ver
    Excel 2010
    Posts
    234

    Re: Finding Date and Time at Max

    Check out pivot tables and/or the various LOOKUP functions. They're perfect for what you're trying to do!

  3. #3
    Registered User
    Join Date
    02-09-2011
    Location
    US
    MS-Off Ver
    Excel Mac 2011
    Posts
    31

    Re: Finding Date and Time at Max

    Ok, I have the formula =VLOOKUP(C31300,C8:C31298,1,FALSE) where C31300 is the max of that column (wind direction) and C8:C31298 is the whole wind direction data set. I am struggling with the reference column which is column A (A8:A31298) and contains the dates. The equation gives me a date that is not on the table oddly enough. It is generating 12/25/04 when the dates are for Oct-Dec 2010. Do I have the wrong reference column number?

  4. #4
    Registered User
    Join Date
    02-09-2011
    Location
    US
    MS-Off Ver
    Excel Mac 2011
    Posts
    31

    Re: Finding Date and Time at Max

    Ok no it appears to be the table array. How do I set the table array to be only column A and column C? The max may appear in other data Columns and I don't want it to pull the date from another data point.

  5. #5
    Forum Guru DonkeyOte's Avatar
    Join Date
    10-22-2008
    Location
    Northumberland, UK
    MS-Off Ver
    O365
    Posts
    21,531

    Re: Finding Date and Time at Max

    I'm not entirely sure I follow but if you're saying you have points in C:L and you want the Date at which the Max(C:L) first occurred then:

    Please Login or Register  to view this content.
    Note the Array entry requirement

    If on the other hand you want the date associated with Max of just column C:

    Please Login or Register  to view this content.
    edit: revised Array at 1439 UK time - typo !
    Last edited by DonkeyOte; 02-10-2011 at 10:39 AM.

  6. #6
    Registered User
    Join Date
    02-09-2011
    Location
    US
    MS-Off Ver
    Excel Mac 2011
    Posts
    31

    Re: Finding Date and Time at Max

    @DonkeyOte Thank you very much. The index worked perfectly.

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Tags for this Thread

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