+ Reply to Thread
Results 1 to 2 of 2

Vlookup Question About Date With Time

  1. #1
    Registered User
    Join Date
    04-07-2009
    Location
    Los Angeles, United States
    MS-Off Ver
    Office 2008-Mac
    Posts
    49

    Vlookup Question About Date With Time

    I want to do a vlookup and find anything from the date 10/13/10, but the actual hour is included in the data row. Is there a way to do the vlookup only to the date and not include the time...something without additional steps ie text to column or something like that.

    10/13/10 23:55
    10/13/10 23:53
    10/13/10 23:50
    10/13/10 23:48
    10/13/10 23:44
    10/13/10 23:43
    10/13/10 23:43
    10/13/10 23:42

  2. #2
    Forum Expert daddylonglegs's Avatar
    Join Date
    01-14-2006
    Location
    England
    MS-Off Ver
    Microsoft 365
    Posts
    14,715

    Re: Vlookup Question About Date With Time

    Try using INDEX and MATCH like this

    =INDEX(B2:B20,MATCH(C2,INDEX(INT(A2:A20),0),0))

    where C2 is the date to lookup, A2:A20 contains dates/times and B2:B20 is the column from which you want a value returned
    Audere est facere

+ 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