+ Reply to Thread
Results 1 to 3 of 3

Matching Dates and Associated Data

  1. #1
    Registered User
    Join Date
    07-09-2012
    Location
    United States
    MS-Off Ver
    Excel 2010
    Posts
    11

    Matching Dates and Associated Data

    Hi all,

    Here's what I'd like to do:

    I have two sets of data (each set consisting of date/time + temperature, in two separate columns). The first list is rather sporadic in its time stamps (NOAA weather data) - the time jumps around a lot, with no set jump size. I have a second, more uniform set, with all of the time stamps. Basically, what I'd like to do is have Excel associate that particular time stamp with that particular temperature point, then go to the second set, look for the first time stamp, find it, then paste the associated temperature point next to it.

    In other words:

    I want Excel to say "1/1/2010 0:00 corresponds to 40". Then I want Excel to look in the second set for "1/1/2010 0:00), then paste 40 next to it.

    I've seen this done in the Name Manager with matrices, but I'm not sure if that's the most efficient way to do it.

    See the attached Excel file.
    Any help would be greatly appreciated.
    Let me know if I need to clarify anything.


    Thanks.
    -Reactant
    Attached Files Attached Files

  2. #2
    Registered User
    Join Date
    07-09-2012
    Location
    United States
    MS-Off Ver
    Excel 2010
    Posts
    11

    Re: Matching Dates and Associated Data

    I found the solution: the VLOOKUP function.

    Thanks anyways.
    -Reactant

  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,044

    Re: Matching Dates and Associated Data

    in column H, try this...
    =VLOOKUP(G5,$A$5:$B$1404,2,TRUE)
    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)

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