I am trying to do a comparison of current year to prior YTD financial information.
I want to be able to say I want the sum of all of the 4100.50 code in column A for the first 5 periods. So far I have this, but I would like to add an index in there so that I can just change the number of periods and not have to change the columns each month.
SUMPRODUCT((A:A=4100.50)*(C:G))
The 4100.50 would actually be coded to another tab in my workbook. I am trying to add an index for the C:G, but I keep getting an error.
A | B | C | D | E | F | G |
Jan-20 | Feb-20 | Mar-20 | Apr-20 | May-20 | ||
4100.50 | Miscellaneous | 20,840 | 16,691 | 20,087 | 20,722 | 50,600 |
4100.51 | Parking Garages | - | - | - | - | - |
4100.51 | Professional Buildings | - | - | - | - | - |
4100.65 | Residential | 1,350 | 1,215 | 2,290 | 1,640 | 1,840 |
I want to be able to say I want the sum of all of the 4100.50 code in column A for the first 5 periods. So far I have this, but I would like to add an index in there so that I can just change the number of periods and not have to change the columns each month.
SUMPRODUCT((A:A=4100.50)*(C:G))
The 4100.50 would actually be coded to another tab in my workbook. I am trying to add an index for the C:G, but I keep getting an error.