Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 24
Default Summing a Formula

I have formulas in 5 columns that give me the total hours a child is
in daycare. The formula calulates the total time according to there
sign in and out times. That works great. But when I sum those
formulas, it says "0". What am I doing wrong?

=SUM(B47:K47)
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 806
Default Summing a Formula

Hello Debbie,

B47:K47 are 10 cells, not 5. Which cells are containing your data and
how are they formatted (integer numbers, date / time format, ...)?

Can you show some sample data?

Regards,
Bernd
  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 11,501
Default Summing a Formula

Debbie

Show us the formula that calculates the times. One suggestion to begin with
is format the cell with this formula in as [h]:mm

Mike

"Debbie" wrote:

I have formulas in 5 columns that give me the total hours a child is
in daycare. The formula calulates the total time according to there
sign in and out times. That works great. But when I sum those
formulas, it says "0". What am I doing wrong?

=SUM(B47:K47)

  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 24
Default Summing a Formula

On Oct 11, 9:47*am, Debbie wrote:
I have formulas in 5 columns that give me the total hours a child is
in daycare. The formula calulates the total time according to there
sign in and out times. That works great. But when I sum those
formulas, it says "0". What am I doing wrong?

=SUM(B47:K47)


This is the formula I have that calculates the time in attendance if
this helps. Those results are what I am trying to sum.

=IF(H46="s","2:00",IF(H46="CLOSED","0:00",IF(H46=" A","2:00",TEXT(I46-
H46,"h:mm"))))
  #5   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 24
Default Summing a Formula

On Oct 11, 10:01*am, Bernd P wrote:
Hello Debbie,

B47:K47 are 10 cells, not 5. Which cells are containing your data and
how are they formatted (integer numbers, date / time format, ...)?

Can you show some sample data?

Regards,
Bernd


I have a formula in cell B47, then the B48 is blank and so on.

This is the formula in the 5 cells.

=IF(H46="s","2:00",IF(H46="CLOSED","0:00",IF(H46=" A","2:00",TEXT(I46-
H46,"h:mm"))))


  #6   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 24
Default Summing a Formula

On Oct 11, 10:07*am, Debbie wrote:
On Oct 11, 10:01*am, Bernd P wrote:

Hello Debbie,


B47:K47 are 10 cells, not 5. Which cells are containing your data and
how are they formatted (integer numbers, date / time format, ...)?


Can you show some sample data?


Regards,
Bernd


I have a formula in cell B47, then the B48 is blank and so on.

This is the formula in the 5 cells.

=IF(H46="s","2:00",IF(H46="CLOSED","0:00",IF(H46=" A","2:00",TEXT(I46-
H46,"h:mm"))))


The cells that have the formula in it are as a Text. The result that
is in the cell is 2:00 for example.
  #7   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 11,501
Default Summing a Formula

Debbie,

your trying to sum text values, try this

=IF(H46="s",TIME(2,0,0),IF(H46="CLOSED",TIME(0,0,0 ),IF(H46="A",TIME(2,0,0),I46-H46)))

Format this and the sum cell as [h]:mm

Mike

"Debbie" wrote:

On Oct 11, 9:47 am, Debbie wrote:
I have formulas in 5 columns that give me the total hours a child is
in daycare. The formula calulates the total time according to there
sign in and out times. That works great. But when I sum those
formulas, it says "0". What am I doing wrong?

=SUM(B47:K47)


This is the formula I have that calculates the time in attendance if
this helps. Those results are what I am trying to sum.

=IF(H46="s","2:00",IF(H46="CLOSED","0:00",IF(H46=" A","2:00",TEXT(I46-
H46,"h:mm"))))

  #8   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 806
Default Summing a Formula

Hello Debbie,

Use
=SUM(--B46:F46)
and format as [h]:mm

Regards,
Bernd
  #9   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 174
Default Summing a Formula

Hi Debbie,

Try with timevalue() instead of string formatted time:

"02:00" = timevalue("02:00")

I see a second issue, you try to 'sum' strings with I46-H46.

Wkr,

JP



"Debbie" wrote in message
...
On Oct 11, 9:47 am, Debbie wrote:
I have formulas in 5 columns that give me the total hours a child is
in daycare. The formula calulates the total time according to there
sign in and out times. That works great. But when I sum those
formulas, it says "0". What am I doing wrong?

=SUM(B47:K47)


This is the formula I have that calculates the time in attendance if
this helps. Those results are what I am trying to sum.

=IF(H46="s","2:00",IF(H46="CLOSED","0:00",IF(H46=" A","2:00",TEXT(I46-
H46,"h:mm"))))


  #10   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 24
Default Summing a Formula

On Oct 11, 10:20*am, Mike H wrote:
Debbie,

your trying to sum text values, try this

=IF(H46="s",TIME(2,0,0),IF(H46="CLOSED",TIME(0,0,0 ),IF(H46="A",TIME(2,0,0),*I46-H46)))

Format this and the sum cell as [h]:mm

Mike



"Debbie" wrote:
On Oct 11, 9:47 am, Debbie wrote:
I have formulas in 5 columns that give me the total hours a child is
in daycare. The formula calulates the total time according to there
sign in and out times. That works great. But when I sum those
formulas, it says "0". What am I doing wrong?


