Forum

Sum Monthly Data in...
 
Notifications
Clear all

[Solved] Sum Monthly Data into Quarters, filter Month & YTD Sum product Function

8 Posts
2 Users
1 Reactions
134 Views
(@vik)
Posts: 5
Active Member
Topic starter
 

 

image

Hi, I am trying to summarize multiple years' data into Quarter, Month & YTD, comparing Forecast.

using Sum product Filter function  

=SUM(FILTER($C5:$CB5,(TEXT($C$4:$CB$4,"yyyy"))*($C$3:$CB$3=$CG$3),0))

This topic was modified 2 weeks ago 2 times by varun aggarwal
 
Posted : 01/07/2025 12:14 pm
Riny van Eekelen
(@riny)
Posts: 1263
Member Moderator
 

@vik

Not sure without seeing what exactly is in the cells you reference but your original formula doesn't seem to make sense. Perhaps this one does what you need. 

=SUM(FILTER($C5:$CB5,YEAR($C$4:$CB$4)=$CG$3,0))

It assumes that row 4 contains real dates and CG3 a real number (i.e. not a text)

If it doesn't work, please come back here and attach you file. with some fake amounts for each of the periods.

 
Posted : 01/07/2025 1:55 pm
(@vik)
Posts: 5
Active Member
Topic starter
 
 
Posted : 01/07/2025 2:15 pm
(@vik)
Posts: 5
Active Member
Topic starter
 

attached file

 
Posted : 01/07/2025 2:16 pm
Riny van Eekelen
(@riny)
Posts: 1263
Member Moderator
 

@vik

I believe that your set-up make matters unnecessarily complicated, but that's your choice. The attached file has the formulas that calculate the sub-total how I think you need them.

Note that I removed the headers on row 4 like "Total 2025", "Total 2026" etc. as these would result in VALUE errors.

 

 
Posted : 01/07/2025 3:11 pm
(@vik)
Posts: 5
Active Member
Topic starter
 

@riny Thanks for solving. Any suggestions for a better setup to view Data Quarterly, Month, & YTD?

 
Posted : 01/07/2025 4:55 pm
Riny van Eekelen
(@riny)
Posts: 1263
Member Moderator
 

@vik Well, I would collect all data in a tabular format. For instance, a five column table with the following headers:

Project, Object, Date, Amount, Measure (Actual or Forecast)

No totals or sub-totals and let Excel do the heavy work with (Power)Pivot tables.

 
Posted : 01/07/2025 5:01 pm
(@vik)
Posts: 5
Active Member
Topic starter
 

@riny Thank you for suggestion !

 
Posted : 01/07/2025 5:03 pm
Share: