+ Reply to Thread
Results 1 to 4 of 4

Convert date into displayed format

  1. #1
    Registered User
    Join Date
    11-02-2018
    Location
    USA
    MS-Off Ver
    2016
    Posts
    7

    Convert date into displayed format

    Hi Everyone,

    I am using two cells formatted as date to automatically name a new tab using VBA. The dates on the cells are 1/4 and 1/8. When I use the values as dates the name of the tab is "44200-44204" Which correspond to the values of the dates. I want to be able to name the new tab "1.4-1.8".

    Is there a formula to be able to convert the date 1/4 (value 44200) into a text value of 1.4

    Any ideas would be appreciated

    Regards

    RMC

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

    Re: Convert date into displayed format

    Assuming 1 is month and 4 is day in your example
    =TEXT(A1,"m.d")
    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

  3. #3
    Forum Expert
    Join Date
    12-14-2012
    Location
    London England
    MS-Off Ver
    MS 365 Office Suite.
    Posts
    8,448

    Re: Convert date into displayed format

    =text(a1,"dd/mm")&"-"&text(b1,"dd/mm")
    My General Rules if you want my help. Not aimed at any person in particular:

    1. Please Make Requests not demands, none of us get paid here.

    2. Check back on your post regularly. I will not return to a post after 4 days.
    If it is not important to you then it definitely is not important to me.

  4. #4
    Registered User
    Join Date
    11-02-2018
    Location
    USA
    MS-Off Ver
    2016
    Posts
    7

    Re: Convert date into displayed format

    Thanks for the quick reply... appreciated you answers
    I have solved my issue naming my new tabs.

+ 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] Capture the Displayed date value/format
    By JP Romano in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 08-04-2017, 03:22 PM
  2. [SOLVED] Convert custom number format to string or cell's displayed value
    By keineko in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 05-17-2017, 06:11 PM
  3. [SOLVED] How to convert the unix date format to excel date format
    By sivaksekar in forum Excel General
    Replies: 1
    Last Post: 08-15-2016, 03:33 AM
  4. Numbers displayed in date format
    By Trygve67 in forum Excel General
    Replies: 4
    Last Post: 05-27-2014, 04:50 AM
  5. [SOLVED] converting text displayed as 20130925 to date format
    By naida in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 09-26-2013, 03:00 AM
  6. Cannot convert date (which is in text format) to date in numeric format
    By geniuspro in forum Excel Charting & Pivots
    Replies: 2
    Last Post: 10-19-2012, 09:21 AM
  7. Need Formula/VBA Code to convert date in String Format to Normal Date format
    By Karthik Sen in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 02-18-2012, 04:54 AM

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