Quantcast
Channel: Active questions tagged worksheet-function - Super User
Viewing all articles
Browse latest Browse all 987

Excel: How to automatically update sum formula when a column is added while keeping the same range

$
0
0

I am currently having a problem in Excel.I am trying to find a sum of yearly cost, and this excel sheet will be updated as the month goes on.The problem is, I could easily sum the yearly cost using the sum function, but I would like it to happen that when a new column (month) and cost is updated in that column, i still want to calculate the yearly cost.

So for example, a yearly cost would right now would be the sum from June 2022 to July 2021. and next month, it would be June 2022 to August 2022. I have seen the sum(indirect) function, but this doesn't seem to include the fact that I have to remove the begininning column from my formula when a new column is added.

Help would be greatly appreciated, thank you.


Viewing all articles
Browse latest Browse all 987

Trending Articles