+ Reply to Thread
Results 1 to 3 of 3

Year Issue with Dates (Year No 1905)

  1. #1
    Registered User
    Join Date
    05-02-2016
    Location
    Canada
    MS-Off Ver
    2010
    Posts
    8

    Year Issue with Dates (Year No 1905)

    Dear Excel Forum Members and Experts,
    I am trying to extract Year from dates in a row. I am using the following code, however I am getting 1905 as year in each cell.
    Please look at this and help if possible. I have made some changes to comply to the RULE 3 of the Forum
    Thanks

    My Dates are in ROW6 and extracting Year in ROW1

    Please Login or Register  to view this content.
    Last edited by shahamat; 10-26-2017 at 09:48 PM. Reason: Rule 3 of our Forum RULES

  2. #2
    Forum Expert
    Join Date
    08-12-2012
    Location
    Sydney, Australia
    MS-Off Ver
    Excel 2010
    Posts
    5,636

    Re: Year Issue with Dates (Year No 1905)

    the code provides no information to why you are getting the results you are getting
    suggest you provide example data along with the code as well
    Last edited by humdingaling; 10-26-2017 at 11:02 PM.
    If you are satisfied with the solution(s) provided, please mark your thread as Solved.
    Select Thread Tools-> Mark thread as Solved. To undo, select Thread Tools-> Mark thread as Unsolved.

  3. #3
    Forum Expert
    Join Date
    08-12-2012
    Location
    Sydney, Australia
    MS-Off Ver
    Excel 2010
    Posts
    5,636

    Re: Year Issue with Dates (Year No 1905)

    Please Login or Register  to view this content.
    This line extracts the year already
    Please Login or Register  to view this content.
    then this line converts the year into "date" format

    all this can go away
    Please Login or Register  to view this content.
    just change the format to general for row 1 and it should display the correct 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. From Year and upto year dates need to be plotted
    By Sekars in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 05-16-2016, 02:34 PM
  2. 1905 Year vba Format
    By rbirch in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 05-28-2015, 09:15 PM
  3. How change cell year dates to automatically update to new year
    By RonRich in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 01-05-2015, 08:29 AM
  4. Automatically update year interval cycles from year to year
    By trumptight in forum Word Programming / VBA / Macros
    Replies: 8
    Last Post: 08-21-2014, 10:38 PM
  5. Replies: 3
    Last Post: 09-04-2013, 10:49 AM
  6. countif. dates in a year (year is the criteria)
    By barrfly in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 01-18-2010, 03:33 PM
  7. [SOLVED] how do I convert a dates in a year quarters in a year?
    By Linndek in forum Excel General
    Replies: 5
    Last Post: 05-11-2006, 10:35 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