[TABLE="width: 500"]
<tbody>[TR]
[TD]
Would really appreciate if anybody would take a look into this big thing. I really can't figure it out!
This is part of the table I'm trying to set up. You'll find the deviating numbers on the top left and right.
[TABLE="class: grid, width: 1260"]
<tbody>[TR]
[TD][/TD]
[TD]G
[/TD]
[TD]I
[/TD]
[TD]J
[/TD]
[TD]L
[/TD]
[TD]M
[/TD]
[TD]R
[/TD]
[TD]S
[/TD]
[TD]T
[/TD]
[TD]U
[/TD]
[TD="colspan: 4"]V | W | X | Y |
[/TD]
[/TR]
[TR]
[TD]1
[/TD]
[TD][/TD]
[TD]by quantity
[/TD]
[TD]by %
[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD="colspan: 4"]
Lead time whithin
[/TD]
[/TR]
[TR]
[TD]2
[/TD]
[TD]
total of orders
[/TD]
[TD="align: right"]
10896
[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD]<5 days
[/TD]
[TD]<10 days
[/TD]
[TD]>10
[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]3
[/TD]
[TD]
overrun delivery date
[/TD]
[TD="align: right"]
2970
[/TD]
[TD]27.26%
[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD="align: right"]7681
[/TD]
[TD="align: right"]2277
[/TD]
[TD="align: right"]849
[/TD]
[TD="align: right"]10807
[/TD]
[/TR]
[TR]
[TD]4
[/TD]
[TD]
on credit release
[/TD]
[TD="align: right"]
2497
[/TD]
[TD]22.92%
[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]5
[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD="colspan: 4"]
Orders overrun delivery day by
[/TD]
[/TR]
[TR]
[TD]6
[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD]<5 days
[/TD]
[TD]<10 days
[/TD]
[TD]>10 days
[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]7
[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD="align: right"]2352
[/TD]
[TD="align: right"]385
[/TD]
[TD="align: right"]233
[/TD]
[TD="align: right"]2970
[/TD]
[/TR]
[TR]
[TD]8
[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]9
[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD="colspan: 4"]
Orders on credit block
[/TD]
[/TR]
[TR]
[TD]10
[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD]<5 days
[/TD]
[TD]<10 days
[/TD]
[TD]>10 days
[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]11
[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD="align: right"]1446
[/TD]
[TD="align: right"]74
[/TD]
[TD="align: right"]39
[/TD]
[TD="align: right"]1559
[/TD]
[/TR]
[TR]
[TD]12
[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]13
[/TD]
[TD]
Order_create
[/TD]
[TD]
Credit_block
[/TD]
[TD]
Credit_release
[/TD]
[TD]
Req_delivery
[/TD]
[TD]
Goods_issue
[/TD]
[TD]
Total days proceeded
[/TD]
[TD]
On credit block
[/TD]
[TD]
Days overrun
[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD="align: right"]14
[/TD]
[TD="align: right"]4/6/11 12:56 PM
[/TD]
[TD][/TD]
[TD][/TD]
[TD="align: right"]4/7/2011
[/TD]
[TD="align: right"]4/6/11 7:23 PM
[/TD]
[TD]1
[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD="align: right"]15
[/TD]
[TD="align: right"]5/3/11 3:29 PM
[/TD]
[TD][/TD]
[TD][/TD]
[TD="align: right"]5/3/2011
[/TD]
[TD="align: right"]5/3/11 4:04 PM
[/TD]
[TD]1
[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD="align: right"]16
[/TD]
[TD="align: right"]6/22/11 12:19 PM
[/TD]
[TD][/TD]
[TD][/TD]
[TD="align: right"]6/22/2011
[/TD]
[TD="align: right"]6/22/11 2:14 PM
[/TD]
[TD]1
[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD="align: right"]17
[/TD]
[TD="align: right"]8/12/11 2:34 PM
[/TD]
[TD][/TD]
[TD][/TD]
[TD="align: right"]8/12/2011
[/TD]
[TD="align: right"]8/12/11 3:32 PM
[/TD]
[TD]1
[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD="align: right"]18
[/TD]
[TD="align: right"]2/23/11 2:34 PM
[/TD]
[TD][/TD]
[TD][/TD]
[TD="align: right"]2/24/2011
[/TD]
[TD="align: right"]2/23/11 4:25 PM
[/TD]
[TD]1
[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD="align: right"]19
[/TD]
[TD="align: right"]5/20/11 2:26 PM
[/TD]
[TD][/TD]
[TD][/TD]
[TD="align: right"]5/20/2011
[/TD]
[TD="align: right"]5/20/11 7:04 PM
[/TD]
[TD]1
[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD="align: right"]20
[/TD]
[TD="align: right"]9/6/11 3:27 PM
[/TD]
[TD][/TD]
[TD][/TD]
[TD="align: right"]9/12/2011
[/TD]
[TD="align: right"]9/6/11 6:32 PM
[/TD]
[TD]1
[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD="align: right"]21
[/TD]
[TD="align: right"]10/14/11 3:31 PM
[/TD]
[TD][/TD]
[TD][/TD]
[TD="align: right"]10/20/2011
[/TD]
[TD="align: right"]10/14/11 4:43 PM
[/TD]
[TD]1
[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD="align: right"]22
[/TD]
[TD="align: right"]10/4/11 12:17 PM
[/TD]
[TD][/TD]
[TD][/TD]
[TD="align: right"]10/5/2011
[/TD]
[TD="align: right"]10/4/11 7:16 PM
[/TD]
[TD]1
[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD="align: right"]23
[/TD]
[TD="align: right"]12/21/11 3:25 PM
[/TD]
[TD][/TD]
[TD][/TD]
[TD="align: right"]12/21/2011
[/TD]
[TD="align: right"]12/21/11 6:04 PM
[/TD]
[TD]1
[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD="align: right"]24
[/TD]
[TD="align: right"]8/26/11 5:47 PM
[/TD]
[TD][/TD]
[TD][/TD]
[TD="align: right"]9/2/2011
[/TD]
[TD="align: right"]8/26/11 6:34 PM
[/TD]
[TD]1
[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD="align: right"]25
[/TD]
[TD="align: right"]9/16/11 2:34 PM
[/TD]
[TD][/TD]
[TD][/TD]
[TD="align: right"]9/26/2011
[/TD]
[TD="align: right"]9/16/11 5:39 PM
[/TD]
[TD]1
[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD="align: right"]26
[/TD]
[TD="align: right"]2/22/11 10:37 AM
[/TD]
[TD="align: right"]2/22/11 10:37 AM
[/TD]
[TD="align: right"]2/22/11 10:55 AM
[/TD]
[TD="align: right"]2/28/2011
[/TD]
[TD][/TD]
[TD]371
[/TD]
[TD]1
[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD="align: right"]27
[/TD]
[TD="align: right"]2/3/11 12:11 PM
[/TD]
[TD][/TD]
[TD][/TD]
[TD="align: right"]2/3/2011
[/TD]
[TD="align: right"]2/3/11 1:19 PM
[/TD]
[TD]1
[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD="align: right"]28
[/TD]
[TD="align: right"]5/12/11 12:42 PM
[/TD]
[TD][/TD]
[TD][/TD]
[TD="align: right"]5/13/2011
[/TD]
[TD="align: right"]5/12/11 5:42 PM
[/TD]
[TD]1
[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
</tbody>[/TABLE]
Formulas used as follows:
I2: =COUNTA($R14:$R30000)
I3: =COUNT($T14:$T30011)
I4: =COUNT($J14:$J30011)
V3: =COUNTIF($R14:$R30000,"<=5")
W3: =(COUNTIF($R14:$R30000,"<=10"))-V3
X3: =COUNTIF($R14:$R30007,">10")
Y3: =SUM(V3:X3)
V7: =COUNTIF($T14:$T30011,"<=5")
W7: =(COUNTIF($T14:$T30011,"<=10"))-$V$7
X7: =(COUNTIF($T14:$T30011,">10"))
Y7: =SUM(V7:X7)
Same for the credit one.
Then for the matrix itself as follows:
R14: =IF((IF((HOUR(G14)<12),(NETWORKDAYS(G14,(IF(M14="",TODAY(),M14)))),(NETWORKDAYS((G14+1),(IF(M14="",TODAY(),M14))))))<=0,"1",(IF((HOUR(G14)<12),(NETWORKDAYS(G14,(IF(M14="",TODAY(),M14)))),(NETWORKDAYS((G14+1),(IF(M14="",TODAY(),M14)))))))
S14: =IF((IF(I14<>"",(IF(HOUR(MAX(I14,J14))<12,NETWORKDAYS(MAX(I14),J14),NETWORKDAYS(MAX(I14)+1,J14))),""))<=0,"1",(IF(I14<>"",(IF(HOUR(MAX(I14,J14))<12,NETWORKDAYS(MAX(I14),J14),NETWORKDAYS(MAX(I14)+1,J14))),"")))
T14: =IF(($L14+1)>$M14,"",(NETWORKDAYS($L14,$M14)))
Thanks so much!
[/TD]
[/TR]
</tbody>[/TABLE]