+ Reply to Thread
Results 1 to 4 of 4

Displaying the date as part of a vlookup formula

Hybrid View

  1. #1
    Forum Contributor
    Join Date
    04-02-2010
    Location
    penrith
    MS-Off Ver
    Excel 2007
    Posts
    522

    Displaying the date as part of a vlookup formula

    I am looking to use a vlookup formula to display a string of text and a date, I can get the string of text part working but the date just display as a number rather than as 09 July 2013, Please see formula below for details.

    =IF(VLOOKUP($F$4,client_list2,30,FALSE)="","",VLOOKUP($F$4,client_list2,29,FALSE)&" "&VLOOKUP($F$4,client_list2,30,FALSE)&" "&$X$4&" "&AC4)

    AC4, the final part of the formula is where the date is stored.

    Thanks in advance

    JD

  2. #2
    Forum Contributor
    Join Date
    07-02-2013
    Location
    Stockholm, Sweden
    MS-Off Ver
    Excel 2003 and 2007
    Posts
    197

    Re: Displaying the date as part of a vlookup formula

    You must use text format on the cell in your formula that contains the date:

    TEXT(your date cell,"D MMMM YYYY")

  3. #3
    Forum Expert Debraj Roy's Avatar
    Join Date
    09-27-2012
    Location
    New Delhi,India
    MS-Off Ver
    Excel 2013
    Posts
    1,469

    Re: Displaying the date as part of a vlookup formula

    If you other part is working fine..

    then try this one..
    Formula: copy to clipboard
    =IF(VLOOKUP($F$4,client_list2,30,FALSE)="","",VLOOKUP($F$4,client_list2,29,FALSE)&" "&VLOOKUP($F$4,client_list2,30,FALSE)&" "&$X$4&" "&TEXT(AC4,"dd-mm-yyyy"))
    Regards!
    =DEC2HEX(3563)

    If you like someone's answer, click the star to give them a reputation point for that answer...

  4. #4
    Forum Contributor
    Join Date
    04-02-2010
    Location
    penrith
    MS-Off Ver
    Excel 2007
    Posts
    522

    Re: Displaying the date as part of a vlookup formula

    That works great, is there a way to add into the formula to look at the fsecond appointment date in a list and return the date and time of that appointment and display it as part of the lookup string?

    The date and time would be on another sheet and would be identifiable by the name match and apoointment no. 2

+ 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