+ Reply to Thread
Results 1 to 4 of 4

How do I glue cells together to get the date? Have tried concatenate!

  1. #1
    Registered User
    Join Date
    11-08-2011
    Location
    Copenhagen, Denmark
    MS-Off Ver
    Excel 2007
    Posts
    9

    How do I glue cells together to get the date? Have tried concatenate!

    Hi

    I have this little problem I hope someone can help me with.

    I have these three different dates, that I chose from lists (made in data-validation). I need to make them into normal excel-dates though, but somehow it does not work. I am guessing it has to do with the fancy conditions I have put on the lists?

    If you look in cell sheet1!F10, where i try to get the date out, something goes wrong. It works for same dates, others it show the wrong date, and other again it says #N/A.

    Please show me a way to get the correct dates out!

    Thank you!

    Jacob
    Attached Files Attached Files

  2. #2
    Forum Contributor
    Join Date
    01-28-2010
    Location
    Sydney, Australia
    MS-Off Ver
    Excel 2003
    Posts
    157

    Re: How do I glue cells together to get the date? Have tried concatenate!

    You have left out the VLOOKUP function's 4th parameter, so try...
    =CONCATENATE(C12,"-",VLOOKUP(C11,Sheet2!D3:G14,4,0),"-",C10)

    Without the 4th parameter xl assumes that the values in Sheet2!D3:D14 are sorted in ascending order.
    When it looks for February and then discovers that the first entry is January, which in a sorted list would come after February, it assumes that February is not available.

    Beau Nydal

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

    Re: How do I glue cells together to get the date? Have tried concatenate!

    =DATEVALUE(CONCATENATE(C12,"-",VLOOKUP(C11,Sheet2!D3:G14,4,FALSE),"-",C10))
    will give a real date
    "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

  4. #4
    Registered User
    Join Date
    08-21-2011
    Location
    Sri Lanka
    MS-Off Ver
    Excel 2007
    Posts
    17

    Re: How do I glue cells together to get the date? Have tried concatenate!

    Or,

    =(C11&C12&", "&C10)+0

+ 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