LearnMeExcel
Well-known Member
- Joined
- Aug 11, 2009
- Messages
- 746
- Office Version
- 365
- 2021
- Platform
- Windows
Hi Gurus
Excel 2010
Entered with Ctrl+Shift+Enter. If entered correctly, Excel will surround with curly braces {}. Note: Do not try and enter these manually yourself
this is my data
in CEll F6 i used this formula
=SUMIFS(C2:C15,B2:B15,E2,B2:B15,E3,A2:A15,">="&F2,A2:A15,"<="&G2)
the result zero
cuz i check the N1 and N2 in Sames Formula
but it works when i have two Criteria for date
here is the formula in F5
=SUMIFS(C2:C15,B2:B15,E2,A2:A15,">="&F2,A2:A15,"<="&G2)
why it doesn't work ?
Excel Workbook | |||||||||
---|---|---|---|---|---|---|---|---|---|
A | B | C | D | E | F | G | |||
1 | Date | Item | Value | Item | From | To | |||
2 | 01/01/2011 | N 3 | 42 | N 1 | 01/02/2011 | 30/04/2011 | |||
3 | 11/01/2011 | N 1 | 63 | N 2 | |||||
4 | 21/01/2011 | N 3 | 11 | ||||||
5 | 31/01/2011 | N 4 | 61 | For One Criteria in Field Item | 59 | ||||
6 | 10/02/2011 | N 3 | 63 | For Two Criteria in Field Item | 0 | 269 | |||
7 | 20/02/2011 | N 3 | 71 | 269 | |||||
8 | 02/03/2011 | N 1 | 49 | ||||||
9 | 12/03/2011 | N 2 | 92 | ||||||
10 | 22/03/2011 | N 1 | 10 | ||||||
11 | 01/04/2011 | N 2 | 81 | ||||||
12 | 11/04/2011 | N 4 | 57 | ||||||
13 | 21/04/2011 | N 2 | 37 | ||||||
14 | 01/05/2011 | N 4 | 100 | ||||||
15 | 11/05/2011 | N 3 | 51 | ||||||
Sheet3 |
Cell Formulas | ||
---|---|---|
Range | Formula | |
F5 | =SUMIFS(C2:C15,B2:B15,E2,A2:A15,">="&F2,A2:A15,"<="&G2) | |
F6 | =SUMIFS(C2:C15,B2:B15,E2,B2:B15,E3,A2:A15,">="&F2,A2:A15,"<="&G2) | |
F7 | =SUMPRODUCT(--(ISNUMBER(MATCH(B2:B15,E2:E3,0))),--(A2:A15>=F2),--(A2:A15<=G2),C2:C15) |
#VALUE!
this is my data
in CEll F6 i used this formula
=SUMIFS(C2:C15,B2:B15,E2,B2:B15,E3,A2:A15,">="&F2,A2:A15,"<="&G2)
the result zero
cuz i check the N1 and N2 in Sames Formula
but it works when i have two Criteria for date
here is the formula in F5
=SUMIFS(C2:C15,B2:B15,E2,A2:A15,">="&F2,A2:A15,"<="&G2)
why it doesn't work ?