magnethero
New Member
- Joined
- Apr 25, 2018
- Messages
- 6
Hello all,
First time posting in an Excel forum and I have been racking my brain for the last two days trying to get this to work. My goal is that I'm trying to create a summary page for all departments of a large series of information for years back. To start I want to count the number of cells between each year (always in the same column) but because the information is always added to the top, the data shows something like this:
[TABLE="width: 750"]
<tbody>[TR]
[TD]Dept #[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD][/TD]
[TD]2018[/TD]
[TD]Dept Name[/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[TD]Staff Type[/TD]
[TD]Staff Type[/TD]
[TD]Staff Type[/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[TD]Sum Value[/TD]
[TD]Sum Value[/TD]
[TD]Sum Value[/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]Changes[/TD]
[TD]Merged[/TD]
[TD]Merged[/TD]
[TD]Merged[/TD]
[TD]Value Change[/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD][/TD]
[TD]2017[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
</tbody>[/TABLE]
The cells between the year values are a mix of filled, blank, and merged cells and the years go in reverse order. I'm not sure how to tackle this. Some ideas were to use a =countifs() with a > and < range of the years but this failed because of the reverse order of the years.
The largest hurdle is I need it to count at the next change in year. If it counted all the values between 2018 and say 2015, the summary wouldn't work properly as it would show amounts only valid for the whole change in company. If anyone has any suggestions, please let me know!
Thank you.
First time posting in an Excel forum and I have been racking my brain for the last two days trying to get this to work. My goal is that I'm trying to create a summary page for all departments of a large series of information for years back. To start I want to count the number of cells between each year (always in the same column) but because the information is always added to the top, the data shows something like this:
[TABLE="width: 750"]
<tbody>[TR]
[TD]Dept #[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD][/TD]
[TD]2018[/TD]
[TD]Dept Name[/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[TD]Staff Type[/TD]
[TD]Staff Type[/TD]
[TD]Staff Type[/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[TD]Sum Value[/TD]
[TD]Sum Value[/TD]
[TD]Sum Value[/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]Changes[/TD]
[TD]Merged[/TD]
[TD]Merged[/TD]
[TD]Merged[/TD]
[TD]Value Change[/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD][/TD]
[TD]2017[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
</tbody>[/TABLE]
The cells between the year values are a mix of filled, blank, and merged cells and the years go in reverse order. I'm not sure how to tackle this. Some ideas were to use a =countifs() with a > and < range of the years but this failed because of the reverse order of the years.
The largest hurdle is I need it to count at the next change in year. If it counted all the values between 2018 and say 2015, the summary wouldn't work properly as it would show amounts only valid for the whole change in company. If anyone has any suggestions, please let me know!
Thank you.