Recalculating Percentage based on a variable in excel with formula

jhendo14

New Member
Joined
Jun 19, 2020
Messages
12
Office Version
  1. 2011
Platform
  1. MacOS
I want to know if it is possible to calculate the Estimated Special Events on the far right column using the variables on the left. Essentially what is needed is to use the start and stop time to sum the "% of Total" and divide each hour inside that range by the Sum of % of Total in the range. In this example the total would be 34.48%. So the new adjusted % within the Day Hour range for 8am would be 3.6/34.48 = 10.45%. Then taking the Total Special Events and multiplying it by the % during hours (in this case 10%) to get the number to multiply times 10.45%. This means for 8am the calculation would now be 150*.10*.1045 = 1.568
VariablesHour of DayNumber of Events% of TotalAdjusted % within rangeEstimated Special Events
Day Start Hour
8​
0​
86​
7.04%​
10.75%​
14.5125​
Day Stop Hour
17​
1​
10​
0.82%​
1.25%​
1.6875​
% of special events after business hours
90%​
2​
63​
5.16%​
7.88%​
10.63125​
Total Special Events a Day
150​
3​
50​
4.10%​
6.25%​
8.4375​
4​
5​
0.41%​
0.63%​
0.84375​
5​
59​
4.83%​
7.38%​
9.95625​
6​
80​
6.55%​
10.00%​
13.5​
7​
43​
3.52%​
5.38%​
7.25625​
8​
44​
3.60%​
10.45%​
1.567695962​
9​
18​
1.47%​
4.28%​
0.641330166​
10​
98​
8.03%​
23.28%​
3.491686461​
11​
76​
6.22%​
18.05%​
2.70783848​
12​
75​
6.14%​
17.81%​
2.672209026​
13​
21​
1.72%​
4.99%​
0.748218527​
14​
58​
4.75%​
13.78%​
2.066508314​
15​
22​
1.80%​
5.23%​
0.783847981​
16​
9​
0.74%​
2.14%​
0.320665083​
17​
51​
4.18%​
6.38%​
8.60625​
18​
74​
6.06%​
9.25%​
12.4875​
19​
87​
7.13%​
10.88%​
14.68125​
20​
91​
7.45%​
11.38%​
15.35625​
21​
32​
2.62%​
4.00%​
5.4​
22​
59​
4.83%​
7.38%​
9.95625​
23​
10​
0.82%​
1.25%​
1.6875​
 

Excel Facts

Create a chart in one keystroke
Select the data and press Alt+F1 to insert a default chart. You can change the default chart to any chart type
Hi,

Please check if the below solution works for you?



Book4
ABCDEFGHI
1VariablesHour of DayBuiness HoursNumber of Events% of TotalAdjusted % within rangeEstimated Special Events
2
3Day Start Hour80FALSE867.04%10.75%14.51
4Day Stop Hour171FALSE100.82%1.25%1.69
5% of special events after business hours90%2FALSE635.16%7.88%10.63
6Total Special Events a Day1503FALSE504.10%6.25%8.44
74FALSE50.41%0.63%0.84
8Total Events12215FALSE594.83%7.38%9.96
9Special Events4216FALSE806.55%10.00%13.50
10Non Special Events8007FALSE433.52%5.38%7.26
118TRUE443.60%10.45%1.57
129TRUE181.47%4.28%0.64
1310TRUE988.03%23.28%3.49
1411TRUE766.22%18.05%2.71
1512TRUE756.14%17.81%2.67
1613TRUE211.72%4.99%0.75
1714TRUE584.75%13.78%2.07
1815TRUE221.80%5.23%0.78
1916TRUE90.74%2.14%0.32
2017FALSE514.18%6.38%8.61
2118FALSE746.06%9.25%12.49
2219FALSE877.13%10.88%14.68
2320FALSE917.45%11.38%15.36
2421FALSE322.62%4.00%5.40
2522FALSE594.83%7.38%9.96
2623FALSE100.82%1.25%1.69
Sheet2 (2)
Cell Formulas
RangeFormula
G3:G26G3=F3/$B$8
H3:H26H3=F3/(IF(E3,$B$9,$B$10))
I3:I26I3=(($B$6)*H3)*IF(E3,100%-$B$5,$B$5)
B8B8=SUM(F3:F26)
B9B9=SUMIF($E$3:$E$26,TRUE,$F$3:$F$26)
B10B10=+B8-B9
E3:E26E3=AND(D3>=$B$3,D3<$B$4)
 
Upvote 0
the number of special events is 150 in this set so B9 should be 150 and that may work
 
Upvote 0

Forum statistics

Threads
1,224,823
Messages
6,181,183
Members
453,020
Latest member
Mohamed Magdi Tawfiq Emam

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