thanksamillion101
New Member
- Joined
- Jul 8, 2020
- Messages
- 41
- Office Version
- 2010
Hello and thank you ahead of time! I am needing to sum columns according to specified header names, reason being that I cannot specify a column range because the amount of columns may change when I run a report, but header names will remain the same. I need a formula to sum the amount of Units of Product "I" sold in TX with an Id of 375 between (Id 1) 350 and (Id 2) 400. The answer is 4.0 I have tried several formulas and now I am not sure which formula to use, sumif and index and match. Please help!
INDEX(A2:G7,MATCH("I",INDEX(A2:G7,MATCH("Product",A1:G1,0),),0))
INDEX(A2:G7,MATCH("I",INDEX(A2:G7,MATCH("Product",A1:G1,0),),0))
A | B | C | D | E | F | G | |
1 | Date | Id 1 | Id 2 | Name | Product | Units | State |
2 | 1/1/2022 | 100 | 200 | Sam | AG | 2.5 | KS |
3 | 3/4/2021 | 600 | 700 | Tim | EZ | 1.3 | OK |
4 | 5/6/2021 | 350 | 400 | John | I | 4 | TX |
5 | 1/7/2021 | 500 | 700 | Sam | AG | 7.5 | KS |
6 | 3/4/2022 | 250 | 400 | Tim | EZ | 6 | OK |
7 | 5/1/2022 | 600 | 705 | John | I | 8 | TX |