+ Reply to Thread
Results 1 to 2 of 2

formatting dates to automatically extract Year and month

  1. #1
    Registered User
    Join Date
    01-23-2014
    Location
    Denver, Colorado
    MS-Off Ver
    Excel 2010
    Posts
    36

    formatting dates to automatically extract Year and month

    Hello,
    I am having trouble with date formatting.
    I want to copy and paste large sections of raw data (>5000 lines) and extract the month and year from one of the columns
    the date is originally formatted YYYMMDD but sometimes the date appears as DD/MM/YYYY. Some are formatted as a date and others as text.
    I've tried applying a custom format (to have everything show as YYYYMMDD) but it only works if I type in each date.
    Does anyone know of an automatic way of making everything uniform so that =month() and =year() or left() and mid() equations work?
    My goal is to be able to do add data each month and have everything format itself as I paste it in.
    Possible?

    thanks

    Alex

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

    Re: formatting dates to automatically extract Year and month

    Post a sample file which shows a range of examples of what you have - is the intention to produce proper dates, so that you can use =MONTH and =YEAR in other columns?

    Pete

+ 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] Extract Year or Month only from a cell with date and time
    By djaurit in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 01-28-2013, 04:03 PM
  2. [SOLVED] Extract Text from String then Convert to a Date (Month/Year)
    By sgrey24 in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 01-14-2013, 06:11 PM
  3. Replies: 2
    Last Post: 12-01-2012, 03:06 PM
  4. Based on col dates create col of dates for the first day of that same month and year
    By welchs101 in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 06-28-2011, 09:32 PM
  5. [SOLVED] Sorting dates:How do I sort a column filled with dates by Month, Day, then Year?
    By Heather in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 06-22-2005, 10:05 PM

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