+ Reply to Thread
Results 1 to 6 of 6

concantnate text and date

  1. #1
    Registered User
    Join Date
    09-17-2014
    Location
    Winston-Salem, NC
    MS-Off Ver
    2010
    Posts
    2

    concantnate text and date

    I need to concatenate a text message "Start Date: " and a reference field that has the date in mm/dd/yyyy format. How do I get Excel to recognize the reference to the date as a date and not just a number "53422"?

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

    Re: concantnate text and date

    use text()
    "start date: "&text(a1,"mm/dd/yyyy")
    "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

  3. #3
    Forum Expert Pepe Le Mokko's Avatar
    Join Date
    05-14-2009
    Location
    Belgium
    MS-Off Ver
    O365 v 2402
    Posts
    13,446

    Re: concantnate text and date

    Try ="start Date:"&text(A1,"mm/dd/yyyy")

  4. #4
    Registered User
    Join Date
    09-17-2014
    Location
    Winston-Salem, NC
    MS-Off Ver
    2010
    Posts
    2

    Re: concantnate text and date

    Thank you very much for your solution. As a follow-up, how do I format the "Start Date: " as Bold and the date itself as normal.

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

    Re: concantnate text and date

    you cant with a function

  6. #6
    Forum Expert newdoverman's Avatar
    Join Date
    02-07-2013
    Location
    Port Dover, Ontario, Canada
    MS-Off Ver
    2010
    Posts
    10,330

    Re: concantnate text and date

    You could use a custom date format. Select the cells that the "concatenated date" will appear and format the cells as: "Start Date: " When you enter a reference to a date the date will be preceded by Start Date:

    This is done by: right clicking the selected cells, choose Format Cells, click on Date, Custom and enter "Start Date: " in the field.

    Now you can either enter the date directly or enter the cell reference to the cell with a date and the result will be Start Date: <your date>

    This has an advantage that the dates are still dates and not text that looks like a date.
    <---------If you like someone's answer, click the star to the left of one of their posts to give them a reputation point for that answer.
    Ron W

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. [SOLVED] Prefill text box in userform with today's date but allow user to enter unique date
    By moosetales in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 06-02-2014, 09:17 AM
  2. How to update Text Box2 with date 14 days after selected date in Text box1...
    By mjc61 in forum Access Programming / VBA / Macros
    Replies: 6
    Last Post: 01-26-2014, 09:17 PM
  3. Replies: 1
    Last Post: 02-14-2013, 10:40 PM
  4. Need to capture date data in a text string containing a date and time stamp
    By Grilleman in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 02-07-2013, 01:14 PM
  5. [SOLVED] Keep Date in Date Text Format not Date Value
    By wonderfulle in forum Excel General
    Replies: 2
    Last Post: 08-10-2010, 07:44 PM

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