+ Reply to Thread
Results 1 to 5 of 5

Vlookup (mm/dd/yyyy hh:mm:ss) for some reason won't work

  1. #1
    Registered User
    Join Date
    11-06-2012
    Location
    Earth, The Milkyway
    MS-Off Ver
    Excel 2010
    Posts
    20

    Vlookup (mm/dd/yyyy hh:mm:ss) for some reason won't work

    Can anyone figure out why this vlookup won't work. Its probably something stupid but I can't figure it out for the life of me. (if I change the actual date and the vlookup value to the number '1', the function will work. It just won't work with the actual dates in the data.)

    The spread sheet is attached.
    Attached Files Attached Files
    Last edited by smjpl; 11-06-2012 at 12:22 PM.

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

    Re: Vlookup (mm/dd/yyyy hh:mm:ss) for some reason won't work

    the values in col a are text
    try f20
    =TEXT(F17,"mm/dd/yy")&" "&TEXT(F18,"hh:mm:ss")
    f22
    =VLOOKUP(F20,A3:B16,2,FALSE)
    or convert/change column a to real times
    and btw you've misspelt october
    Last edited by martindwilson; 11-06-2012 at 12:37 PM.
    "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

  3. #3
    Registered User
    Join Date
    11-06-2012
    Location
    Earth, The Milkyway
    MS-Off Ver
    Excel 2010
    Posts
    20

    Re: Vlookup (mm/dd/yyyy hh:mm:ss) for some reason won't work

    I see what you mean. So what are my options. I have thousands of data points and I don't really want to convert them to numbers. Can I convert the Date+Time to text?

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

    Re: Vlookup (mm/dd/yyyy hh:mm:ss) for some reason won't work

    sorry which column? the modified formulas i gave you work against that data,

  5. #5
    Registered User
    Join Date
    11-06-2012
    Location
    Earth, The Milkyway
    MS-Off Ver
    Excel 2010
    Posts
    20

    Re: Vlookup (mm/dd/yyyy hh:mm:ss) for some reason won't work

    Sorry, I only saw the first part of your post. That works like a treat.

    Thank you very much. You're a legend.

+ 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