ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Worksheet Functions (https://www.excelbanter.com/excel-worksheet-functions/)
-   -   sum of the result from the formula? (https://www.excelbanter.com/excel-worksheet-functions/9426-sum-result-formula.html)

Bel

sum of the result from the formula?
 
Dear Friedns,
In sheet 1, the format like this:
A B
1. 12:00 pm 8:00 pm
2.12:30 pm 8:00 pm
In sheet 2, I wrote the formula: =text(B-A, "h:mm") get the hours: 8.
My question is: when I write the formula for SUM( A1:A2). It comes out zero.
Also, some times I put off when employee does not come work. In sheet, it
will come"#VALUE!". If I wanna sum function, how I can skip these cells
with"#VALUE!"? Thank you very much in advance.



Peo Sjoblom

It's because you are using text, just use

=B-A

then

=SUM(Range)

and format as [hh]:mm



Regards,

Peo Sjoblom




"Bel" wrote:

Dear Friedns,
In sheet 1, the format like this:
A B
1. 12:00 pm 8:00 pm
2.12:30 pm 8:00 pm
In sheet 2, I wrote the formula: =text(B-A, "h:mm") get the hours: 8.
My question is: when I write the formula for SUM( A1:A2). It comes out zero.
Also, some times I put off when employee does not come work. In sheet, it
will come"#VALUE!". If I wanna sum function, how I can skip these cells
with"#VALUE!"? Thank you very much in advance.




All times are GMT +1. The time now is 02:12 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com