1 NAMA BARANG
Diambil dari KODE, jika M = Monitor, K = Keyboard, H = Harddisk, P = Printer, S = Scanner
2 HARGA SATUAN
Diambil dari KODE, jika M = 800000, K = 80000, H = 600000, P = 650000, S = 850000
3 JUMLAH
Diambil dari kode yaitu 2 karakter paling kanan
4 DISCOUNT
Jika Kode 01 discount 5% dikalikan HARGA SATUAN dikalikan JUMLAH
Jika Kode 02 discount 7.5% dikalikan HARGA SATUAN dikalikan JUMLAH
Jika Kode 03 discount 10% dikalikan HARGA SATUAN dikalikan JUMLAH
5 PAJAK
Jika HARGA SATUAN * JUMLAH => 20000000, 7.5% * HARGA SATUAN * JUMLAH
Jika HARGA SATUAN * JUMLAH < 20000000, 5% * HARGA SATUAN * JUMLAH
6 HARGA BAYAR
HARGA SATUAN * JUMLAH - DISCOUNT + PAJAK
PEMBAHASAN :
1 NAMA BARANG
Diambil dari KODE, jika M = Monitor, K = Keyboard, H = Harddisk, P = Printer, S = Scanner
C5:
=IF(LEFT(B5,1)="M","MONITOR",IF(LEFT(B5,1)="K","KEYBOARD",
IF(LEFT(B5,1)="H","HARDDISK",IF(LEFT(B5,1)="P","PRINTER","SCANNER"))))
2 HARGA SATUAN
Diambil dari KODE, jika M = 800000, K = 80000, H = 600000, P = 650000, S = 850000
D5 :
=IF(LEFT(B5,1)="M",800000,IF(LEFT(B5,1)="K",80000,
IF(LEFT(B5,1)="H",600000,IF(LEFT(B5,1)="P",650000,850000))))
3 JUMLAH
Diambil dari kode yaitu 2 karakter paling kanan
E5:
=value(right(B5,2))
4 DISCOUNT
Jika Kode 01 discount 5% dikalikan HARGA SATUAN dikalikan JUMLAH
Jika Kode 02 discount 7.5% dikalikan HARGA SATUAN dikalikan JUMLAH
Jika Kode 03 discount 10% dikalikan HARGA SATUAN dikalikan JUMLAH
F5:
=IF(MID(B5,3,2)="01",5%,IF(MID(B5,3,2)="02",7.5%,10%))*D5*E5
5 PAJAK
Jika HARGA SATUAN * JUMLAH => 20000000, 7.5% * HARGA SATUAN * JUMLAH
Jika HARGA SATUAN * JUMLAH < 20000000, 5% * HARGA SATUAN * JUMLAH
=IF(D5*E5>=20000000,7.5%,5%)*D5*E5
6 HARGA BAYAR
HARGA SATUAN * JUMLAH - DISCOUNT + PAJAK
=+D5*E5-F5+G5
7 TOTAL / RATA-RATA / TERBESAR / TERKECIL
D15 : =SUM(D5:D14)
D16 : =AVERAGE(D5:D14)
D17 : =MAX(D5:D14)
D18 : =MIN(D5:D14)
0 comments:
Post a Comment