Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2
Default How come the function '=SUM(A2:A6)*24' doesn't work

In Excel the function '=SUM(A2:A6)*24' is suppose to give Total hours worked
when the total is greater than a day (25.33333), but it doesn't.

What will?

Regards Glyn
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 3,440
Default How come the function '=SUM(A2:A6)*24' doesn't work

What are the values in A2:A6 and what result *do* you get?

--
Kind regards,

Niek Otten
Microsoft MVP - Excel

"Glyndotcom" wrote in message ...
| In Excel the function '=SUM(A2:A6)*24' is suppose to give Total hours worked
| when the total is greater than a day (25.33333), but it doesn't.
|
| What will?
|
| Regards Glyn


  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 923
Default How come the function '=SUM(A2:A6)*24' doesn't work

=SUM(A2:A6)*24 yields the sum of A2 to A6 multiplied by 24; which does work.

You have some options to check the value is greater than 24; a IF condition,
e.g.

=IF(SUM(A2:A6)*24<24,SUM(A2:A6)*24," ")

which shows the value if it is less 24 or a blank if not

also consider using conditional formatting to change the appearance of the
cell depending on its value.


--
Cheers
Nigel



"Glyndotcom" wrote in message
...
In Excel the function '=SUM(A2:A6)*24' is suppose to give Total hours
worked
when the total is greater than a day (25.33333), but it doesn't.

What will?

Regards Glyn



  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2,646
Default How come the function '=SUM(A2:A6)*24' doesn't work

Are there really apostrophes before and after the formula?

Stefi


€˛Glyndotcom€¯ ezt Ć*rta:

In Excel the function '=SUM(A2:A6)*24' is suppose to give Total hours worked
when the total is greater than a day (25.33333), but it doesn't.

What will?

Regards Glyn

  #5   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 5,651
Default How come the function '=SUM(A2:A6)*24' doesn't work

On Tue, 3 Oct 2006 03:56:02 -0700, Glyndotcom
wrote:

In Excel the function '=SUM(A2:A6)*24' is suppose to give Total hours worked
when the total is greater than a day (25.33333), but it doesn't.

What will?

Regards Glyn


It is hard to tell what's going on since you give so little detail.

The formula works.

Common reasons for unexpected results with time summing include bad data or bad
formatting.
--ron


  #6   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 427
Default How come the function '=SUM(A2:A6)*24' doesn't work

Have you checked the format of the cell

Custom Time format of [h]:mm:ss or ust [h]:mm

This will then print Hours above 24

Steve

On Tue, 03 Oct 2006 11:56:02 +0100, Glyndotcom
wrote:

In Excel the function '=SUM(A2:A6)*24' is suppose to give Total hours
worked
when the total is greater than a day (25.33333), but it doesn't.

What will?

Regards Glyn

  #7   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 40
Default How come the function '=SUM(A2:A6)*24' doesn't work

I believe what everyone is saying is that the function works perfectly,
it is your logic that is flawed. Give us some more details on what it
is you're trying to do so we can help you out. And I might also
suggest posting this in the worksheet functions group not the
programming group.


Ron Rosenfeld wrote:
On Tue, 3 Oct 2006 03:56:02 -0700, Glyndotcom
wrote:

In Excel the function '=SUM(A2:A6)*24' is suppose to give Total hours worked
when the total is greater than a day (25.33333), but it doesn't.

What will?

Regards Glyn


It is hard to tell what's going on since you give so little detail.

The formula works.

Common reasons for unexpected results with time summing include bad data or bad
formatting.
--ron


  #8   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2
Default How come the function '=SUM(A2:A6)*24' doesn't work

Niek,

Thanks for the email, A2:A6 should add up to 25.3333, without the *24, it
gives 1:20, with the *24, it gives 8:00.

I am trying to add up working hours. The formula is from the Help Time
Function menu.

I can only assume the help menu is wrong, it actually multiplies the total,
but still gives it in a 24 hour formate.

"Niek Otten" wrote:

What are the values in A2:A6 and what result *do* you get?

--
Kind regards,

Niek Otten
Microsoft MVP - Excel

"Glyndotcom" wrote in message ...
| In Excel the function '=SUM(A2:A6)*24' is suppose to give Total hours worked
| when the total is greater than a day (25.33333), but it doesn't.
|
| What will?
|
| Regards Glyn



  #9   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 3,440
Default How come the function '=SUM(A2:A6)*24' doesn't work

If you format the 1:20 as Custom [h]:mm you'll see that it actually is 25:20, which indeed is 25.3333 hours.
Multiply by 24, format as General and you get 25.3333

--
Kind regards,

Niek Otten
Microsoft MVP - Excel

"Glyndotcom" wrote in message ...
| Niek,
|
| Thanks for the email, A2:A6 should add up to 25.3333, without the *24, it
| gives 1:20, with the *24, it gives 8:00.
|
| I am trying to add up working hours. The formula is from the Help Time
| Function menu.
|
| I can only assume the help menu is wrong, it actually multiplies the total,
| but still gives it in a 24 hour formate.
|
| "Niek Otten" wrote:
|
| What are the values in A2:A6 and what result *do* you get?
|
| --
| Kind regards,
|
| Niek Otten
| Microsoft MVP - Excel
|
| "Glyndotcom" wrote in message
...
| | In Excel the function '=SUM(A2:A6)*24' is suppose to give Total hours worked
| | when the total is greater than a day (25.33333), but it doesn't.
| |
| | What will?
| |
| | Regards Glyn
|
|
|


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
need a function that will work using multiple work books and sheet capt c Excel Worksheet Functions 1 March 30th 09 10:20 PM
VBA Function won't work! [email protected] Excel Programming 6 June 29th 06 09:10 AM
how do i get the mid function to work with a zero garbold Excel Worksheet Functions 7 June 7th 06 10:58 PM
NZ function doesn't work! salut Excel Programming 2 March 23rd 06 07:46 PM
Why it can work in Function but ok in Sub new.microsoft.com Excel Programming 1 November 21st 05 09:44 AM


All times are GMT +1. The time now is 01:59 PM.

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

About Us

"It's about Microsoft Excel"