+ Reply to Thread
Results 1 to 2 of 2

Keeping Date in current format when including in text string

  1. #1
    Registered User
    Join Date
    03-19-2009
    Location
    Toronto, Canada
    MS-Off Ver
    Excel 2011
    Posts
    37

    Keeping Date in current format when including in text string

    Hi,

    I have a date stored in the following format: mmddyyyy in cell Y2. I am trying to reference that date in a formula I am using in cell X2 to build a directory path. When I reference the date in Y2 it displays in a different format.

    For example: The date in cell Y2 is 06112011 but when I reference it in X2 it displays as 40705.

    How do I change this so it pulls in 06112011 in my formula in X2?

    I've attached a spreadsheet with the formula I am building.

    Thanks in advance!
    Attached Files Attached Files
    Last edited by wace; 06-06-2011 at 10:11 AM.

  2. #2
    Forum Expert NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003:2010
    Posts
    34,898

    Re: Keeping Date in current format when including in text string

    Try using the TEXT function

    e.g.

    TEXT(Y2,"mmddyyyy")
    Where there is a will there are many ways.

    If you are happy with the results, please add to the contributor's reputation by clicking the reputation icon (star icon) below left corner

    Please also mark the thread as Solved once it is solved. Check the FAQ's to see how.

+ 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