+ Reply to Thread
Results 1 to 10 of 10

cant get dates that are in text for to change to date form

  1. #1
    Forum Contributor
    Join Date
    04-18-2013
    Location
    utah
    MS-Off Ver
    2010
    Posts
    668

    cant get dates that are in text for to change to date form

    please help in the attached workbook on the safety contacts tab there are dates that I export for a report. These dates are in text form.

    I have tried everything I can google and can't get it to work. Please help.
    Attached Files Attached Files

  2. #2
    Valued Forum Contributor spitfireblue's Avatar
    Join Date
    01-29-2015
    Location
    Adelaide, Australia
    MS-Off Ver
    2007,2010,2016
    Posts
    611

    Re: cant get dates that are in text for to change to date form

    Hi superchew,

    One way you can do it is with a formula, maybe like this:
    Formula: copy to clipboard
    Please Login or Register  to view this content.
    Regards,
    Stephen

    If you feel someone has helped you please thank them and click on the star on their post to add reputation.
    Please ensure that you use code tags where relevant, and mark solved threads as solved.
    Most of all please be respectful and understanding of others.

  3. #3
    Valued Forum Contributor spitfireblue's Avatar
    Join Date
    01-29-2015
    Location
    Adelaide, Australia
    MS-Off Ver
    2007,2010,2016
    Posts
    611

    Re: cant get dates that are in text for to change to date form

    You can also do it with a macro like this:

    Please Login or Register  to view this content.

  4. #4
    Forum Contributor
    Join Date
    04-18-2013
    Location
    utah
    MS-Off Ver
    2010
    Posts
    668

    Re: cant get dates that are in text for to change to date form

    VBA gives me a variable not defined.

  5. #5
    Forum Contributor
    Join Date
    04-18-2013
    Location
    utah
    MS-Off Ver
    2010
    Posts
    668

    Re: cant get dates that are in text for to change to date form

    This gibe a completely different date then what is in the cell.

  6. #6
    Forum Contributor
    Join Date
    04-18-2013
    Location
    utah
    MS-Off Ver
    2010
    Posts
    668

    Re: cant get dates that are in text for to change to date form

    variable not defined.jpg this is what I am getting.

  7. #7
    Forum Contributor
    Join Date
    04-18-2013
    Location
    utah
    MS-Off Ver
    2010
    Posts
    668

    Re: cant get dates that are in text for to change to date form

    is it not working because it also has a date connected

  8. #8
    Valued Forum Contributor spitfireblue's Avatar
    Join Date
    01-29-2015
    Location
    Adelaide, Australia
    MS-Off Ver
    2007,2010,2016
    Posts
    611

    Re: cant get dates that are in text for to change to date form

    Whoops, my bad...

    Please Login or Register  to view this content.

  9. #9
    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,936

    Re: cant get dates that are in text for to change to date form

    For future reference, please do not upload your entire file is it that big that it needs to be zipped. Most of those sheets have no bearing on your question, and many members will not even consider (or may not be allowed to) opening large files

    All we need is a SMALL representative sample of what you have - and what you want...if necessary, explain what ranges you need to work with
    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

  10. #10
    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,936

    Re: cant get dates that are in text for to change to date form

    You can probably speed that file up by changing from full-column references to ranges...
    =COUNTIFS('Safety Contacts'!F:F, $A2, 'Safety Contacts'!$E:$E,">=" & 'Score Card'!$T$2,'Safety Contacts'!$E:$E,"<=" & 'Score Card'!$V$2)
    to
    =COUNTIFS('Safety Contacts'!$F$2:$F$10000, $A2, 'Safety Contacts'!$E$2:$E$10000,">=" & 'Score Card'!$T$2,'Safety Contacts'!$E$2:$E$10000,"<=" & 'Score Card'!$V$2)
    etc

    To pull the date from Incident Sheet, try this in a helper column...
    =DATEVALUE(LEFT(E2,FIND(" ",E2)-1))
    copied down and formatted as date

+ 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. Creating Date Tabs using dates entered via form
    By MartinF123 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 10-30-2014, 06:34 PM
  2. [SOLVED] Change Text on Form Control Button with VBA
    By Delta729 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 08-16-2014, 11:09 PM
  3. Replies: 12
    Last Post: 06-13-2014, 05:03 PM
  4. Form with range change based on dates
    By ASFinancial in forum Excel General
    Replies: 0
    Last Post: 08-24-2010, 12:29 PM
  5. [Solved]User form Text Box change default to date
    By BJ5352 in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 08-24-2010, 03:56 AM
  6. dates change when copied form 1 spreadsheet to another
    By sheehanb in forum Excel General
    Replies: 1
    Last Post: 05-11-2006, 10:10 AM
  7. Change the size of text used in a Form combo box
    By Mark in forum Excel General
    Replies: 0
    Last Post: 04-11-2006, 10:15 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