+ Reply to Thread
Results 1 to 14 of 14

VLOOKUP unwanted date formatting

Hybrid View

  1. #1
    Forum Contributor ianh's Avatar
    Join Date
    11-19-2010
    Location
    Newcastle
    MS-Off Ver
    Excel 2010
    Posts
    114

    Re: VLOOKUP unwanted date formatting

    you could try wrap the TEXT function around your vlookup.
    =TEXT(VLOOKUP(A1,table1,colno,FALSE),"00-00-00")
    it should return your lookup as a text string in the "00-00-00" format then.
    2+2=5 for extremely large values of 2.

  2. #2
    Forum Contributor ianh's Avatar
    Join Date
    11-19-2010
    Location
    Newcastle
    MS-Off Ver
    Excel 2010
    Posts
    114

    Re: VLOOKUP unwanted date formatting

    i think the format in that code may not return what you need if the values have leading zeros
    try replacing the last part with
    "0##\-0##\-0##"

  3. #3
    Registered User
    Join Date
    12-09-2011
    Location
    UK
    MS-Off Ver
    Excel 2010
    Posts
    7

    Re: VLOOKUP unwanted date formatting

    Thanks Ian

    =TEXT(VLOOKUP(J9,'[other-worksheet.xlsx]Sheet1'!$D$3:$I$1151,1,TRUE),"0##\-00##\-0##\")

    It's returning - #VALUE!

    With FALSE I'm getting #N/A

    Sure this is something really obvious that I'm missing

+ 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