+ Reply to Thread
Results 1 to 2 of 2

Formatting dates in a formula

Hybrid View

  1. #1
    KimberlyC
    Guest

    Formatting dates in a formula

    Hi,
    I'm using the following formula to combine 4 ranges into one cell in my
    worksheet.
    The ranges are (Company, Employee, From, and To)
    ="Company: "&Company&" --- "&"Employee: "&Employee&" -- "&"Period:
    "&From&"-"&To

    This is working fine..expect the From and To ranges are dates and they show
    up like this below (after period)

    Company: ABC --- Employee: kim -- Period: 37987-38353

    These numbers should be 1/1/04 and 1/1/04


    I'm not sure what to add and where to the above formula to get the dates to
    show in mm/dd/yyyy format.?

    Thanks in advance for your help!!
    Kimberly




  2. #2
    Chip Pearson
    Guest

    Re: Formatting dates in a formula

    Kimberly,

    Use the TEXT function to convert the date serial number to a
    formatted date. E.g., TEXT(From,"mm/dd/yy")



    --
    Cordially,
    Chip Pearson
    Microsoft MVP - Excel
    Pearson Software Consulting, LLC
    www.cpearson.com




    "KimberlyC" <[email protected]> wrote in message
    news:%[email protected]...
    > Hi,
    > I'm using the following formula to combine 4 ranges into one
    > cell in my
    > worksheet.
    > The ranges are (Company, Employee, From, and To)
    > ="Company: "&Company&" --- "&"Employee: "&Employee&" --
    > "&"Period:
    > "&From&"-"&To
    >
    > This is working fine..expect the From and To ranges are dates
    > and they show
    > up like this below (after period)
    >
    > Company: ABC --- Employee: kim -- Period:
    > 37987-38353
    >
    > These numbers should be 1/1/04 and 1/1/04
    >
    >
    > I'm not sure what to add and where to the above formula to get
    > the dates to
    > show in mm/dd/yyyy format.?
    >
    > Thanks in advance for your help!!
    > Kimberly
    >
    >
    >




+ 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