=SUM(B47:K47)


This is the formula I have that calculates the time in attendance if
this helps. Those results are what I am trying to sum.


=IF(H46="s","2:00",IF(H46="CLOSED","0:00",IF(H46=" A","2:00",TEXT(I46-
H46,"h:mm"))))- Hide quoted text -


- Show quoted text -


The sign in and out times are formated as time h:mm AM/PM
H46: 3:00 PM I46: 5:10 PM

Then the formula I have to give the difference between the 2 times to
get the total hours attended is:
=IF(H46="s","2.00",IF(H46="CLOSED","0.00",IF(H46=" A","2.00",TEXT(I46-
H46,"h:mm"))))

My answer is Total Hours: 2.10 (2 hours, 10 min)

Then my third formula must sum the total hours attended.



The formula you gave me does not work. It just shows the formula in
cell.


  #11   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 24
Default Summing a Formula

On Oct 11, 10:20*am, Mike H wrote:
Debbie,

your trying to sum text values, try this

=IF(H46="s",TIME(2,0,0),IF(H46="CLOSED",TIME(0,0,0 ),IF(H46="A",TIME(2,0,0),*I46-H46)))

Format this and the sum cell as [h]:mm

Mike



"Debbie" wrote:
On Oct 11, 9:47 am, Debbie wrote:
I have formulas in 5 columns that give me the total hours a child is
in daycare. The formula calulates the total time according to there
sign in and out times. That works great. But when I sum those
formulas, it says "0". What am I doing wrong?


=SUM(B47:K47)


This is the formula I have that calculates the time in attendance if
this helps. Those results are what I am trying to sum.


=IF(H46="s","2:00",IF(H46="CLOSED","0:00",IF(H46=" A","2:00",TEXT(I46-
H46,"h:mm"))))- Hide quoted text -


- Show quoted text -


Thank you! This worked. You guys are great!
  #12   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 24
Default Summing a Formula

On Oct 11, 10:20*am, Mike H wrote:
Debbie,

your trying to sum text values, try this

=IF(H46="s",TIME(2,0,0),IF(H46="CLOSED",TIME(0,0,0 ),IF(H46="A",TIME(2,0,0),*I46-H46)))

Format this and the sum cell as [h]:mm

Mike



"Debbie" wrote:
On Oct 11, 9:47 am, Debbie wrote:
I have formulas in 5 columns that give me the total hours a child is
in daycare. The formula calulates the total time according to there
sign in and out times. That works great. But when I sum those
formulas, it says "0". What am I doing wrong?


=SUM(B47:K47)


This is the formula I have that calculates the time in attendance if
this helps. Those results are what I am trying to sum.


=IF(H46="s","2:00",IF(H46="CLOSED","0:00",IF(H46=" A","2:00",TEXT(I46-
H46,"h:mm"))))- Hide quoted text -


- Show quoted text -


One more question. My sum column, How do i round the answer to the
nearest 1/4 hour?
  #13   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 15,768
Default Summing a Formula

=SUM(--B46:F46)

That would have to be array entered.

--
Biff
Microsoft Excel MVP


"Bernd P" wrote in message
...
Hello Debbie,

Use
=SUM(--B46:F46)
and format as [h]:mm

Regards,
Bernd



  #14   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 24
Default Summing a Formula

On Oct 11, 12:41*pm, "T. Valko" wrote:
=SUM(--B46:F46)


That would have to be array entered.

--
Biff
Microsoft Excel MVP

"Bernd P" wrote in message

...



Hello Debbie,


Use
=SUM(--B46:F46)
and format as [h]:mm


Regards,
Bernd- Hide quoted text -


- Show quoted text -


Biff, How do I enter an array? Also, how would I make this formula
round to the nearest 1/4 of an hour?
  #15   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 806
Default Summing a Formula

Hello,

Thanks, Biff, you are right.

=ROUND(SUM(--B46:F46)*24*4,0)/24/4
array-entered gives the sum rounded to a quarter of an hour.
To array-enter enter with CTRL + SHIFT + ENTER, not only ENTER. Curly
brackets will appear around your formula...

Regards,
Bernd


  #16   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 24
Default Summing a Formula

On Oct 11, 2:03*pm, Bernd P wrote:
Hello,

Thanks, Biff, you are right.

=ROUND(SUM(--B46:F46)*24*4,0)/24/4
array-entered gives the sum rounded to a quarter of an hour.
To array-enter enter with CTRL + SHIFT + ENTER, not only ENTER. Curly
brackets will appear around your formula...

Regards,
Bernd


Thank you! All formulas are working great. I love all you do for all
of us. You help to make our lives so much easier. I am learning more
and more about formulas. Soon, excel will be doing all my work. I will
only have to enter referring data. How awesome is that. Again, thank
you!
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
Summing formula Mark Excel Discussion (Misc queries) 3 October 20th 06 11:21 AM
Summing formula rhani111 Excel Discussion (Misc queries) 4 July 26th 06 01:55 PM
summing formula Ron Woolley New Users to Excel 3 January 28th 06 05:40 PM
summing formula help jerry Excel Discussion (Misc queries) 3 October 8th 05 04:22 AM
Summing Formula Steve W Excel Worksheet Functions 4 November 4th 04 12:06 PM


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

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"