danhendo888
Board Regular
- Joined
- Jul 15, 2019
- Messages
- 167
- Office Version
- 365
- Platform
- Windows
I'm wanting to Sum the Amount column using four criteria (Blue cells) in Excel (as opposed to pivot tables or PQ)
For the exclude criteria, I want to exclude Oil, Gear from column D (red cells) so that I'm only adding up the Green cells (cells colored just for visual reference)
Is it possible to use an array (like the helper column) as the exclude criteria?
For the exclude criteria, I want to exclude Oil, Gear from column D (red cells) so that I'm only adding up the Green cells (cells colored just for visual reference)
Is it possible to use an array (like the helper column) as the exclude criteria?
Book1 | |||||||||
---|---|---|---|---|---|---|---|---|---|
A | B | C | D | E | F | G | |||
1 | Customer | Cost_Center | Model | Part | Month | Revenue/Expense | Amount | ||
2 | Ford | Raptor | Exhaust | 1 | R | -572.2 | |||
3 | Ford | Raptor | Windows | 1 | R | 11.55 | |||
4 | Ford | Raptor | Tyre | 1 | R | -4259.42 | |||
5 | Ford | Raptor | Oil | 1 | R | 78.65 | |||
6 | Ford | Raptor | Gear | 1 | R | 471.82 | |||
7 | |||||||||
8 | |||||||||
9 | |||||||||
10 | Sum: excluding Oil, Gear | -4820.07 | |||||||
11 | Helper: | ||||||||
12 | Oil | ||||||||
13 | Gear | ||||||||
Sheet1 |
Cell Formulas | ||
---|---|---|
Range | Formula | |
D10 | D10 | =SUMIFS(G2:G6,A2:A6,"Ford",C2:C6,"Raptor",F2:F6,"R",D2:D6,"<>"&F12,D2:D6,"<>"&F13) |