+ Reply to Thread
Results 1 to 23 of 23

DATEVALUE won't convert date to serial

  1. #1
    Forum Contributor
    Join Date
    01-16-2015
    Location
    Istanbul
    MS-Off Ver
    Office 365
    Posts
    928

    DATEVALUE won't convert date to serial

    I want to convert date in the format "dd.mm.yyyy" into serial.

    Column B includes dates in the format "dd.mm.yyyy" I write a formula which is "=DATEVALUE(B2)" in a cell on column C. I get "#VALUE" error.

    How to do that?

  2. #2
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2403
    Posts
    43,959

    Re: DATEVALUE won't convert date to serial

    Is the data a real date or text that looks like a date? can you post a sample in an Excel sheet?
    Glenn




    None of us get paid for helping you... we do this for fun. So DON'T FORGET to say "Thank You" to all who have freely given some of their time to help YOU.

    Temporary addition of accented to illustrate ongoing problem to the TT: L? fh?ile P?draig sona dhaoibh

  3. #3
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2403
    Posts
    43,959

    Re: DATEVALUE won't convert date to serial

    Try this, formatted as general:

    =DATE(RIGHT(A1,4),MID(A1,4,2),LEFT(A1,2))

  4. #4
    Forum Expert Tony Valko's Avatar
    Join Date
    12-31-2011
    Location
    Pittsburgh
    MS-Off Ver
    2002, 2007:2013
    Posts
    18,890

    Re: DATEVALUE won't convert date to serial

    This works for me...

    =--SUBSTITUTE(A1,".","/")

    Format as Date
    Biff
    Microsoft MVP Excel
    Keep It Simple Stupid

    Let's Go Pens. We Want The Cup.

  5. #5
    Forum Contributor
    Join Date
    01-28-2014
    Location
    Turkey
    MS-Off Ver
    Excel 2013
    Posts
    159

    Re: DATEVALUE won't convert date to serial

    Please Login or Register  to view this content.
    Format as Date

  6. #6
    Forum Contributor
    Join Date
    01-16-2015
    Location
    Istanbul
    MS-Off Ver
    Office 365
    Posts
    928

    Re: DATEVALUE won't convert date to serial

    They won't work.
    Attached Files Attached Files

  7. #7
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2403
    Posts
    43,959

    Re: DATEVALUE won't convert date to serial

    We had all assumed (as you hadn't posted any sheet...) that you had text that looks like a date. However what you have are real dates. to see the number, just format the cells as general, not as date...

  8. #8
    Forum Contributor
    Join Date
    01-16-2015
    Location
    Istanbul
    MS-Off Ver
    Office 365
    Posts
    928

    Re: DATEVALUE won't convert date to serial

    I tried to format cells of Excel as Text then made cut and paste. I get same results.

    I tried to format cells after cut and paste then it turned dates Excel made up into serial numbers. So both won't work.

  9. #9
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2403
    Posts
    43,959

    Re: DATEVALUE won't convert date to serial

    OK. Let's start again. EXACTLY what do you want as an output? Is it hte number that corresponds to the dates? See sheet. If not please show us what you want - not in words, but the ACTUAL text/word/number that you want to see.

  10. #10
    Forum Expert bebo021999's Avatar
    Join Date
    07-22-2011
    Location
    Vietnam
    MS-Off Ver
    Excel 2016
    Posts
    9,430

    Re: DATEVALUE won't convert date to serial

    Is the attachment in #6 manual fixed version?
    Post original file again.
    Quang PT

  11. #11
    Forum Contributor
    Join Date
    01-16-2015
    Location
    Istanbul
    MS-Off Ver
    Office 365
    Posts
    928

    Re: DATEVALUE won't convert date to serial

    No, the file on #6 is the original version of file.

    I want to convert the dates on column B into Serial on column D.

  12. #12
    Forum Guru Pete_UK's Avatar
    Join Date
    12-31-2011
    Location
    Warrington, England
    MS-Off Ver
    Office 2019 (still learning)
    Posts
    24,679

    Re: DATEVALUE won't convert date to serial

    I think the answer to your problem really depends on what you mean by "serial" - please expand on this.

    If you want the serial number that the date represents, then all you need in D2 is this formula:

    =B2

    Format that cell as General, then copy it down.

    If you have a different meaning for the word "serial", then please tell us what that meaning is.

    Hope this helps.

    Pete

  13. #13
    Forum Contributor
    Join Date
    01-16-2015
    Location
    Istanbul
    MS-Off Ver
    Office 365
    Posts
    928

    Re: DATEVALUE won't convert date to serial

    The data on the B column should be used on the x Axis on the charts.

    The right-hand chart is mine. As you see, there, the data on the x Axis includes dates from the B column.

    The data on the x Axis of the book's chart looks different. The book says you should turn the dates into serial and refer those in the chart as far as I understand.

    How do I enable the data on the x axis of my chart look like that?

  14. #14
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,926

    Re: DATEVALUE won't convert date to serial

    change the format of the axis to Date 3/14 (to just show m/dd)
    1. Use code tags for VBA. [code] Your Code [/code] (or use the # button)
    2. If your question is resolved, mark it SOLVED using the thread tools
    3. Click on the star if you think someone helped you

    Regards
    Ford

  15. #15
    Forum Guru Pete_UK's Avatar
    Join Date
    12-31-2011
    Location
    Warrington, England
    MS-Off Ver
    Office 2019 (still learning)
    Posts
    24,679

    Re: DATEVALUE won't convert date to serial

    Click on your chart, then move the cursor to hover over the X-axis area and right-click and choose Format Axis from the dialogue box. On the Number tab, choose the third one listed (i.e. 3/14), then click OK or Close. No need to use column D.

    Hope this helps.

    Pete

  16. #16
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,926

    Re: DATEVALUE won't convert date to serial

    Quote Originally Posted by Pete_UK View Post
    Click on your chart, then move the cursor to hover over the X-axis area and right-click and choose Format Axis from the dialogue box. On the Number tab, choose the third one listed (i.e. 3/14), then click OK or Close. No need to use column D.

    Hope this helps.

    Pete
    Good explanation Pete, thanks

  17. #17
    Banned User!
    Join Date
    02-05-2015
    Location
    San Escobar
    MS-Off Ver
    any on PC except 365
    Posts
    12,168

    Re: DATEVALUE won't convert date to serial


  18. #18
    Forum Contributor
    Join Date
    01-16-2015
    Location
    Istanbul
    MS-Off Ver
    Office 365
    Posts
    928

    Re: DATEVALUE won't convert date to serial

    I formatted the x axis data. It works.

    How do I enable the chart seize the data? (As you see there are gaps at the left and right.)

    I made Format Axis - Axis Options;

    Minimum - Fixed : 5.2
    Maximum - Fixed : 7.26

    Then the data got lost.
    Attached Files Attached Files

  19. #19
    Forum Guru Pete_UK's Avatar
    Join Date
    12-31-2011
    Location
    Warrington, England
    MS-Off Ver
    Office 2019 (still learning)
    Posts
    24,679

    Re: DATEVALUE won't convert date to serial

    You need to enter those values as full dates, i.e. including the year (otherwise Excel will assume the current year). Or you can enter the serial values for those dates - 2/05/2010 = 40300, 7/26/2010 = 40385.

    Hope this helps.

    Pete

  20. #20
    Forum Contributor
    Join Date
    01-16-2015
    Location
    Istanbul
    MS-Off Ver
    Office 365
    Posts
    928

    Re: DATEVALUE won't convert date to serial

    How to know that 2/05/2010 = 40300 and 7/26/2010 = 40385? How to convert them into serial (like 40300)?

  21. #21
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,926

    Re: DATEVALUE won't convert date to serial

    format them as general
    or, if you want to see that value in another cell, just type the reference =A1 (if that is where the date is), and then format that cell to general

  22. #22
    Forum Contributor
    Join Date
    01-16-2015
    Location
    Istanbul
    MS-Off Ver
    Office 365
    Posts
    928

    Re: DATEVALUE won't convert date to serial

    One last question about this topic.

    There is 0.7 increase between the x Axis data values of the chart.

    However when I set "0.7" (Format Axis - Axis Options - Major Unit - Fixed : 0.7) It looks like mess, It won't work. How to make 0.7 increase?

  23. #23
    Forum Moderator
    Join Date
    01-21-2014
    Location
    St. Joseph, Illinois U.S.A.
    MS-Off Ver
    Office 365 v 2403
    Posts
    13,406

    Re: DATEVALUE won't convert date to serial

    Try setting the Major unit to 7.0

    That sets them a week apart.
    Dave

+ 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] Convert a Text String Date to Date Serial Number
    By herve73 in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 11-10-2015, 10:53 AM
  2. Convert serial date to day format
    By YasserKhalil in forum Excel Programming / VBA / Macros
    Replies: 13
    Last Post: 01-04-2015, 03:01 AM
  3. DateValue fail to get serial number
    By jeffcde in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 01-28-2014, 11:13 PM
  4. [SOLVED] Convert date string to serial number
    By amalfaro in forum Excel Programming / VBA / Macros
    Replies: 17
    Last Post: 01-21-2014, 01:36 PM
  5. how to convert date serial number to regular date?
    By union in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 12-21-2013, 10:15 PM
  6. HOW DO I ENTER THIS FORMULA TO CONVERT TEXT TO DATE =DATEVALUE(,
    By Carter in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 03-15-2006, 10:20 AM
  7. [SOLVED] Convert SERIAL date back into dd/mm/yy format?
    By Aussie CPA in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 09-29-2005, 10:05 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