Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 16
Default Calculating hr/min format

I have a column where the time is listed in an hr/minute format (example: 11
h 30 min). There are a number of rows with this information and I need to
total the time used (with the format given) and am unsure how to accomplish
this. I'm hoping there would be a simple formula.

Thanks in advance.
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 15
Default Calculating hr/min format

Hi Lee Ann

What you are asking is not so easy in the format shown.

Suggestion in your excel sheet why not try the following.

1. Make column showing hours in figures
2. Make column showning mins in figures
3. Make a column showing ( (1*60 + 2) ) this will give you mins
4. Make a cell a total of 3 to give total mins
4. Then convert the mins to Hours and mins for answer
--
Trev B


"Lee Ann" wrote:

I have a column where the time is listed in an hr/minute format (example: 11
h 30 min). There are a number of rows with this information and I need to
total the time used (with the format given) and am unsure how to accomplish
this. I'm hoping there would be a simple formula.

Thanks in advance.

  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 2,722
Default Calculating hr/min format

You can use this array** formula. Adjust range size as needed:

=SUM(TIME(VALUE(LEFT(A2:A200,FIND("
",A2:A200)-1)),VALUE(MID(A2:A200,FIND("h",A2:A200)+2,2)),0))

Note that this assumes input never gives a 3 digit value for minutes.
**Use Ctrl+Shift+Enter to confirm formula, not just Enter.
--
Best Regards,

Luke M
*Remember to click "yes" if this post helped you!*


"Lee Ann" wrote:

I have a column where the time is listed in an hr/minute format (example: 11
h 30 min). There are a number of rows with this information and I need to
total the time used (with the format given) and am unsure how to accomplish
this. I'm hoping there would be a simple formula.

Thanks in advance.

  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 16
Default Calculating hr/min format

Thanks for the responses. I started reading through some of the other posts
(which I probably should have done before asking for a solution). It seems
to accomplish the same thing if I change the format from 1 h 30 min to 1:30
and then add the string where I'm looking for the totals with a simple
=sum(A1:A200). Correct?

"Luke M" wrote:

You can use this array** formula. Adjust range size as needed:

=SUM(TIME(VALUE(LEFT(A2:A200,FIND("
",A2:A200)-1)),VALUE(MID(A2:A200,FIND("h",A2:A200)+2,2)),0))

Note that this assumes input never gives a 3 digit value for minutes.
**Use Ctrl+Shift+Enter to confirm formula, not just Enter.
--
Best Regards,

Luke M
*Remember to click "yes" if this post helped you!*


"Lee Ann" wrote:

I have a column where the time is listed in an hr/minute format (example: 11
h 30 min). There are a number of rows with this information and I need to
total the time used (with the format given) and am unsure how to accomplish
this. I'm hoping there would be a simple formula.

Thanks in advance.

  #5   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 2,722
Default Calculating hr/min format

Possibly. If the data is literally "1 h 30 min" then you can't change the
formatting of the cell to "1:30". However, if someone is using a custom
format of (under format - cell, number tab, custom)
h" h "mm" min"
Then yes, you can simply change the format and use SUM.

In short, if the data is inputed as a number, and formatted to display text,
you're good to go (don't even need to change formatting). If the data is
text, you'll need to use a formula to manipulate it back into numbers.

Also of note, here's a shorter array formula that converts your text into
numbers and sums:

=SUM(TIMEVALUE(SUBSTITUTE(SUBSTITUTE(A2:A100," h ",":")," min","")))

--
Best Regards,

Luke M
*Remember to click "yes" if this post helped you!*


"Lee Ann" wrote:

Thanks for the responses. I started reading through some of the other posts
(which I probably should have done before asking for a solution). It seems
to accomplish the same thing if I change the format from 1 h 30 min to 1:30
and then add the string where I'm looking for the totals with a simple
=sum(A1:A200). Correct?

"Luke M" wrote:

You can use this array** formula. Adjust range size as needed:

=SUM(TIME(VALUE(LEFT(A2:A200,FIND("
",A2:A200)-1)),VALUE(MID(A2:A200,FIND("h",A2:A200)+2,2)),0))

Note that this assumes input never gives a 3 digit value for minutes.
**Use Ctrl+Shift+Enter to confirm formula, not just Enter.
--
Best Regards,

Luke M
*Remember to click "yes" if this post helped you!*


"Lee Ann" wrote:

I have a column where the time is listed in an hr/minute format (example: 11
h 30 min). There are a number of rows with this information and I need to
total the time used (with the format given) and am unsure how to accomplish
this. I'm hoping there would be a simple formula.

Thanks in advance.



  #6   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 16
Default Calculating hr/min format

I did try Trev B's suggestion and that worked. I don't believe the
"administration" ever planned on using this information in this manner,
otherwise it would have been formatted differently, as this took some time to
reformat. But, it did work in the end.

Thanks again!

"Luke M" wrote:

Possibly. If the data is literally "1 h 30 min" then you can't change the
formatting of the cell to "1:30". However, if someone is using a custom
format of (under format - cell, number tab, custom)
h" h "mm" min"
Then yes, you can simply change the format and use SUM.

In short, if the data is inputed as a number, and formatted to display text,
you're good to go (don't even need to change formatting). If the data is
text, you'll need to use a formula to manipulate it back into numbers.

Also of note, here's a shorter array formula that converts your text into
numbers and sums:

=SUM(TIMEVALUE(SUBSTITUTE(SUBSTITUTE(A2:A100," h ",":")," min","")))

--
Best Regards,

Luke M
*Remember to click "yes" if this post helped you!*


"Lee Ann" wrote:

Thanks for the responses. I started reading through some of the other posts
(which I probably should have done before asking for a solution). It seems
to accomplish the same thing if I change the format from 1 h 30 min to 1:30
and then add the string where I'm looking for the totals with a simple
=sum(A1:A200). Correct?

"Luke M" wrote:

You can use this array** formula. Adjust range size as needed:

=SUM(TIME(VALUE(LEFT(A2:A200,FIND("
",A2:A200)-1)),VALUE(MID(A2:A200,FIND("h",A2:A200)+2,2)),0))

Note that this assumes input never gives a 3 digit value for minutes.
**Use Ctrl+Shift+Enter to confirm formula, not just Enter.
--
Best Regards,

Luke M
*Remember to click "yes" if this post helped you!*


"Lee Ann" wrote:

I have a column where the time is listed in an hr/minute format (example: 11
h 30 min). There are a number of rows with this information and I need to
total the time used (with the format given) and am unsure how to accomplish
this. I'm hoping there would be a simple formula.

Thanks in advance.

  #7   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 15
Default Calculating hr/min format

Thanks Lee Ann,

Somestimes KISS is better because it is easier to understand especally when
you look back at it after a period of time.

I glad it worked and of course it would have been better if formatted
correctly in the first place. This just proves that higensight is never
wrong.

Regards
--
Trev B


"Lee Ann" wrote:

I did try Trev B's suggestion and that worked. I don't believe the
"administration" ever planned on using this information in this manner,
otherwise it would have been formatted differently, as this took some time to
reformat. But, it did work in the end.

Thanks again!

"Luke M" wrote:

Possibly. If the data is literally "1 h 30 min" then you can't change the
formatting of the cell to "1:30". However, if someone is using a custom
format of (under format - cell, number tab, custom)
h" h "mm" min"
Then yes, you can simply change the format and use SUM.

In short, if the data is inputed as a number, and formatted to display text,
you're good to go (don't even need to change formatting). If the data is
text, you'll need to use a formula to manipulate it back into numbers.

Also of note, here's a shorter array formula that converts your text into
numbers and sums:

=SUM(TIMEVALUE(SUBSTITUTE(SUBSTITUTE(A2:A100," h ",":")," min","")))

--
Best Regards,

Luke M
*Remember to click "yes" if this post helped you!*


"Lee Ann" wrote:

Thanks for the responses. I started reading through some of the other posts
(which I probably should have done before asking for a solution). It seems
to accomplish the same thing if I change the format from 1 h 30 min to 1:30
and then add the string where I'm looking for the totals with a simple
=sum(A1:A200). Correct?

"Luke M" wrote:

You can use this array** formula. Adjust range size as needed:

=SUM(TIME(VALUE(LEFT(A2:A200,FIND("
",A2:A200)-1)),VALUE(MID(A2:A200,FIND("h",A2:A200)+2,2)),0))

Note that this assumes input never gives a 3 digit value for minutes.
**Use Ctrl+Shift+Enter to confirm formula, not just Enter.
--
Best Regards,

Luke M
*Remember to click "yes" if this post helped you!*


"Lee Ann" wrote:

I have a column where the time is listed in an hr/minute format (example: 11
h 30 min). There are a number of rows with this information and I need to
total the time used (with the format given) and am unsure how to accomplish
this. I'm hoping there would be a simple formula.

Thanks in advance.

Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Calculating Difference Between Two Times in General Format MGranger Excel Worksheet Functions 5 May 25th 09 05:34 PM
calculating time, overtime in excel [h]:mm format iamtaranicole Excel Discussion (Misc queries) 4 November 9th 07 05:19 PM
I format for date but it is calculating Tory Excel Discussion (Misc queries) 3 September 5th 06 01:25 PM
Cells with time format and calculating the diffrence MikeR-Oz New Users to Excel 11 January 3rd 06 10:11 AM
calculating with a time format cell Mahnaz Excel Worksheet Functions 1 December 13th 04 10:21 AM


All times are GMT +1. The time now is 04:11 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"