+ Reply to Thread
Results 1 to 11 of 11

extract dates from a column of numbers

  1. #1
    Forum Contributor
    Join Date
    08-03-2012
    Location
    london, england
    MS-Off Ver
    Excel 2003
    Posts
    120

    extract dates from a column of numbers

    Hi guys,

    I have a column of numbers that have certain dates in it. I want to extract the dates and then copy and paste the dates into another column. Shall I use a macro for this or can it be done manually?

    Column A1
    03.03.2013
    1,02043
    1,02043
    1,01927
    1,01988
    06.01.2013
    1,04778
    1,0512
    1,04758
    1,05099
    07.10.2012

  2. #2
    Forum Contributor
    Join Date
    09-27-2012
    Location
    London, England
    MS-Off Ver
    2003, 2010
    Posts
    344

    Re: extract dates from a column of numbers

    Please upload a workbook with sample data. This will help to understand the data structure and the best way to populated desired results i.e. formulas vs. vba code.

    Thanks.
    If solved kindly remember to mark Thread as solved.
    Click the small star icon at the bottom left of my post if this was useful.

  3. #3
    Forum Contributor
    Join Date
    08-03-2012
    Location
    london, england
    MS-Off Ver
    Excel 2003
    Posts
    120

    Re: extract dates from a column of numbers

    booktest.xlsxsee attachment

  4. #4
    Forum Expert martindwilson's Avatar
    Join Date
    06-23-2007
    Location
    London,England
    MS-Off Ver
    office 97 ,2007
    Posts
    19,320

    Re: extract dates from a column of numbers

    are there always 4 values between dates?
    "Unless otherwise stated all my comments are directed at OP"

    Mojito connoisseur and now happily retired
    where does code go ?
    look here
    how to insert code

    how to enter array formula

    why use -- in sumproduct
    recommended reading
    wiki Mojito

    how to say no convincingly

    most important thing you need
    Martin Wilson: SPV
    and RSMBC

  5. #5
    Forum Contributor
    Join Date
    08-03-2012
    Location
    london, england
    MS-Off Ver
    Excel 2003
    Posts
    120

    Re: extract dates from a column of numbers

    no there are more than 4 values. there are like 100 dates in the column. this is just a small fraction of the data i have posted

  6. #6
    Forum Expert Debraj Roy's Avatar
    Join Date
    09-27-2012
    Location
    New Delhi,India
    MS-Off Ver
    Excel 2013
    Posts
    1,469

    Re: extract dates from a column of numbers

    Try this..


    In B1 use formula as..

    Formula: copy to clipboard
    Please Login or Register  to view this content.


    Its works exactly same as IsDate()
    Drag downward..
    Now you can filter only True..
    Regards!
    =DEC2HEX(3563)

    If you like someone's answer, click the star to give them a reputation point for that answer...

  7. #7
    Forum Expert martindwilson's Avatar
    Join Date
    06-23-2007
    Location
    London,England
    MS-Off Ver
    office 97 ,2007
    Posts
    19,320

    Re: extract dates from a column of numbers

    a few assumptions
    date will be greater than 18/02/1982 (just a date value i chose it =30000)
    and values between dates are <30000
    then in b2
    Formula: copy to clipboard
    Please Login or Register  to view this content.

  8. #8
    Forum Guru AlKey's Avatar
    Join Date
    07-20-2009
    Location
    Lakeland, FL USA
    MS-Off Ver
    Microsoft Office 2010/ Office 365
    Posts
    8,903

    Re: extract dates from a column of numbers

    As per your spreadsheet example you can also use this formula for Excel 2003

    In B1

    =IF(ISERROR(SMALL(IF(INT($A$1:$A$35)=1,"",ROW($A$1:$A$35)),ROW(1:1))),"",INDIRECT("A"&SMALL(IF(INT($A$1:$A$35)=1,"",ROW($A$1:$A$35)),ROW(1:1))))

    This is an array formula must be confirmed with Ctrl+Shift+Enter
    If you like my answer please click on * Add Reputation
    Don't forget to mark threads as "Solved" if your problem has been resolved

    "Nothing is so firmly believed as what we least know."
    --Michel de Montaigne

  9. #9
    Forum Expert martindwilson's Avatar
    Join Date
    06-23-2007
    Location
    London,England
    MS-Off Ver
    office 97 ,2007
    Posts
    19,320

    Re: extract dates from a column of numbers

    that also assumes that values wont be 0.xxxx or 2.xxxxx anything other than 1.xxxxxx

  10. #10
    Forum Expert newdoverman's Avatar
    Join Date
    02-07-2013
    Location
    Port Dover, Ontario, Canada
    MS-Off Ver
    2010
    Posts
    10,330

    Re: extract dates from a column of numbers

    You could try using Find and Select on the Home tab.

    Select column A
    Click on Find and Select, Find
    Enter / as the thing to find
    Click on Find All
    A box will open in the Find dialogue that has a listing of all the cells found with a /
    Click on the first entry in the list
    Scroll down to the last entry and hold the Shift key down and click on the last entry to select all the entries in the list
    Copy
    Paste where you want the results.
    <---------If you like someone's answer, click the star to the left of one of their posts to give them a reputation point for that answer.
    Ron W

  11. #11
    Forum Expert
    Join Date
    12-11-2011
    Location
    Netherlands
    MS-Off Ver
    office 365
    Posts
    3,293

    Re: extract dates from a column of numbers

    You can also use a pivot table to create the list
    Willem
    English is not my native language sorry for errors
    Please correct me if I'm completely wrong

+ 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 Numbers to new column
    By SamCrome in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 02-04-2013, 05:24 AM
  2. [SOLVED] Macro to extract numbers over 6 digets in column
    By abjac in forum Excel Programming / VBA / Macros
    Replies: 16
    Last Post: 01-25-2013, 05:46 AM
  3. Extract few numbers from columns and paste them in different column
    By trailblazers100 in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 01-24-2013, 06:46 PM
  4. [SOLVED] Extract 1st and 2nd minimum numbers from a column
    By bobboy in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 01-16-2013, 05:25 PM
  5. Code to Extract and Concatenate D/M/Y from Column of Julian Dates
    By anthony19 in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 06-13-2012, 03:14 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