Forum

Notifications
Clear all

Aggregate Hours Per Financial Year

5 Posts
2 Users
0 Reactions
119 Views
(@blackvan)
Posts: 30
Trusted Member
Topic starter
 

I have 5 columns A to E.

Col A: Date - the data is sorted on this column

Col B: the financial year for the date in Col A

Col C: Elapsed time (hours and minutes, decimal)

Col D: a running aggregate for the whole of the data in Col A:

Here's what I need: a running aggregate in Col E, but one that resets at the start of a new financial year. I need a formula in Cell E2 that can be copied down. 🙂

See the attached example sheet - I have used different colours just for clarity.

 
Posted : 27/06/2024 12:28 am
Riny van Eekelen
(@riny)
Posts: 1186
Member Moderator
 

In E2, enter:

=SUMIF($B$2:B2,B2,$C$2:C2)

and copy down.

 
Posted : 28/06/2024 12:23 am
(@blackvan)
Posts: 30
Trusted Member
Topic starter
 

Thanks Riny, I thought it would be a SUMIF but couldn't get it to work 🙂

The next step is to draw out the totals per FY, together with the FY value (cells H18:I20 in the attached). My guess is some sort of INDEX/MATCH but can't get it to work 🙁

 
Posted : 29/06/2024 4:15 am
Riny van Eekelen
(@riny)
Posts: 1186
Member Moderator
 

Consider a pivot table as demonstrated in the attached file. Or, if you are using a moder Excel version you could use UNIQUE and FILTER. 

 
Posted : 29/06/2024 5:29 am
(@blackvan)
Posts: 30
Trusted Member
Topic starter
 

Thanks Riny, I'm using Excel 2010 so the pivot table will have to do. Thanks!

 
Posted : 30/06/2024 2:24 am
Share: