Year to Date Totals - Automatic formula adjusting

rgillson3

Board Regular
Joined
Oct 3, 2013
Messages
132
Office Version
  1. 365
Platform
  1. Windows
I've got a spreadsheet containing customer counts for each period of various years.

As part of our periodic review process, we look at the year to date counts for a given period, compared to the same time frame for previous years.

Currently, I adjust nine rows to include only the desired periods. This is done for six different revenue centers.

Is there a way to have the spreadsheet auto-adjust the formula for previous years, based on whether or not there is data for the current year.

Let's say periods are in columns A thru M (13 periods).

Period 10 is in column J, and the current year is in row 16.

I'd like row 15 to automatically sum columns A thru J.

Then, when period 11 in column K is populated, I'd want the previous years to adjust to also include column K, and so on.
 

Excel Facts

Can Excel fill bagel flavors?
You can teach Excel a new custom list. Type the list in cells, File, Options, Advanced, Edit Custom Lists, Import, OK
Hi,

Two options, try which one works best for you.


Book1
ABCDEFGHIJKLMNO
12
13
14165
1510111213141516171819202122165
161010101010101010101010
17
Sheet1
Cell Formulas
RangeFormula
O14=SUM(OFFSET(A15,0,0,1,13-COUNTBLANK(A16:M16)))
O15=SUMIFS(A15:M15,A16:M16,"<>"&"")
 
Upvote 0
Thank you.

At a glance, I think either of those would work.

However, initially I forgot that I "complicated" my spreadsheet. Each of our periods of four weeks in length, and I've added columns for each of the weeks.

Sooooo, I'm going to have to play with the formulas to see if I can get one of them to work for me.

Thank you again.
 
Upvote 0
Update:

I was able to adjust the SUMIFS formula, to include my "helper" columns, and it seems to work well.
 
Upvote 0

Forum statistics

Threads
1,223,884
Messages
6,175,173
Members
452,615
Latest member
bogeys2birdies

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top