Excel help
#1
Scooby Regular
Thread Starter
iTrader: (1)
Join Date: Aug 2005
Location: Manchester ish
Posts: 18,547
Likes: 0
Received 0 Likes
on
0 Posts
Excel help
Hi, I am doing a spreadsheet at work that pulls info in from external data sources.
One of the sources, has data contained in a time format and I need to break this down into the component form of the hour and also the minutes (2 seperate cells one for each).
So for an example
Cell c1 contains 12:30 formatted as time -this is data from the external source (Kronos)
I want cell a1 to contain 12 and b1 to contain 30
I have tried the left function but that doesnt work correctly, I was thinking about getting all of the times on a seperate worksheet and getting their decimals numbers and then using a vlookup against the decimal to populate the cells but that is a lot of work and possibly wont be easy to maintain in the future.
Has anyone got any suggestions?
Cheers
James
One of the sources, has data contained in a time format and I need to break this down into the component form of the hour and also the minutes (2 seperate cells one for each).
So for an example
Cell c1 contains 12:30 formatted as time -this is data from the external source (Kronos)
I want cell a1 to contain 12 and b1 to contain 30
I have tried the left function but that doesnt work correctly, I was thinking about getting all of the times on a seperate worksheet and getting their decimals numbers and then using a vlookup against the decimal to populate the cells but that is a lot of work and possibly wont be easy to maintain in the future.
Has anyone got any suggestions?
Cheers
James
#2
Scooby Regular
Thread Starter
iTrader: (1)
Join Date: Aug 2005
Location: Manchester ish
Posts: 18,547
Likes: 0
Received 0 Likes
on
0 Posts
looks like I have sorted it by using
=DAY(T4)*24+HOUR(T4)+MINUTE(T4)/60
this puts the time in a cell then I can use left and right in the other cells to get the info I need
=DAY(T4)*24+HOUR(T4)+MINUTE(T4)/60
this puts the time in a cell then I can use left and right in the other cells to get the info I need
Thread
Thread Starter
Forum
Replies
Last Post
Mattybr5@MB Developments
Full Cars Breaking For Spares
28
28 December 2015 11:07 PM
Mattybr5@MB Developments
Full Cars Breaking For Spares
12
18 November 2015 07:03 AM
bluebullet29
General Technical
9
05 October 2015 02:17 PM