ChrisMcIntyre
New Member
- Joined
- Jan 6, 2022
- Messages
- 37
- Office Version
- 365
- 2016
- Platform
- Windows
Hello!
I am trying to come up with a method of counting the number of columns in a changeable range.
I have three years on a sheet. Each year has 52 columns (52 weeks).
In the last row I have a summary of the total numbers in each column.
What I need to know is how many weeks, from the first column with data in to the last column of data, including any unused weeks, there are in total.
So as an example, if there was a value >0 in all but 10 of the weeks for that year, the total number of weeks with something in is 42, but the range I am after is actually 48. That's 48 weeks from the first column with data to the last column with data.
I am trying to come up with a method of counting the number of columns in a changeable range.
I have three years on a sheet. Each year has 52 columns (52 weeks).
In the last row I have a summary of the total numbers in each column.
What I need to know is how many weeks, from the first column with data in to the last column of data, including any unused weeks, there are in total.
So as an example, if there was a value >0 in all but 10 of the weeks for that year, the total number of weeks with something in is 42, but the range I am after is actually 48. That's 48 weeks from the first column with data to the last column with data.