+ Reply to Thread
Results 1 to 8 of 8

date formatting returning a number

  1. #1
    Registered User
    Join Date
    01-17-2020
    Location
    norwich
    MS-Off Ver
    Microsoft 365
    Posts
    26

    date formatting returning a number

    Hi guys

    Im using this formula
    ="Provisional Installation date = "&B5&CHAR(10)&"Fitting Team = "

    b5 has the date in it

    but it is returning the following answer
    Provisional Installation date = 44221

    how can i amend this so it shows
    Provisional Installation date = 25/01/2021

    thanks

  2. #2
    Forum Expert
    Join Date
    09-07-2014
    Location
    Israel
    MS-Off Ver
    office 365 for MAC
    Posts
    3,105

    Re: date formatting returning a number

    wrap your formula in text(formula,"yymmdd")

  3. #3
    Registered User
    Join Date
    01-17-2020
    Location
    norwich
    MS-Off Ver
    Microsoft 365
    Posts
    26

    Re: date formatting returning a number

    i dont follow

  4. #4
    Forum Expert
    Join Date
    09-07-2014
    Location
    Israel
    MS-Off Ver
    office 365 for MAC
    Posts
    3,105

    Re: date formatting returning a number

    so upload your excel file for visibility.

  5. #5
    Registered User
    Join Date
    01-17-2020
    Location
    norwich
    MS-Off Ver
    Microsoft 365
    Posts
    26

    Re: date formatting returning a number

    the date is in B5

    Im using the above formula in cell G1
    i want it to return the date and not 44221

  6. #6
    Forum Guru
    Join Date
    04-13-2005
    Location
    North America
    MS-Off Ver
    2002/XP and 2007
    Posts
    15,829

    Re: date formatting returning a number

    44221 is the serial number for the date in B5. In order to display a cell value as text in another cell, you use the TEXT() function: https://support.microsoft.com/en-us/...8-93d29371225c. So your formula should look something like

    ="text"&TEXT(B5,"dd/mm/yyyy")&"more text"

    If you are unfamiliar with the number format codes that you can use in the TEXT() function, this was one of my most commonly referenced help files when learning a spreadsheet: https://support.microsoft.com/en-us/...rs=en-us&ad=us
    Quote Originally Posted by shg
    Mathematics is the native language of the natural world. Just trying to become literate.

  7. #7
    Registered User
    Join Date
    01-17-2020
    Location
    norwich
    MS-Off Ver
    Microsoft 365
    Posts
    26

    Re: date formatting returning a number

    thank u mr shorty

  8. #8
    Registered User
    Join Date
    10-18-2019
    Location
    Kansas City
    MS-Off Ver
    Excel 2007
    Posts
    2

    Re: date formatting returning a number

    Quote Originally Posted by MrShorty View Post
    44221 is the serial number for the date in B5. In order to display a cell value as text in another cell, you use the TEXT() function: . So your formula should look something like

    ="text"&TEXT(B5,"dd/mm/yyyy")&"more text"

    If you are unfamiliar with the number format codes that you can use in the TEXT() function, this was one of my most commonly referenced help files when learning a spreadsheet:

    Thanks, this also helped me. I had to some tinkering, but I think I can get it to make a pivot table with dates but not including the year.

+ 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. Returning the row number if a given date is within a range
    By jhelliar in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 03-24-2018, 05:00 PM
  2. [SOLVED] Dual Lookup Condition with date and text returning a number
    By njmaclean in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 07-14-2017, 04:02 PM
  3. Date differential returning number of current date
    By Carmella in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 03-09-2017, 05:07 PM
  4. [SOLVED] Referencing a number on a sheet, matching an associated date, & returning an assoc value
    By JohnWRoss in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 07-21-2016, 04:22 PM
  5. [SOLVED] Returning the Number Next to the Last Date for Each Month
    By DSwartz in forum Excel Formulas & Functions
    Replies: 8
    Last Post: 07-20-2015, 05:05 PM
  6. Replies: 2
    Last Post: 11-09-2012, 12:01 PM
  7. [SOLVED] returning date instead of number (format doesn't work)
    By denvdm in forum Excel General
    Replies: 9
    Last Post: 08-17-2012, 10:28 AM

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