+ Reply to Thread
Results 1 to 7 of 7

Date/Time Reference Issue

  1. #1
    Registered User
    Join Date
    05-10-2012
    Location
    New York
    MS-Off Ver
    Excel 2010
    Posts
    4

    Date/Time Reference Issue

    Hi All,

    This is a very strange issue I am having trouble solving. I pull in a large set of data from bloomberg that basically takes in a series of dates and times, and prices of a security at every particular time. I have a separate list of times that I want to use to reference data from the raw data extraction. This second list is made of a formula that looks up a time and adds today() to it to match the format of the data extraction. So for example, the raw data might spit out a time that looks like '5/10/2012 2:01:46 PM'. In order to reference appropriately, I've rounded each of these to the nearest 5 minutes by rounding by a factor of (24 x 12). So the data will be in the form of '5/10/2012 2:00:00 PM'.

    The data I was to use as the reference let's say is just 2:00PM. So I take that, add today() to it, and it becomes the same '5/10/2012 2:00:00 PM' as the raw data. Now here is the quirk. Certain times of the day are able to be referenced, and others aren't. I've tried using Index formulas and Vlookups, it's the same issue regardless. For instance, I have an 11:30 AM data point that successfully references the raw data, but the 2pm example from above does not. Of course if I do a simple test to see if the cells values are equal (=a1=a2), it comes out as true. So the values are the same but I can't reference it. Can anyone suggest a solution?

    Cheers,
    Jake

  2. #2
    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,048

    Re: Date/Time Reference Issue

    if you can upload a sample, it may be easier to help you? (also, if you want to compare 2 values, try using exact()
    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

  3. #3
    Registered User
    Join Date
    05-10-2012
    Location
    New York
    MS-Off Ver
    Excel 2010
    Posts
    4

    Re: Date/Time Reference Issue

    Sure - here is a sample. As you see in column H, the recreated dates/times don't consistently reference properly. The 11:30 works, the 2pm does not work, even though they were built the same way.
    Attached Files Attached Files

  4. #4
    Registered User
    Join Date
    05-10-2012
    Location
    New York
    MS-Off Ver
    Excel 2010
    Posts
    4

    Re: Date/Time Reference Issue

    Everyone else stumped too? What's going on here..

  5. #5
    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,048

    Re: Date/Time Reference Issue

    whew ok try the attached....

  6. #6
    Registered User
    Join Date
    05-10-2012
    Location
    New York
    MS-Off Ver
    Excel 2010
    Posts
    4

    Re: Date/Time Reference Issue

    Quote Originally Posted by FDibbins View Post
    whew ok try the attached....
    Hey mate, did you forget to attach? And thank you SO much for helping me with this.

  7. #7
    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,048

    Re: Date/Time Reference Issue

    hmm yup looks like i did, sorry
    Attached Files Attached Files

+ 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