Forum

Notifications
Clear all

[Solved] Dynamic sum up range

8 Posts
2 Users
2 Reactions
372 Views
(@jjmadness)
Posts: 8
Active Member
Topic starter
 

Hi guys,

Could anyone help me create a formula to sum the values for a selected promotion period (from a drop-down list) based on multiple criteria — for example, Body Wash in cell A19 and the result in C19 — to get the total from 2024 C1 through 2025 C5 (inclusive), rather than just two periods.

Hope this made sense

thanks


 
Posted : 13/08/2025 3:54 am
Riny van Eekelen
(@riny)
Posts: 1317
Member Moderator
 

Best if you can upload a file with an example of your data and the result that is expected. Otherwise look into using the SUMIFS function as that's the one that allows for multiple criteria.


 
Posted : 13/08/2025 4:13 am
(@jjmadness)
Posts: 8
Active Member
Topic starter
 

Strange, I did upload an example file. but doesn’t seem to uploaded. Will try again 

 


 
Posted : 13/08/2025 4:49 am
Riny van Eekelen
(@riny)
Posts: 1317
Member Moderator
 

@jjmadness 

Oh yes! Now I see the file above your first post. Didn't notice that. Sorry.

Please find a solution in the attached file. It's a bit clunky and requires a modern Excel version that supports the LET function. Let me know if it works for you.


 
Posted : 13/08/2025 2:26 pm
(@jjmadness)
Posts: 8
Active Member
Topic starter
 

Hello there, thank you so much,

I apologize for the confusion. I should have provided a clearer example sheet, see attached above. I actually don’t need to include the sub-format in Column B; I only need to sum the total from Column A and the values in Column C. Therefore, there are two rows for body wash and two rows for deodorant in the sum range highlighted in yellow. How can I sum the values from these two rows using the LET formula? I assumed to replace sum to sumifs? 

Thanks


 
Posted : 13/08/2025 11:55 pm
Riny van Eekelen
(@riny)
Posts: 1317
Member Moderator
 

@jjmadness 

OK, then you need the FILTER function inside the LET. That allows you to 'pick-up' multiple rows. Then TAKE and DROP to narrow down the SUM range. See attached.


 
Posted : 14/08/2025 1:03 am
Jian Guan reacted
Riny van Eekelen
(@riny)
Posts: 1317
Member Moderator
 

@jjmadness 

As an alternative, I would personally favour flattening the data with Power Query and then create a summary with a simple Pivot Table where you select the periods in a slicer.

Even better if you use real month start and -end dates, rather texts like "2024 C1". Then you can use some of Excel's inbuilt time intelligence to create dynamic reports. Your choice.

 


 
Posted : 14/08/2025 1:11 am
Jian Guan reacted
(@jjmadness)
Posts: 8
Active Member
Topic starter
 

@riny Thank you so much, really appreciated.


 
Posted : 15/08/2025 1:31 am
Share: