LATIHAN MS. EXCEL (4)
Petunjuk :
1. Kode terdiri dari 7 digit
Digit 1,2 merupakan kode "Penerbit"
Digit 3,4 merupakan kode "Jenis Buku"
Digit 5-8 merupakan kode "Tahun"
2. Harga asal = sesuai data tabel
3. Diskon diberikan untuk pembelian buku :
Airlangga 10%
Gunung Agung 15%
Balai Pustaka 20%
4. Harga Baru = harga asal dikurangi diskon
=IF(LEFT(B5,2)="AL","AIRLANGGA",IF(LEFT(B5,2)="AO","ANDI OFFSET",IF(LEFT(B5,2)="BA","BINARUPA AKSARA",IF(LEFT(B5,2)="BP","BALAI PUSTAKA",IF(LEFT(B5,2)="EL","ELEX MEDIA",IF(LEFT(B5,2)="GA","GUNUNG AGUNG",IF(LEFT(B5,2)="GM","GRIYA MEDIA",IF(LEFT(B5,2)="MI","MIZAN",IF(LEFT(B5,2)="SE","SALEMBA EMPAT")))))))))
=MID(B5,5,4)
=IF(MID(B5,3,2)="01","POLITIK",IF(MID(B5,3,2)="02","EKONOMI",IF(MID(B5,3,2)="03","SOSIAL",IF(MID(B5,3,2)="04","BUDAYA",IF(MID(B5,3,2)="05","HUKUM",IF(MID(B5,3,2)="06","AGAMA",IF(MID(B5,3,2)="07","MUSIK",IF(MID(B5,3,2)="08","OLAH RAGA",IF(MID(B5,3,2)="09","SEJARAH",IF(MID(B5,3,2)="10","TEKNIK",IF(MID(B5,3,2)="11","BAHASA"))))))))))
=IF(RIGHT(B5,1)="A","67800",IF(RIGHT(B5,1)="B","60200",IF(RIGHT(B5,1)="C","58600",IF(RIGHT(B5,1)="D","53200",IF(RIGHT(B5,1)="E","48400",IF(RIGHT(B5,1)="F","43800",IF(RIGHT(B5,1)="G","39200",IF(RIGHT(B5,1)="H","34600",IF(RIGHT(B5,1)="I","30000",IF(RIGHT(B5,1)="J","25400"))))))))))
=IF(C5="AIRLANGGA",F5*10%,IF(C5="GUNUNG AGUNG",F5*15%,IF(C5="BALAI PUSTAKA",F5*20%,0)))
=F5-G5
Comments
Post a Comment