Summarise top n hours within a period

ausswe

Board Regular
Joined
Feb 19, 2013
Messages
56
Office Version
  1. 365
Platform
  1. Windows
  2. MacOS
Hi,
I have used the following formula to summarise the top 100 of total number of hours recorded within a period:
Excel Formula:
SUM(LARGE(FILTER(Data[HOURS];Data[PERIOD]=[@PERIOD]);SEQUENCE(100)))

In a seperate column I have a COST associated with said hours and I'm trying to figure out how I can get the total COST for the top 100 HOURS recorded in a PERIOD.

I have tried this formula but I get an #N/A error:
Excel Formula:
=SUM(FILTER(Data[COST]; (Data[PERIOD] = [@PERIOD]) * (Data[HOURS] >= LARGE(FILTER(Data[HOURS]; Data[PERIOD] = [@PERIOD]); SEQUENCE(100)))))

Can anyone shed any light on this?

Thanks in advance!
 
Maybe
Excel Formula:
=SUM(FILTER(Data[COST]; (Data[PERIOD] = [@PERIOD]) * (Data[HOURS] >= LARGE(FILTER(Data[HOURS]; Data[PERIOD] = [@PERIOD]); 100))))
 
Upvote 0
Solution
You're welcome & thanks for the feedback.
 
Upvote 0

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top