+ Reply to Thread
Results 1 to 6 of 6

Convert Text to Date and Number Weeks

  1. #1
    Registered User
    Join Date
    03-19-2009
    Location
    Toronto, Canada
    MS-Off Ver
    Excel 2011
    Posts
    37

    Convert Text to Date and Number Weeks

    Hi all,

    I feel like I'm taking crazy pills. I have worked with dates stored as text many times but for some reason this I can't beat this one. In the attached example, I am trying to convert the dates stored at text to a date, and then use weeknum formula to get the week number. Can you help? I've tried datevalue annd left,mid,right to extract the days months and years and then put them back together with date formula but it hasn't worked. I'm using mac excel 2011.


    Thanks in advance!
    Attached Files Attached Files

  2. #2
    Forum Expert
    Join Date
    06-26-2010
    Location
    Austin, TX
    MS-Off Ver
    Excel 2010
    Posts
    1,673

    Re: Convert Text to Date and Number Weeks

    Try this in B2:
    =SUBSTITUTE(A2," 2012",", 2012")+0
    Pauley
    --------
    If I helped with your issue, I'd appreciate a rep bump (hit the '*' icon to the bottom left of this post).

  3. #3
    Forum Guru MarvinP's Avatar
    Join Date
    07-23-2010
    Location
    Woodinville, WA
    MS-Off Ver
    Office 365
    Posts
    16,167

    Re: Convert Text to Date and Number Weeks

    Hi wace,

    See if the attached helps you. You can put my different parts into a single formula if you need.
    Attached Files Attached Files
    One test is worth a thousand opinions.
    Click the * Add Reputation below to say thanks.

  4. #4
    Forum Guru (RIP) Marcol's Avatar
    Join Date
    12-23-2009
    Location
    Fife, Scotland
    MS-Off Ver
    Excel '97 & 2003/7
    Posts
    7,216

    Re: Convert Text to Date and Number Weeks

    Your problem might be with extra spaces in your data
    Either trim your data, or use this to get your dates
    Formula: copy to clipboard
    Please Login or Register  to view this content.


    To get the weeknumber directly
    Formula: copy to clipboard
    Please Login or Register  to view this content.
    If you need any more information, please feel free to ask.

    However,If this takes care of your needs, please select Thread Tools from menu above and set this topic to SOLVED. It helps everybody! ....

    Also
    اس کی مدد کرتا ہے اگر
    شکریہ کہنے کے لئے سٹار کلک کریں
    If you are satisfied by any members response to your problem please consider using the small Star icon bottom left of their post to show your appreciation.

  5. #5
    Registered User
    Join Date
    03-19-2009
    Location
    Toronto, Canada
    MS-Off Ver
    Excel 2011
    Posts
    37

    Re: Convert Text to Date and Number Weeks

    Thanks MarvinP - worked great!

  6. #6
    Registered User
    Join Date
    03-19-2009
    Location
    Toronto, Canada
    MS-Off Ver
    Excel 2011
    Posts
    37

    Re: Convert Text to Date and Number Weeks

    Marcol, thanks - I did have to trim as well.

+ 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. Replies: 6
    Last Post: 01-31-2013, 02:50 AM
  2. [SOLVED] Convert date(text) to a number
    By Jen Cop in forum Excel General
    Replies: 10
    Last Post: 08-02-2012, 05:06 AM
  3. [SOLVED] Formula to convert date to text/number
    By Schwartz in forum Excel General
    Replies: 7
    Last Post: 04-20-2012, 04:26 PM
  4. Convert Serial Number to Date WITH TEXT
    By HP RodNuclear in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 12-20-2010, 12:39 PM
  5. [SOLVED] How do I convert a number formated as a date to text in Excel?
    By BrotherNov in forum Excel General
    Replies: 6
    Last Post: 03-02-2005, 12:06 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