Prerequisite
Please refer to Microsoft help for Syntax.
=SUMIF(range,criteria,sum range)
example
Need to add the values which are
1. less than zero
2. more than zero
3. in between 0 and 1
=SUMIF(range,criteria,sum range)
Possible Usage
SUMIF is a versatile formula and can be used in different needs.
First example is using SUMIF in one column of data.
example
-5 |
10 |
-7 |
20 |
0.5 |
30 |
20 |
0.3 |
0.5 |
0.6 |
-10 |
10 |
20 |
-10 |
Need to add the values which are
1. less than zero
2. more than zero
3. in between 0 and 1
The steps (How to do)
1. type =SUMIF(A:A,"<0",A:A) in C1
2. type =SUMIF(A:A,">0",A:A) in C2
3. Type =SUMIF(A:A,"<1",A:A)-SUMIF(A:A,"<0",A:A) or =SUMIF(A:A,"<1",A:A)-C1
Done
No comments:
Post a Comment