Date edit VBA

user12

New Member
Joined
May 16, 2019
Messages
7
Any help on this would be greatly appreciated. I have already tried recording a macro but to no avail.
I have a wkbk with 6 sheets, and each one has a date corresponding to the data in the form of 2019:129:14:18:31.274 YYYY:DDD(day of the year as in 129th day):HH:MM:SS.sss
I would like to turn that date which excels reads as text and remove some of the unneeded precision such that it reads YYYY:DDD:HH and in such a way that excel can recognize that it is a date. So if the previously mentioned format has to be altered to include months somehow that would be acceptable. The date data always starts in Cell A2 of each worksheet. Additionally, because of the precision some of the data that is recorded has slightly different times 2019:129:14:18:31.274 and 2019:129:14:18:32.274 because it is received at a difference second. If possible I would like to combine the data such that all of that data at any given year/day/hour is on the same row. Thanks in advance
 

Some videos you may like

Excel Facts

Select all contiguous cells
Pressing Ctrl+* (asterisk) will select the "current region" - all contiguous cells in all directions.

synergy16

Active Member
Joined
Mar 17, 2016
Messages
405
you want to change the date IN the worksheet itself or the name of the worksheet?
 

Watch MrExcel Video

Forum statistics

Threads
1,099,166
Messages
5,467,021
Members
406,518
Latest member
SilverSixx

This Week's Hot Topics

Top