Marklarbear
Board Regular
- Joined
- Nov 6, 2003
- Messages
- 119
- Office Version
- 365
- Platform
- Windows
Hi Brains Trust
What I'm looking to do is reduce the size (and the potential for cell reference error) of the weighted AHT formula that we currently use. The sample below covers 1 month of data - our actual data table covers a full year (01/01/2021 - 31/12/2021).
What we need is a weighted AHT value by day of the week within the date range of the table. Cells in column K does this task, however this formula gets rather large when looking over a 365 day range - is there a way to get the same answers in column K with a more concise formula???
The above is a sample of the data - our 'live' work book looks like this (using Mondays as an example):
As you can appreciate - a formula this size is open to human error when referencing that many cells.....
Any assistance would be greatly appreciated
What I'm looking to do is reduce the size (and the potential for cell reference error) of the weighted AHT formula that we currently use. The sample below covers 1 month of data - our actual data table covers a full year (01/01/2021 - 31/12/2021).
What we need is a weighted AHT value by day of the week within the date range of the table. Cells in column K does this task, however this formula gets rather large when looking over a 365 day range - is there a way to get the same answers in column K with a more concise formula???
Book1 | ||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|
B | C | D | E | F | G | H | I | J | K | |||
2 | Date | DOW | Vol Act | Vol Fct | AHT Act | AHT Fct | ||||||
3 | 01/01/21 | Fri | 0 | 0 | ||||||||
4 | 02/01/21 | Sat | 177 | 525 | ||||||||
5 | 03/01/21 | Sun | 87 | 610 | Day | Weighted AHT | ||||||
6 | 04/01/21 | Mon | 606 | 711 | Mon | 733 | ||||||
7 | 05/01/21 | Tue | 585 | 738 | Tue | 679 | ||||||
8 | 06/01/21 | Wed | 535 | 726 | Wed | 717 | ||||||
9 | 07/01/21 | Thu | 482 | 731 | Thu | 690 | ||||||
10 | 08/01/21 | Fri | 457 | 637 | Fri | 692 | ||||||
11 | 09/01/21 | Sat | 181 | 613 | Sat | 627 | ||||||
12 | 10/01/21 | Sun | 92 | 736 | Sun | 698 | ||||||
13 | 11/01/21 | Mon | 556 | 714 | ||||||||
14 | 12/01/21 | Tue | 533 | 645 | ||||||||
15 | 13/01/21 | Wed | 488 | 678 | ||||||||
16 | 14/01/21 | Thu | 532 | 658 | ||||||||
17 | 15/01/21 | Fri | 474 | 661 | ||||||||
18 | 16/01/21 | Sat | 153 | 632 | ||||||||
19 | 17/01/21 | Sun | 77 | 629 | ||||||||
20 | 18/01/21 | Mon | 561 | 726 | ||||||||
21 | 19/01/21 | Tue | 504 | 648 | ||||||||
22 | 20/01/21 | Wed | 536 | 693 | ||||||||
23 | 21/01/21 | Thu | 565 | 657 | ||||||||
24 | 22/01/21 | Fri | 613 | 720 | ||||||||
25 | 23/01/21 | Sat | 217 | 635 | ||||||||
26 | 24/01/21 | Sun | 99 | 647 | ||||||||
27 | 25/01/21 | Mon | 650 | 775 | ||||||||
28 | 26/01/21 | Tue | 0 | 0 | ||||||||
29 | 27/01/21 | Wed | 618 | 761 | ||||||||
30 | 28/01/21 | Thu | 580 | 716 | ||||||||
31 | 29/01/21 | Fri | 566 | 731 | ||||||||
32 | 30/01/21 | Sat | 171 | 733 | ||||||||
33 | 31/01/21 | Sun | 105 | 836 | ||||||||
Sheet1 |
Cell Formulas | ||
---|---|---|
Range | Formula | |
K6:K9 | K6 | =SUMPRODUCT(D6*F6+D13*F13+D20*F20+D27*F27)/SUM(D6+D13+D20+D27) |
K10:K12 | K10 | =SUMPRODUCT(D3*F3+D10*F10+D17*F17+D24*F24+D31*F31)/SUM(D3+D10+D17+D24+D31) |
The above is a sample of the data - our 'live' work book looks like this (using Mondays as an example):
Live Data Set.xlsx | |||
---|---|---|---|
H | |||
26 | 716 | ||
Summary |
Cell Formulas | ||
---|---|---|
Range | Formula | |
H26 | H26 | =IFERROR(SUMPRODUCT('Data Set'!$D18*'Data Set'!$F18+'Data Set'!$D25*'Data Set'!$F25+'Data Set'!$D32*'Data Set'!$F32+'Data Set'!$D39*'Data Set'!$F39+'Data Set'!$D46*'Data Set'!$F46+'Data Set'!$D53*'Data Set'!$F53+'Data Set'!$D60*'Data Set'!$F60+'Data Set'!$D67*'Data Set'!$F67+'Data Set'!$D74*'Data Set'!$F74+'Data Set'!$D81*'Data Set'!$F81+'Data Set'!$D88*'Data Set'!$F88+'Data Set'!$D95*'Data Set'!$F95+'Data Set'!$D102*'Data Set'!$F102+'Data Set'!$D109*'Data Set'!$F109+'Data Set'!$D116*'Data Set'!$F116+'Data Set'!$D123*'Data Set'!$F123+'Data Set'!$D130*'Data Set'!$F130+'Data Set'!$D137*'Data Set'!$F137+'Data Set'!$D144*'Data Set'!$F144+'Data Set'!$D151*'Data Set'!$F151+'Data Set'!$D158*'Data Set'!$F158+'Data Set'!$D165*'Data Set'!$F165+'Data Set'!$D172*'Data Set'!$F172+'Data Set'!$D179*'Data Set'!$F179+'Data Set'!$D186*'Data Set'!$F186+'Data Set'!$D193*'Data Set'!$F193+'Data Set'!$D200*'Data Set'!$F200+'Data Set'!$D207*'Data Set'!$F207+'Data Set'!$D214*'Data Set'!$F214+'Data Set'!$D221*'Data Set'!$F221+'Data Set'!$D228*'Data Set'!$F228+'Data Set'!$D235*'Data Set'!$F235+'Data Set'!$D242*'Data Set'!$F242+'Data Set'!$D249*'Data Set'!$F249+'Data Set'!$D256*'Data Set'!$F256+'Data Set'!$D263*'Data Set'!$F263+'Data Set'!$D270*'Data Set'!$F270+'Data Set'!$D277*'Data Set'!$F277+'Data Set'!$D284*'Data Set'!$F284+'Data Set'!$D291*'Data Set'!$F291+'Data Set'!$D298*'Data Set'!$F298+'Data Set'!$D305*'Data Set'!$F305+'Data Set'!$D312*'Data Set'!$F312+'Data Set'!$D319*'Data Set'!$F319+'Data Set'!$D326*'Data Set'!$F326+'Data Set'!$D333*'Data Set'!$F333+'Data Set'!$D340*'Data Set'!$F340+'Data Set'!$D347*'Data Set'!$F347+'Data Set'!$D354*'Data Set'!$F354+'Data Set'!$D361*'Data Set'!$F361+'Data Set'!$D368*'Data Set'!$F368+'Data Set'!$D375*'Data Set'!$F375+'Data Set'!$D382*'Data Set'!$F382)/SUM('Data Set'!$D18,'Data Set'!$D25,'Data Set'!$D32,'Data Set'!$D39,'Data Set'!$D46,'Data Set'!$D53,'Data Set'!$D60,'Data Set'!$D67,'Data Set'!$D74,'Data Set'!$D81,'Data Set'!$D88,'Data Set'!$D95,'Data Set'!$D102,'Data Set'!$D109,'Data Set'!$D116,'Data Set'!$D123,'Data Set'!$D130,'Data Set'!$D137,'Data Set'!$D144,'Data Set'!$D151,'Data Set'!$D158,'Data Set'!$D165,'Data Set'!$D172,'Data Set'!$D179,'Data Set'!$D186,'Data Set'!$D193,'Data Set'!$D200,'Data Set'!$D207,'Data Set'!$D214,'Data Set'!$D221,'Data Set'!$D228,'Data Set'!$D235,'Data Set'!$D242,'Data Set'!$D249,'Data Set'!$D256,'Data Set'!$D263,'Data Set'!$D270,'Data Set'!$D277,'Data Set'!$D284,'Data Set'!$D291,'Data Set'!$D298,'Data Set'!$D305,'Data Set'!$D312,'Data Set'!$D319,'Data Set'!$D326,'Data Set'!$D333,'Data Set'!$D340,'Data Set'!$D347,'Data Set'!$D354,'Data Set'!$D361,'Data Set'!$D368,'Data Set'!$D375,'Data Set'!$D382),"-") |
As you can appreciate - a formula this size is open to human error when referencing that many cells.....
Any assistance would be greatly appreciated