Consulting

Results 1 to 3 of 3

Thread: Solved: Lookup, Concatenate & Format Date

  1. #1
    VBAX Regular
    Joined
    Dec 2005
    Posts
    99
    Location

    Solved: Lookup, Concatenate & Format Date

    I’m doing a lookup and returning a value into B2 and concatenating it with a date from E2, but am having trouble getting the date to display in 2-digit year format rather than the 5-digit date number. How do I change the following formula to display the concatenated date in a 2-digit format.

    =VLOOKUP(B2,Sheet3!G3:J22,2,0)&E2(“yy”)

    I appreciate any help with this.
    Thanks.

  2. #2
    VBAX Regular
    Joined
    Dec 2005
    Posts
    99
    Location
    Solved my own problem, but thanks anyway.

    =VLOOKUP(B2,Sheet3!G3:J22,2,0)&TEXT(E2,"yy")

  3. #3
    Moderator VBAX Guru Ken Puls's Avatar
    Joined
    Aug 2004
    Location
    Nanaimo, BC, Canada
    Posts
    4,001
    Location
    Nice work, Zest!

    I'll mark the thead solved since the Thread Tools aren't working.
    Ken Puls, CMA - Microsoft MVP (Excel)
    I hate it when my computer does what I tell it to, and not what I want it to.

    Learn how to use our KB tags! -||- Ken's Excel Website -||- Ken's Excel Forums -||- My Blog -||- Excel Training Calendar

    This is a shameless plug for my new book "RibbonX - Customizing the Office 2007 Ribbon". Find out more about it here!

    Help keep VBAX clean! Use the 'Thread Tools' menu to mark your own threads solved!





Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •