A family of Microsoft spreadsheet software with tools for analyzing, charting, and communicating data.
Thanks for clearing that up, Waseem. So if I understand you correctly, you have only one result column, and each month you want the formula to switch automatically to the next month’s numbers without changing the formula manually.
In that case, the easiest way is to tie the formula to a cell where you enter the month number. For example, if you put the month number in cell L1 (1 for Month-1, 2 for Month-2, etc.), you can use:
=SUMIFS(INDEX($D$6:$J$16,0,$L$1),$C$6:$C$16,L6)
$D$6:$J$16 is the full block of all months.
$L$1 tells Excel which month column to use.
$C$6:$C$16,L6 still matches the code.
Now each time you change the number in L1, your result column updates to show that month’s sums.
Do you want the month to change automatically with the system date, or are you fine updating the month number manually in a cell?