Day when 50% of total was reached

West Man

Well-known Member
Joined
Mar 27, 2006
Messages
1,175
In A6 through A87 I have days consecutively numbered 1 throufh 82. In B6:B87 I have a count of the responses for each day. I need a formula to give me the day number on which 50% of the total response (sum of daily counts) occurred. It seems like a lookup for = or > half the total response in an array of the "running total" by day, but I just can't get a grasp on it.

Any help will be appreciated.
 

Excel Facts

Quick Sum
Select a range of cells. The total appears in bottom right of Excel screen. Right-click total to add Max, Min, Count, Average.
You can add a helper column with formula =SUM($B$6:B6) copied down. This shows your cumulative total.

Then to get day number use: =INDEX(A6:A87,MATCH(SUM(B6:B87)/2,C6:C87)+1) where C6:C87 is the helper column range just added.
 
Upvote 0
=INDEX(A6:A87,MATCH(TRUE,SUBTOTAL(9,OFFSET(B6,0,0,ROW(B6:B87)-ROW(B6)+1))/SUM(B6:B87)>=0.5,0))

which you need to confirm with control+shift+enter, not just with enter.
 
Upvote 0
Thank you both. I will go with Aladin's solution as a helper column is not desired.

Some "formula auditing | evaluate formula" will help me understand the formula.

Again thanks to each of you.
 
Upvote 0

Forum statistics

Threads
1,214,614
Messages
6,120,533
Members
448,969
Latest member
mirek8991

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