Consulting

Results 1 to 5 of 5

Thread: Excel Not Changing Serial Date to Formatted Date

  1. #1
    VBAX Regular
    Joined
    Apr 2017
    Posts
    77
    Location

    Question Excel Not Changing Serial Date to Formatted Date

    How do I fix the serial date to a formatted date after I've tried the traditional formatting options? I tried changing via the format cells using the date; I tried a custom date, and still it won't change. I changed to text and back to general, then a formatted date. Nothing works.

    Here is the formula: =TEXTJOIN(";",TRUE,XLOOKUP($B2&$C2&G$1,CompletedTraing!$C$2:$C$400&Complete dTraing!$D$2:$D$400&CompletedTraing!$K$2:$K$400,CompletedTraing!$M$2:$M$400 ,"NC"))
    In column F on the green table, the date is formatted correctly, there is no formula here.

    I used this formula on another spreadsheet and the dates are formatted as dates (see blue table)

    Attached screenshot (green) this is the problem spreadsheet.
    Attached screenshot (blue) this is the same formula used on another spreadsheet and the dates are formatted as dates.



    Serial Dates.jpg

    Dates Formatted as Dates.jpg

  2. #2
    VBAX Mentor
    Joined
    Nov 2022
    Location
    The Great Land
    Posts
    337
    Location
    You say you formatted the cells as date? Might provide your workbook for analysis. Follow instructions at bottom of my post.
    How to attach file: Reading and Posting Messages (vbaexpress.com), click Go Advanced below post edit window. To provide db: copy, remove confidential data, run compact & repair, zip w/Windows Compression.

  3. #3
    VBAX Regular
    Joined
    Apr 2017
    Posts
    77
    Location
    Thank you. The spreadsheet is connected to Access, then I have query connection. I tried copy and paste as values to break the connections so I can send to you. I noticed the cell message shows the number stored as text. When I select convert to number this allowed me to format to a date.

    You can't see the true spreadsheet if I paste as value.

    OHHH Wait! My original spreadsheet (blue table in my original message), this is not connected to Access nor a query. Something is going wonky with my connections.

  4. #4
    VBAX Regular
    Joined
    Apr 2017
    Posts
    77
    Location
    I removed the "textjoin" from the formula. Now it will allow me to change the serial date to a formatted date.

    What's odd, in my original spreadsheet I used the textjoin and it allowed the date to be formatted as a date.

    I also can't recall why I used the textjoin with the xlookup. I did not need the textjoin.

  5. #5
    VBAX Master Aflatoon's Avatar
    Joined
    Sep 2009
    Location
    UK
    Posts
    1,720
    Location
    Textjoin returns text, which you cannot format with number formats (other than prepending/appending other text).
    Be as you wish to seem

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •