ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Worksheet Functions (https://www.excelbanter.com/excel-worksheet-functions/)
-   -   formulas (https://www.excelbanter.com/excel-worksheet-functions/31372-formulas.html)

AnisaF

formulas
 
Dear L&G,

Need your help.
I have a work Sheet as follows

A B C D E F
G
1 Hours Emp No Day 1 Day 2 Day 3 Total Total of minus
Hours
2 10 123 -2 2 -2 8

Now, To get the total of F2, i have used
=SUM(C4:E4)+(+A4)

If I want to count only the minus hours under "Total minus hours" What is
the formula?

Thanking you in advance,
--
Anisa

Aladin Akyurek

AnisaF wrote:
Dear L&G,

Need your help.
I have a work Sheet as follows

A B C D E F
G
1 Hours Emp No Day 1 Day 2 Day 3 Total Total of minus
Hours
2 10 123 -2 2 -2 8

Now, To get the total of F2, i have used
=SUM(C4:E4)+(+A4)

If I want to count only the minus hours under "Total minus hours" What is
the formula?

Thanking you in advance,


=SUMIF(C4:E4,"<0")

--

[1] The SumProduct function should implicitly coerce the truth values to
their Excel numeric equivalents.
[2] The lookup functions should have an optional argument for the return
value, defaulting to #N/A in its absence.

AnisaF

Thank's Aladin...Your formula worked...
--
Anisa


"Aladin Akyurek" wrote:

AnisaF wrote:
Dear L&G,

Need your help.
I have a work Sheet as follows

A B C D E F
G
1 Hours Emp No Day 1 Day 2 Day 3 Total Total of minus
Hours
2 10 123 -2 2 -2 8

Now, To get the total of F2, i have used
=SUM(C4:E4)+(+A4)

If I want to count only the minus hours under "Total minus hours" What is
the formula?

Thanking you in advance,


=SUMIF(C4:E4,"<0")

--

[1] The SumProduct function should implicitly coerce the truth values to
their Excel numeric equivalents.
[2] The lookup functions should have an optional argument for the return
value, defaulting to #N/A in its absence.



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

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