Anda di halaman 1dari 15

cust_id nama line_id lokasi no_seri produk

1 P.T. Az, Tbk GK Sunter 24 benda A


2 C.V. Bp GL Cikarang 27 benda B
3 U.D. Xx GM Tangerang 101 benda C
4 P.O. Ijk 105 benda D
311 benda E
317 benda F
320 benda G
456 benda H
material_id material warna_id warna
al Aluminium BLA Hitam
br Kuningan BLU Biru
fe Besi BRO Coklat
fi Fiber GRN Hijau
gl Kaca NON Natural
pl plastik RED Merah
wd Kayu WHI Putih
YEL Kuning
tgl_inv inv_id
1/11/2010 1001
1/17/2010 2001
1/17/2010 3001
1/21/2010 2002
2/13/2010 1002
2/13/2010 2003
3/5/2010 3002
tgl_delivery
1/31/2010
2/6/2010
2/6/2010
2/10/2010
3/5/2010
3/8/2010
3/29/2010
inv_id product_id qty price disc
1001 GL105alGRN 2,500 131.00 1.00%
1001 GL317wdGRN 1,750 136.70 0.00%
2001 GL317alGRN 2,100 133.15 1.00%
3001 GL105alGRN 2,250 132.75 0.00%
2002 GM105glNON 1,250 133.23 0.00%
1002 GL105glNON 1,100 131.00 0.00%
2003 GM024glNON 250 234.00 1.50%
3002 GM105wdBRO 4,725 137.00 2.15%

Berapa kali customer 1 mendapatkan discount ?


step 1 step 2 step 3 step 4

A2:A9 INT(A2:A9 INT(A2:A9


E2:E9>0
/1000 /1000) /1000)=1

1.001 1 1 1
1.001 1 1 0
2.001 2 0 1
3.001 3 0 0
2.002 2 0 0
1.002 1 1 0
2.003 2 0 1
3.002 3 0 1

step 7 SUM((INT(A2:A9/1000)=1)*(E2:E9>0))
step 8 COUNT( IF((INT(A2:A9/1000)=1)*(E2:E9>0),1) )
Buat daftar 3 (tiga) harga jual (price) tertin
step 5 step 6 step 1 step 2
IF(
(INT(A2:A9 (INT(A2:A9
/1000)=1) /1000)=1) LEFT(B2:B9,2) LEFT(B2:B9,2)="GL"
*(E2:E9>0) *(E2:E9>0)
,1)
1 1 GL 1
0 0 GL 1
0 0 GL 1
0 0 GL 1
0 0 GM 0
0 0 GL 1
0 0 GM 0
0 0 GM 0

1
=1)*(E2:E9>0),1) ) 1

step 5 LARGE((LEFT(B2:B9,2)="GL")*

LARGE((LEFT($B$2:$B$9,2)="GL"
step 6
*$D$2:$D$9,ROW(1:1))

LARGE((LEFT(B2:B9,2)="GL")
step 7
*D2:D9,ROW(1:3))
jual (price) tertinggi untuk produk yang di produksi pada lokasi GL!
step 3 step 4

(LEFT(B2:B9,2)="GL")
D2:D9
*D2:D9

131.00 131
136.70 136.7
133.15 133.15
132.75 132.75
133.23 0
131.00 131
234.00 0
137.00 0

136.7
133.15
132.75
131
T(B2:B9,2)="GL")*D2:D9
131
0
0
0

($B$2:$B$9,2)="GL")
136.7
ROW(1:1))

136.7
(B2:B9,2)="GL")
133.15
(1:3))
132.75
inv_id product_id qty price disc
1001 GL105alGRN 2,500 131.00 1.00%
1001 GL317wdGRN 1,750 136.70 0.00%
2001 GL317alGRN 2,100 133.15 1.00%
3001 GL105alGRN 2,250 132.75 0.00%
2002 GM105glNON 1,250 133.23 0.00%
1002 GL105glNON 1,100 131.00 0.00%
2003 GM024glNON 250 234.00 1.50%
3002 GM105wdBRO 4,725 137.00 2.15%

No.
5
6
7
###
helper Filter Criteria Price range
Customer dari
Line Produksi sampai
311 Jenis Produk benda E Quantity range
Material dari
NON Warna Natural sampai

Result Table
helper inv_id product_id qty price disc
#VALUE!
#VALUE!
#VALUE!
#VALUE!

RIGHT($B$2
step1 step2 step3

RIGHT($B$2:$B$9,3
ROW($B$2:$B$9)
RIGHT($B$2:$B$9,3) )
-ROW($B$1)
=$I$9

GRN 0 1
GRN 0 2
GRN 0 3
GRN 0 4
NON 1 5
NON 1 6
NON 1 7
BRO 0 8

SMALL(
IF(
step5 RIGHT($B$2:$B$9,3)=$I$9,
ROW($B$2:$B$9)-ROW($B$1)
),
SMALL(
IF(
step5 RIGHT($B$2:$B$9,3)=$I$9,
ROW($B$2:$B$9)-ROW($B$1)
),

SMALL(IF(RIGHT($B$2:$B$9,3)=$I$9,
step6 ROW($B$2:$B$9)-ROW($B$1)),
ROW(1:1))
step4
IF(
RIGHT($B$2:$B$9,3)=$I$
9,
ROW($B$2:$B$9)-
ROW($B$1)
)
0
0
0
0
5
6
7
0

0
0
0
0
0
5
6
7

Anda mungkin juga menyukai