Notices
Computer & Technology Related Post here for help and discussion of computing and related technology. Internet, TVs, phones, consoles, computers, tablets and any other gadgets.

Excel experts?

Thread Tools
 
Search this Thread
 
Old 26 November 2003, 09:01 AM
  #1  
GaryK
Scooby Regular
Thread Starter
 
GaryK's Avatar
 
Join Date: Sep 1999
Location: Bedfordshire
Posts: 4,037
Likes: 0
Received 0 Likes on 0 Posts
Question

OK I need to convert a value of hh:mm:ss in a cell to total number of minutes. The cell is formatted as custom hh:mm:ss.

Now logically I would think that just doing a VALUE(LEFT(A1,2)) * 60 + VALUE(MID(A1, 4, 2)) would work. No it doesnt! Bizarrely its returning the wrong values. If I have a value of 10:20:00 and issue =MID(A1,4,2) you would expect the value returned to be '20', well its '30'! And doing =LEFT(A1,2) returns '0.' and not '10'.

Can anyone help and give me what the formula should be?

Cheers guys

Gary
Old 26 November 2003, 09:33 AM
  #2  
Dream Weaver
Scooby Regular
 
Dream Weaver's Avatar
 
Join Date: Feb 2000
Location: Lancashire
Posts: 9,844
Received 0 Likes on 0 Posts
Post

Look into using the functions, there are specific date & time functions you can use, hour, minute, timevalue etc.

These work
Old 26 November 2003, 09:44 AM
  #3  
GaryK
Scooby Regular
Thread Starter
 
GaryK's Avatar
 
Join Date: Sep 1999
Location: Bedfordshire
Posts: 4,037
Likes: 0
Received 0 Likes on 0 Posts
Post

DW,

Ive looked at them, done the RTFM STFW not much joy! This must be a common problem that must have been solved by someone?

Gary
Old 26 November 2003, 09:46 AM
  #4  
markr1963
Scooby Regular
 
markr1963's Avatar
 
Join Date: Jun 2002
Location: Perth, Western Australia
Posts: 1,866
Likes: 0
Received 0 Likes on 0 Posts
Post

Here ya go. A1 contains 10:20:00

=HOUR(A1)*60 + MINUTE(A1) gives 620

HTH
Mark
Old 26 November 2003, 10:07 AM
  #5  
Dream Weaver
Scooby Regular
 
Dream Weaver's Avatar
 
Join Date: Feb 2000
Location: Lancashire
Posts: 9,844
Received 0 Likes on 0 Posts
Post

thats what I meant
Old 26 November 2003, 10:14 AM
  #6  
GaryK
Scooby Regular
Thread Starter
 
GaryK's Avatar
 
Join Date: Sep 1999
Location: Bedfordshire
Posts: 4,037
Likes: 0
Received 0 Likes on 0 Posts
Thumbs up

thanks guys, having a dumb day

Gary
Related Topics
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
leg200
Subaru Parts
5
07 October 2015 07:31 AM
has-scooby
Subaru Parts
4
06 October 2015 03:47 PM
bluebullet29
General Technical
9
05 October 2015 02:17 PM



Quick Reply: Excel experts?



All times are GMT +1. The time now is 03:06 AM.