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

Last used cell?
Press Ctrl+End to move to what Excel thinks is the last used cell.

NBVC

Well-known Member
Joined
Aug 31, 2005
Messages
5,828
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.
 

Aladin Akyurek

MrExcel MVP
Joined
Feb 14, 2002
Messages
85,209
=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.
 

West Man

Well-known Member
Joined
Mar 27, 2006
Messages
1,175
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.
 

Forum statistics

Threads
1,141,670
Messages
5,707,731
Members
421,525
Latest member
carian1980

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
Top