+ Reply to Thread
Results 1 to 4 of 4

Date format changes to numbers in simple formula

  1. #1
    Registered User
    Join Date
    06-08-2022
    Location
    USA
    MS-Off Ver
    2016
    Posts
    4

    Date format changes to numbers in simple formula

    After scouring this forum I wasn't able to find the answer I was looking for.
    To simplify my formula lets say cell A1 is a date:
    12/31/2023
    Cell B1 is that date plus one day:
    =A1+1
    returns me: 01-Jan
    Cell C1 is that date plus five days:
    =A1+5
    returns me: 05-Jan
    In cell D1 I have:
    ="From "&B1&" to "&C1
    I want D1 to read a from and to date like this:
    From 01-Jan to 05-Jan
    But I get this...
    From 45292 to 45296
    Formatting the cell to date format yields no result... Any advice? Thanks!
    Attached Files Attached Files

  2. #2
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (both in England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2503 (Windows 11 Home 24H2 64-bit)
    Posts
    90,250

    Re: Date format changes to numbers in simple formula

    This catches people out all the time!

    Try this:

    ="From "&TEXT(B1,"dd/mm/yyyy")&" to "&TEXT(C1,"dd/mm/yyyy")

    or this:

    ="From "&TEXT(B1,"dd-mmm")&" to "&TEXT(C1,"dd-mmm")
    Ali


    Enthusiastic self-taught user of MS Excel who's always learning!
    Don't forget to say "thank you" in your thread to anyone who has offered you help. It's a universal courtesy.
    You can reward them by clicking on * Add Reputation below their user name on the left, if you wish.

    NB:
    as a Moderator, I never accept friendship requests.
    Forum Rules (updated August 2023): please read them here.

  3. #3
    Registered User
    Join Date
    06-08-2022
    Location
    USA
    MS-Off Ver
    2016
    Posts
    4

    Re: Date format changes to numbers in simple formula

    Awesome! I knew there was a simple answer. Thank you, Thank you, Thank you!

  4. #4
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (both in England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2503 (Windows 11 Home 24H2 64-bit)
    Posts
    90,250

    Re: Date format changes to numbers in simple formula

    Glad to have helped.

    If that takes care of your original question, please choose Thread Tools from the menu link above and mark this thread as SOLVED.

    Also, if you have not already done so, you may not be aware that you can thank those who have helped you by clicking the small star icon (* Add Reputation) located in the lower left corner of the post in which the help was given. By doing so you can add to the reputation(s) of all those who offered help.

+ 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] Simple date & month format request
    By munishjain in forum Excel General
    Replies: 2
    Last Post: 08-12-2020, 06:52 AM
  2. [SOLVED] simple macro to format numbers doesnt work
    By fruitloop44 in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 06-28-2018, 12:52 AM
  3. [SOLVED] simple (hopefully) date/text format issue
    By gee83 in forum Excel General
    Replies: 3
    Last Post: 01-11-2018, 11:19 AM
  4. [SOLVED] URGENT - how do you do simple sums with cells set to date format
    By Muzza86 in forum Excel General
    Replies: 8
    Last Post: 06-25-2014, 07:03 AM
  5. Replies: 7
    Last Post: 02-17-2014, 04:48 AM
  6. 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
  7. [SOLVED] Simple Question, display only part of a date in Number format
    By DB Explorer in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 03-17-2006, 07:50 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