Sean15
Well-known Member
- Joined
- Jun 25, 2005
- Messages
- 719
- Office Version
- 2010
- Platform
- Windows
SUMIF formula.xlsx | |||||||
---|---|---|---|---|---|---|---|
A | B | C | D | E | |||
1 | ID NO | Age | Amount | ||||
2 | 752412 | >120 | 1200 | ||||
3 | 752412 | 65 | 650 | ||||
4 | 12542 | 65 | 425 | ||||
5 | 12542 | 125 | 752412 | #VALUE! | |||
6 | Expected result | 1,850.00 | |||||
Sheet1 |
Cell Formulas | ||
---|---|---|
Range | Formula | |
E5 | E5 | =SUMPRODUCT(--($A$2:$A$5=D5),--(--SUBSTITUTE($B$2:$B$5,">","")>=60),$C$2:$C$5) |
E6 | E6 | =1200+650 |
Here is the new data layout.
There are blank cells in column B so formula in E5 (adapted from formula in post #8) is returning #VALUE!
Sometimes I am able to solve the little surprises but this time I am stumped.
Again, my apologies.
SUMIF formula.xlsx
A B C D E 1 ID NO Age Amount 2 752412 >120 1200 3 752412 65 650 4 12542 65 425 5 12542 125 752412 #VALUE! 6 Expected result 1,850.00 Sheet1
Cell Formulas Range Formula E5 E5 =SUMPRODUCT(--($A$2:$A$5=D5),--(--SUBSTITUTE($B$2:$B$5,">","")>=60),$C$2:$C$5) E6 E6 =1200+650