+ Reply to Thread
Results 1 to 7 of 7

Switch Date to different Format

  1. #1
    Forum Contributor
    Join Date
    07-16-2012
    Location
    Fort Worth, Texas
    MS-Off Ver
    Excel 2010
    Posts
    378

    Switch Date to different Format

    Hello,

    Do you know any formula that can help me swith this date format with dashes to dots. For example, change this from 05/16/14 to 05.16.14

    Please help.

  2. #2
    Forum Expert Ron Coderre's Avatar
    Join Date
    03-22-2005
    Location
    Boston, Massachusetts
    MS-Off Ver
    2013, 2016, O365
    Posts
    6,996

    Re: Switch Date to different Format

    • Select the cells to be formatted
    • CTRL+1...to open the formatting window
    ...Number_tab
    ...Category: Custom
    ...Type: mm.dd.yy <-Put this in the Type box
    ...Click: OK

    Is that something you can work with?
    Ron
    Former Microsoft MVP - Excel (2006 - 2015)
    Click here to see the Forum Rules

  3. #3
    Forum Guru
    Join Date
    08-05-2004
    Location
    NJ
    MS-Off Ver
    365
    Posts
    13,582

    Re: Switch Date to different Format

    Note: What Ron gave you changes the formatting of a date to mm.dd.yy. It does not allow you to enter a date using that periods instead of slashes. I believe you'd need VBA for that.
    ChemistB
    My 2?

    substitute commas with semi-colons if your region settings requires
    Don't forget to mark threads as "Solved" (Edit First post>Advanced>Change Prefix)
    If I helped, Don't forget to add to my reputation (click on the little star at bottom of this post)

    Forum Rules: How to use code tags, mark a thread solved, and keep yourself out of trouble

  4. #4
    Forum Contributor
    Join Date
    07-16-2012
    Location
    Fort Worth, Texas
    MS-Off Ver
    Excel 2010
    Posts
    378

    Re: Switch Date to different Format

    Thanks for the formatting tip. However, when I use Indirect function for the new format. The indirect still read 05.16.14 as 47774 not as "05.16.14" that I expected

  5. #5
    Forum Expert Ron Coderre's Avatar
    Join Date
    03-22-2005
    Location
    Boston, Massachusetts
    MS-Off Ver
    2013, 2016, O365
    Posts
    6,996

    Re: Switch Date to different Format

    How'bout we save a bit of time and you post the formula you're trying to use?

  6. #6
    Forum Contributor
    Join Date
    07-16-2012
    Location
    Fort Worth, Texas
    MS-Off Ver
    Excel 2010
    Posts
    378

    Re: Switch Date to different Format

    I found the solution. This is the formula that I'm using. Thanks for the help.

    =INDIRECT("'"&TEXT(TODAY()-1,"MM.DD.YY")&"'!$AJ6")-INDIRECT("'"&TEXT(TODAY()-2,"MM.DD.YY")&"'!$AJ6")

  7. #7
    Forum Expert Ron Coderre's Avatar
    Join Date
    03-22-2005
    Location
    Boston, Massachusetts
    MS-Off Ver
    2013, 2016, O365
    Posts
    6,996

    Re: Switch Date to different Format

    Glad you got something you can use!

    Be sure to mark this thread as SOLVED (from the Thread Tools menu)

+ 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. August 1 to January 8 date switch.
    By qcity in forum Excel General
    Replies: 1
    Last Post: 12-06-2011, 03:59 AM
  2. switch currency format
    By KLAUSS in forum Excel - New Users/Basics
    Replies: 1
    Last Post: 09-24-2010, 08:57 AM
  3. Number format switch
    By Lorena in forum Excel General
    Replies: 2
    Last Post: 08-15-2009, 06:43 PM
  4. Switch off Excel 2007 nag when saving in 2003 format
    By peri1224 in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 08-15-2009, 11:02 AM
  5. date and then switch
    By HolyCow in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 11-13-2008, 03:25 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