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.
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.
Hi superchew,
One way you can do it is with a formula, maybe like this:
Formula: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.
You can also do it with a macro like this:
Please Login or Register to view this content.
VBA gives me a variable not defined.
This gibe a completely different date then what is in the cell.
variable not defined.jpg this is what I am getting.
is it not working because it also has a date connected
Whoops, my bad...
Please Login or Register to view this content.
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
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
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks