I have a text file I imported into Excel, In column E and F there are times listed as text in this format:
[TABLE="width: 150"]
<tbody>[TR]
[TD]335a
[/TD]
[TD]931a[/TD]
[/TR]
[TR]
[TD]412a[/TD]
[TD]1015a[/TD]
[/TR]
[TR]
[TD]511a[/TD]
[TD]330p[/TD]
[/TR]
[TR]
[TD]525a[/TD]
[TD]416p[/TD]
[/TR]
[TR]
[TD]330p[/TD]
[TD]850p[/TD]
[/TR]
</tbody>[/TABLE]
I want to remove all the "a" and "p" markers but still make sure Excel knows which are AM and which are PM then I want to convert them from text to time values.
I figured out how to do it in several steps but I actually have 3000 lines of data and I had to manually type in the times to make sure they were am or pm. Can this process be automated?
I am comfortable with formulas and VBA so a solution either way would be great.
Your help is greatly appreciated and Thank You in advance.
[TABLE="width: 150"]
<tbody>[TR]
[TD]335a
[/TD]
[TD]931a[/TD]
[/TR]
[TR]
[TD]412a[/TD]
[TD]1015a[/TD]
[/TR]
[TR]
[TD]511a[/TD]
[TD]330p[/TD]
[/TR]
[TR]
[TD]525a[/TD]
[TD]416p[/TD]
[/TR]
[TR]
[TD]330p[/TD]
[TD]850p[/TD]
[/TR]
</tbody>[/TABLE]
I want to remove all the "a" and "p" markers but still make sure Excel knows which are AM and which are PM then I want to convert them from text to time values.
I figured out how to do it in several steps but I actually have 3000 lines of data and I had to manually type in the times to make sure they were am or pm. Can this process be automated?
I am comfortable with formulas and VBA so a solution either way would be great.
Your help is greatly appreciated and Thank You in advance.