joe-carter
New Member
- Joined
- Jul 2, 2004
- Messages
- 34
I'm trying to sumif for a range. Pretend below is an exceil file with A1=1, and D4=A. I wrote "=SUMIF(D1:D4,"A",A1:C4)". The answer would be "7", or 1+2+2 in the first "A" row plus 1+0+1 in the second "A" row. It worked for a while, but now it won't. The problem is A1:C4, it seems the SUMIF command wants this to be A1:A4. I could make a big sumif command "=SUMIF(D1:D4,"A",A1:A4)+SUMIF(D1:D4,"A",B1:B4)+SUMIF(D1:D4,"A",C1:C4)", but would rather be clever.
1, 2, 2, A
2, 2, 1, B
1, 1, 1, C
1, 0, 1, A
Thanks,
Joe
1, 2, 2, A
2, 2, 1, B
1, 1, 1, C
1, 0, 1, A
Thanks,
Joe