MurrayBarn
New Member
- Joined
- May 27, 2012
- Messages
- 32
- Office Version
- 365
- Platform
- Windows
Hi There
I have tried SUMIFS, using AND and SUMIF, SUMPRODUCT etc but can't find a tidy way to sum from 1 to 12 columns based on two criteria. Essentially what I have is a 12 months of Profit and Loss data in columns D:O. I then have the Account Code (criteria 1) in Column A and Department (criteria 2) in column B.
I have a Control sheet that I change the number from 1 to 12 on and I would like a formula that will sum columns D to whatever the control number is, based on criteria 1 and 2. So if I type in 3, it must sum D:F when it finds criteria 1 and criteria 2
I guess I could also use a multiple lookup as there is only one number per month, per account code and per department, but I am not sure how to do that.
Does anybody have a tidy solution?
I have tried SUMIFS, using AND and SUMIF, SUMPRODUCT etc but can't find a tidy way to sum from 1 to 12 columns based on two criteria. Essentially what I have is a 12 months of Profit and Loss data in columns D:O. I then have the Account Code (criteria 1) in Column A and Department (criteria 2) in column B.
I have a Control sheet that I change the number from 1 to 12 on and I would like a formula that will sum columns D to whatever the control number is, based on criteria 1 and 2. So if I type in 3, it must sum D:F when it finds criteria 1 and criteria 2
I guess I could also use a multiple lookup as there is only one number per month, per account code and per department, but I am not sure how to do that.
Does anybody have a tidy solution?