Vous êtes sur la page 1sur 70

Bai 1

GII THIEU VA CAC KHAI NIEM CAN BAN

I. GII THIEU VE BANG TNH EXCEL 1. He bang tnh ien t bang tnh Excel Mot bang tnh (worksheet, Spreadsheet) ien t co the hnh dung nh mot tam bang ln hnh ch nhat bao gom nhieu dong va nhieu cot trt tren man hnh cua may tnh. Giao iem cua mot dong va mot cot c goi la o (cell). Tai mot thi iem ch co the xem mot phan bang tnh thong qua man hnh (Monitor, screen) cua may tnh (computer). Tren mot bang tnh ta co the: To chc nhap, lu tr so lng ln thong tin di dang cac bang bieu, tien li cho viec in an cac bieu mau. T ong hoa cac cong viec can lap lai nhieu lan. Thc hien hang loat cac phep tnh t n gian en phc tap. Tao cac loai o th da vao nhng so lieu tren bang tnh. Tm kiem, loc, xoa, trch ghi cac thong tin can thiet. Phan tch, tong hp so lieu t nhng so lieu a co,

Do c tha ke cac tnh nang cua EXCEL 2000 va tang cng cac tnh nang tien li, MS-EXCEL XP hay EXCEL 2002 la mot bang tnh ien t thong minh. EXCEL XP vi cac ac tnh m rong: Nhap d lieu ( Import data) t cac trang web, hay t cac nguon d lieu cua SQL Server, Access, Oracle, Ho tr cac ham va cong thc bang cach hien th cac oi so (argument) thanh lien ket (link), e ngh ham khi tm kiem, Thay oi mau tren cac trang sheet. Smart tags: cac nut lenh thong minh khi ta PASTE d lieu hay s dung AUTOCORRECT, Tm va thay the vi nhng o nh dang. Ho tr a ngon ng (language): co the hieu chnh bat ky loai ngon ng nao ke ca mot so ngon ng nh Thai, Arabic, Ho tr cac tai lieu (document) ve web: co the lu mot bang tnh di dang mot mot trang .html (hyper text markup language) hay .xml (Extensible Markup Language) hay m cac file .html hoac .xml e chnh sa.

Trang 1

Ngan chan cac loai loi va khoi phuc d lieu khi may tnh b treo (stop responding). Bao mat thong tin: tang tnh nang bao ve chong lai mot so virus macro.

2. Hoat ong cua EXCEL XP 2.1 Yeu cau ve may. e co the hoat ong c EXCEL XP may phai cai WIN9X tr len, nh RAM 32MB, nen co mouse, man hnh VGA 256 mau (8 bits mau). 2.2 Khi ong EXCEL XP. T man hnh Windows nhap chon START PROGRAM MICROSOFT EXCEL II. CAC KHAI NIEM C BAN Man Hnh giao tiep: Sau khi khi ong EXCEL, ta thay man hnh sau:

Trong ca so nay bao gom cac thanh phan sau: TITLE BAR: la dong cha ten ca so EXCEL va ten tap tin . MENU BAR: la dong cha cac menu lenh cua EXCEL. FILE: cac muc menu lien quan en tap tin. EDIT: Hieu chnh, thay oi d lieu. VIEW: thay oi hay them bt cac thanh cong cu(. INSERT: chen them mot so oi tng. FORMAT: nh dang o d lieu. Trang 2

TOOL: cac cong cu x ly, bao mat, thiet lap cho EXCEL. DATA: x ly CSDL, tong hp d lieu. WINDOW: danh sach cac ca so, bang tnh ang m, HELP: giup .

TOOLS BAR: la thanh cong cu cha cac icon the hien cac lenh. TOOLS BAR co the bat tat bang menu lenh VIEW TOOLBARS. Bieu tng Y ngha Tao mot tap tin workbook mi M mot tap tin a co tren a e gi e-mail tap tin ang m Tm kiem tap tin tren a. In bang tnh Xem trc khi in Kiem tra van pham (tieng Anh) a d lieu vao clipboard va xoa d lieu hien hanh (edit cut). a d lieu vao clipboard va khong xoa d lieu hien hanh (edit copy). Dan d lieu t clipboard vao v tr hien hanh Sao chep nh dang Undo Redo Chen vao o hien hanh mot sieu lien ket Sap xep d lieu theo chieu tang Sap xep d lieu theo chieu giam Cong cu ve o th, bieu o Cong cu drrawing T ong tnh tong va cac ham lien Phong to, thu nho e xem chi tiet hay tong quat

FORMATTING: la thanh cong cu e nh dang d lieu. Bieu tng Chon font Chon size am Nghieng Trang 3 Y ngha

Gach chan Canh le trai Canh gia Canh le phai Tron hai hay nhieu o va canh gia Chen them n v tien te Them % pha sau Them dau phay sau con so Tang so 0 sau dau phay Giam so 0 sau d6au phay Giam khoang cach t phan d lieu en le trai cua o Tang khoang cach t phan d lieu en le trai cua o Chon ng ke khung To nen cho o Chon mau ch FORMULA BAR: la dong e nhap d lieu vao o hien hanh. Bieu tng Y ngha at ten khoi hay a ch o O nhap cong thc Cancel Enter WORKSHEET: la khu vc cua bang tnh bao gom cac o (cell) e cha d lieu (data). STATUS BAR: la dong trang thai cua EXCEL, cho biet che o lam viec hien hanh hay y ngha lenh hien hanh cua EXCEL va cac tnh trang hien thi cua he thong nh NUMLOCK, CAPSLOCK, trong o: READY: ang san sang ch nhap d lieu hay cong thc. ENTER: ang nhap d lieu vao o. POINT: dang ghi mot cong thc tham chieu en mot a ch. EDIT: ang ieu chnh d lieu. e chon c che o nay bang cach di chuyen ti o muon ieu chnh va bam phm F2.

SCROLL BAR: c s dung e di chuyen man hnh ca so bang mouse.

Trang 4

DRAWING: c s dung e ve cac oi tng nh textbox, autoshape va mot so hnh hop, ng cong, Bieu tng Y ngha Lat, nhom mot so oi tng thanh 1 oi tng, Chon oi tng Chon hnh dang e ve Ve ng thang Ve mui ten Ve hnh vuong hay hnh ch nhat Ve hnh tron hay hnh elip Textbox Wordart tao cac dang ch 3D, 2D, Chen s o Chen clipart Net ve Kieu net ve Chon hng mui ten Tao bong Tao hnh 3D

Sau khi khi ong, EXCEL se t ong cho ten tap tin (file) tam thi la BOOK1, ma trong no ngam nh 3 SHEET bang tnh, ma trong hnh 2 ta thay ay. Khu vc nay co cac ten Sheet1, Sheet2, Sheet3 va hien ang Sheet1. So lng Sheet trong mot BOOK co the c thay oi bang menu lenh TOOLS OPTIONS GENERAL SHEETS IN NEW WORKBOOK. Trong moi Sheet gom 65.536 dong va 256 cot va thng c hien th mot phan. Trong khu vc nay xuat hien mot khung sang vien to xung quanh vi mot goc vuong nho goc di phai (Fill Handle) c goi la con tro o. No co the di chuyen qua cac o lien tiep va o nao th o o c goi la o la chon (cell selector) hay la o hien hanh (current cell) trong bang tnh. a ch o hien hanh c xuat hien tren goc trai cua thanh cong thc. Viec nhap d lieu hay thao tac lenh se tac ong en a ch cua o hien hanh. 2. Cau truc bang tnh 2.1 Ten goi cac o Moi mot Sheet bao gom khoang 16 trieu o (65.536 dong x 256 cot), dung e nhap d lieu va thc hien cac yeu cau ve tnh toan, quan ly c s d lieu (DATABASE), Trong EXCEL co the Trang 5

m nhieu bang tnh cung luc va khong gii han so lng bang tnh c m (tuy thuoc vao bo nh RAM trong may). Cot (column): c anh th t bang ky t A Z, AA ZZ, IV la mot tap hp cua nhng o theo chieu doc. o rong mac nhien la 64 pixels. Dong (row): la tap hp cua nhng o theo hang ngang. Chieu cao mac nhien la 12,75 pixels. O (cell): la giao iem cua cot va dong va c xac nh bi mot toa o theo ky hieu cua cot va so th t cua dong. Hoac cung co the c goi theo th t cua dong va cot. Vung, khoi (range): la mot tap hp cua nhng o ke can nhau c bieu dien bi toa o o au goc tren trai va o cuoi goc di phai cua vung, gia hai toa o au va cuoi c phan cach bi dau hai cham (:) 2.2 Cach at ten o hay vung Trong EXCEL ta co the s dung ten khoi e thay the cho viec khai bao pham vi cua cac o. Ngoai ra, viec dung ten khoi co giup ta di chuyen nhanh ti pham vi o la chon trong bang tnh. 2.2.1 Quy c at ten vung Ky t au tien phai la ky t ch, nhng ky t con lai co the la ky t ch, ky t so, dau gach noi, khong phan biet ch hoa thng trong ten khoi nhng khong co khoang trang. Ten khoi khong nen at ten trung vi cac toa o o. Chieu dai toi a cua ten khoi la 255 ky t, tuy nhien ch nen at ngan gon va gi nh e de s dung. 2.2.2 at ten khoi Ta chon mot trong nhng cach sau: Cach 1: Chon o, hoac pham vi khoi can at ten. Chon menu lenh INSERT NAME DEFINE. Hoac dung ban phm nhan CTRL+F3. Khi o xuat hien hop thoai (dialog) sau:

Trang 6

Trong o: Names in workbook: e nhap ten can at cho pham vi va la chon. Refers to: e thay oi hoac khai bao lai pham vi can at ten. Add: e xac nhan (them) viec at ten khoi. Delete: e xoa ten khoi. Chon khoi o can at ten. Bam vao goc trai thanh cong thc (FORMULA BAR) roi at ten. Chon o hoac pham vi khoi o can at ten. Chon menu lenh INSERT NAME CREATE khi o xuat hien hop thoai sau:

Cach 2:

Cach 3: s dung tieu e cot dong e at ten.

Trong o: Top row: dong au. Left column: cot ben trai. Trang 7

Bottom row: dong cuoi. Right column: cot ben phai.

2.3 Cach at ten cho mot sheet va thay oi mau. 2.3.1 at tencho sheet Dung menu lenh FORMAT SHEET RENAME Bam phm phai mouse vao sheet muon at ten RENAME Dung menu lenh FORMAT SHEET TAB COLOR Bam phm phai mouse vao sheet muon oi mau TAB COLOR

2.3.1 oi mau cho sheet.

3. Thao tac khi lam viec vi bang tnh EXCEL 3.1 oi vi mouse Ta thng dung hai nut: left button va right button. - Bam (click): la bam mot lan tren mouse (thng la nut trai). - Bam up (double click): bam lien tiep hai lan tren mouse. - Bam gi va keo (click and drag): bam va gi (nut trai) cua mouse. 3.2 Di chuyen con tro o trong worksheet 3.2.1 Dung ban phm: Phm hay TAB hay SHIFT TAB Page up (PgUp) Page down (PgDn) CTRL + PgUp CTRL + PgDn 3.2.2 Dung mouse: a con tro ti o can roi bam. Trong trng hp di chuyen ti o cha c hien th tren man hnh th bam mui ten tren thanh cuon ng (vertical) va tren thanh cuon ngang (horizotal) (ngoai ra neu mouse co nut scroll th ta co the s dung chung e cuon len xuong, qua lai). 3.2.3 S dung lenh GOTO cua EXCEL. e di chuyen trc tiep en o can chon, ta co the dung: Menu lenh EDIT GOTO Dung ban phm: nhan phm F5 hay CTRL + G. Trang 8 Di Di Di Di Di Di Di Di Chc nang chuyen chuyen chuyen chuyen chuyen chuyen chuyen chuyen len 1 dong xuong 1 dong sang phai 1 cot sang trai 1 cot len 1 trang xuong 1 trang sang sheet ben trai sang sheet ben phai

Khi o xuat hien hop thoai sau:

Khi o ta nhap toa o o vao muc Reference hay ten trong Go to roi nhan OK. Con tro se di chuyen nhanh en o c ch nh. 3.3 Chon khoi cac o trong mot WorkSheet Cach thc hien Dung mouse Bam mouse tai o o Dung ban phm Di chuyen con tro o ti o e con tro o au goc tren trai, bam SHIFT + Chon tng khoi o nh tren, bam SHIFT + F8 sau khi chon xong 1 khoi e con tro o tren cot o bam CTRL + SPACE e con tro o tren cot o bam SHIFT + SPACE + SHIFT +

Loai o 1 o

1 nhom o ke Bam gi keo t o nhau au en o cuoi

1 nhom cac o Chon tng khoi o nh khong lien tren, bam CTRL trc nhau khi chon khoi khac Bam vao ten cac 1 hay nhieu cot cot 1 hay nhieu Bam vao ten cac dong dong Bam chon goc tren trai bang tnh (ben Bam CTRL Toan bang tnh trai cot A, ben tren SPACE dong 1) 3.4 Thc hien thao tac tren WorkSheet -

Dung ban phm: ALT+ phm nong (ky t gach chan) Dung mouse: bam vao ten cua menu. Thao tac tat: mot so thao tac ve khoi, hoac e nh dang co the thao tac bang cach ket hp phm CTRL (ALT hay SHIFT) cung vi mot phm khac. Cac thao tac nay c trnh bay trong tng trng hp cu the. S dung Context Menus: di chuyen vao o, hay khoi o bam phai mouse chon lenh can thc hien. Trang 9

Lu y: ngoai cac thanh cong cu chuan ma EXCEL cho ta thay tren man hnh, EXCEL con nhieu cong cu khac dung cho tng nhom lenh: Chart, Formatting, Drawing, Macro, e bat/tat cac TOOLBARS nay, dung menu lenh VIEW TOOLBARS. Viec thao tac bang mouse tren TOOLBAR hay tren context menus la phng phap nh dang trc tiep va n gian v cac ky hieu nh dang a hien th san tren o. Ta ch viec bam mouse tren nhng ky hieu tng ng. Viec thao tac bang to hp phm la phng phap thao tac thng dung oi vi nhng ngi lam cong tac x ly bang tnh chuyen nghiep tren may tnh v ngi s dung khong mat thi gian thay oi thiet b nhap gia ban phm va mouse. To hp phm thong thng la s ket hp gia hai phm: CTRL va mot phm khac. 4. Nguyen tac nhap cac loai d lieu cho bang tnh EXCEL Tap tin bang tnh c soan thao trong EXCEL co phan m rong la .XLS. Sau khi soan thao mot bang tnh nao o e lu tr lai ch can nh tren o a nao, th muc nao va ten tap tin la g. Con phan m rong cua ten tap tin khong can nhap v EXCEL t ong gan la .XLS 4.1 Nhap d lieu vao bang tnh e nhap d lieu vao o nao, ta phai di chuyen con tro o ti o o tren bang tnh roi thc hien nhap, d lieu se c hien len thanh cong thc cho ti khi ta nhan phm ENTER hoac dung mouse nhan vao hnh tng tren thanh cong thc th d lieu se c nhap vao o. D lieu nhap vao bang tnh EXCEL ch thuoc mot trong hai loai nh sau: gia tr hang so hoac cong thc. Ngoai ra, trong mot o con the nhap ghi chu (COMMENT) e chu thch them ve noi dung trong o o, noi dung nay khong hien trong o. 4.2 D lieu co gia tr hang so (constant value) o la mot gia tr khong thay oi, tr khi ta thc hien viec sa cha hoac thay oi nh dang d lieu. Hang co the la: tr so, hang ky t, ngay gi. 4.3 d lieu dang so Bat au bi cac ch so t 0..9 hoac c bat au bi nhng dau: +, -, (, ., $, ). Khi chieu dai chuoi so nhap vao nho hn o rong cua 1 o th dang thc so mac nhien se la bnh thng (general) va c t ong canh ve ben phai o. Khi chieu dai cua chuoi so nhap vao ln hn hoac bang o rong cua 1 o th EXCEL se t ong chuyen sang dang so khoa hoc (scientific) hoac hien th cac dau # trong o. e co Trang 10

the hien th ay u d lieu ta ch can thay oi o rong cua cot hoac giam font-size. Chu y: Khi trong day so nhap vao co cha ky t hoac nhieu ky t dau nh: +, -, /, hoac nhieu hn mot dau cham thap phan th EXCEL se t ong chuyen day so o sang dang chuoi ky t. Ta co the nhap trc tiep cac dau phan cach hang ngan, dau phan cach thap phan. Tuy nhien, t dang so bnh thng ta co the thay oi sang nhieu dang thc hien th khac nhau thong qua menu lenh FORMAT CELL NUMBER. Phai c bat au bang cac ky t t a..z, A..Z Khi chieu dai cua chuoi ky t nho hn o rong cua o th chuoi d lieu nhap se the hien ay u. Khi chuoi ky t nhap dai hn o rong cua o th: Neu nhng o lan can ben phai con trong: th chuoi ky t nhap se lan sang o ben canh e c the hien ay u. Neu nhng o lan can ben phai ang co d lieu: th chuoi ky t nhap vao ch c hien th ay u cho en pham vi cua o cha tr ke can. Khi o e the hien ay u ta ch can thay oi o rong cua cot sao cho ln hn chieu dai cua chuoi ky t nhap.

4.4 D lieu dang chuoi ky t

4.5 D lieu dang ngay gi. D lieu dang ngay gi c theo dang ngay/thang/nam. Sau o dang thc se the hien c la chon bang menu lenh FORMAT CELL (CTRL+1). Khi o xuat hien hop thoai sau:

Trang 11

Chu y: Khi s dung cac dau cham, dau phay e phan cach gia ngay thang nam hoac nhap cac tr so ngay thang nam khong co gia tr th EXCEL se t ong chuyen sang dang chuoi. Co the thc hien cac phep toan tren kieu ngay thang. Viec the hien kieu ngay thang va the hien con so c xac nh trong CONTROL PANEL trong bieu tng REGIONAL SETTINGS.

4.6 D lieu dang cong thc D lieu dang cong thc la s ket noi nhng gia tr, ket hp vi nhau nh cac toan t va phai c bat au bi dau =. Gia tr trong cong thc se phu thuoc vao s thay oi noi dung cua nhng d lieu co lien quan. Khi nhap cong thc, ta ch nhan ra cong thc tren thanh cong thc. Sau khi nhap xong cong thc va bam ENTER ta se nhan c ket qua. Cac toan t s dung trong cong thc: Toan t dung e tnh toan: +, -, * (nhan), / (chia), ^ (luy tha), % (phan tram). Toan t lien ket: & (lien ket chuoi). Toan t so sanh:< (nho h), <= (nho hn hoac bang), > (ln hn), >= (ln hn hoac bang), = (bang), <> (khac). o u tien cua cac toan t: nhan, chia, cong, tr. Trang 12

Khi nhap mot cong thc ma cong thc o ma khong giai quyet c th trong o co cac ma sai nh sau: Ma Loi #VALUE! #N/A! #NUM! #NAME! #DIV /0 #REF! #NULL! Y ngha Khong tnh c Bat kha dung So b sai Ten sai Chia cho khong Tham chieu sai Rong

4.7 D lieu dang ghi chu EXCEL cho phep ta gan cac ghi chu vao trong tng o cua bang tnh. Noi dung ghi chu co the la chuoi d lieu. Trong bang tnh cac ghi chu nay khong hien th chung vi d lieu trong o, nhng ta co the xem bang cach a con tro o vao o co ghi chu. Luc nay ghi chu se hien ra e chung ta oc. 4.8 Tao ghi chu (Comment) Dung menu lenh: INSERT COMMENT. Dung ban phm: SHIFT + F2.

Luc o se xuat hien hop ghi chu e cho ban nhap nh hnh sau:

4.9 Xem lai ghi chu a con tro o vao o co cha ghi chu (o co cha ghi chu la o co mot hnh tam giac mau o goc tren phai) th phan chu thch se hien ra. Dung menu VIEW COMMENT.

5. Chnh sa d lieu tren thanh cong thc va ngay trong o 5.1 Chnh sa d lieu trong o Di chuyen con tro ti o can chnh sa. Bam phm F2 (hoac double click vao o o). Xuat hien ch bao Edit tren thanh trang thai. Thc hien chnh sa d lieu trong o. Nhan ENTER e hoan tat.

5.2 Chnh sa lai cac ghi chu a con tro o vao o co cha ghi chu. Dung menu lenh INSERT EDIT COMMENT. Trang 13

Hoac bam phm phai mouse vao o co cha ghi chu, chon EDIT COMMENT.

III. CAC THAO TAC C BAN TREN TAP TIN BANG TNH 1. Tao mot tap tin mi Dung menu lenh: FILE NEW Dung mouse click bieu tng tren thanh cong cu. Dung phm tat: CTRL + N. Hoac tren task pane click blank workbook Dung menu lenh: FILE SAVE. Dung mouse click tren thanh cong cu. Dung phm tat: CTRL + S. Khi o xuat hien hop thoai sau:

2. Lu mot bang tnh vao a

Trong o: SAVE IN: ch ra th muc, o a ma ta muon lu. FILE NAME: ten tap tin muon lu. SAVE AS TYPE: kieu d lieu muon lu

e bao ve d lieu ta co the dung cong cu TOOLS ngay tren hop thoai nay, sau o chon GENERAL OPTION khi o lai xuat hien hop thoai sau:

Trang 14

Trong o: ALWAYS CREATE BACKUP: luon tao mot file d phong khi ta lu va co phan m rong la .XLK. PASSWORD TO OPEN: mat ma e m tap tin. PASSWORD TO MODIFY: mat ma e chnh sa d lieu. READ-ONLY RECOMMENDED: e ngh m file nhng ch oc. Nut lenh ADVANCED...: chon kieu ma hoa d lieu. Dung menu lenh: FILE SAVE AS khi o cung xuat hien hop thoai giong hnh tren. Dung Menu lenh: FILE OPEN Tren thanh cong cu dung mouse click . Dung phm tat: CTRL + O.

3. Lu tap tin vi mot ten khac

4. M mot tap tin a co tren a -

Khi o xuat hien hop thoai sau:

Trang 15

M mot cach bnh thng M va sao cheo thanh file khac M va sa tap tin

M nh la mot tap tin ch oc

Trong o: - LOOK IN: la o a, th muc ni cha tap tin muon m. - FILE NAME: ten tap tin can m. - CLICK OPEN: e m file IV. CAC THAO TAC KHI LAM VIEC VI CA SO BANG TNH 1. M them ca so cua bang tnh hien thi. Dung menu lenh: WINDOW NEW WINDOW Khi o EXCEL m them mot ca so na cung cha bang tnh hien thi ang m e ta co the quan sat cac khu vc khac cua no. Khi khong can ta co the dung mouse ong ca so khong can thiet. 2. Sap xep cac ca so cua bang tnh EXCEL Trang 16

Nham sap xep cac ca so bang tnh a m tren man hnh theo mot cach nao o, ta thc hien nh sau: Dung menu lenh: WINDOW ARRANGE Khi o xuat hien hop thoai sau:

Trong o: TITLED: sap xep theo tieu e. HORIZONTAL: sap xep cac ca so theo chieu ngang. VERTICAL: sap xep cac ca so theo chieu doc. CASCADE: sap xep cac ca so theo tang. WINDOWS OF ACTIVE WORKBOOK: ch sap xep cac ca so cua workbook ang hoat ong. Di chuyen con tro ve v tr muon phan chia tren bang tnh. Dung menu lenh: WINDOW SPLIT. Khi o EXCEL se xuat hien ng ke phan chia. Dung to hp phm SHIFT + F6 e di chuyen qua lai gia cac khu vc. Kch thc cac khu vc phu thuoc vao v tr con tro o. Nhng ta co the thay oi kch thc nay bang cach dung mouse bam gi keo vao canh cua ng phan chia cac khu vc. Menu lenh WINDOW REMOVE SPLIT e bo viec phan chia khu vc tren bang tnh. 4. Co nh cac o tieu e cua bang tnh. Trong qua trnh di chuyen o en cac pham vi khac cua bang tnh, cac khung tieu e dong, cot cung d lieu c cuon theo chieu ngang, hay chieu doc. e co nh mot so khung tieu e cung so lieu tren khu vc cot/dong tieu e van c hien th tren bang tnh, ta thc hien nh sau: Di chuyen con tro o en ben di dong tieu e muon co nh hay ben phai cot tieu e hoac ca hai. Trang 17

3. Phan chia mot ca so bang tnh thanh nhieu khu vc.

Dung menu lenh: WINDOW FREEZE PANES. Khi o EXCEL se xuat hien mot ng ke n e phan biet. Menu lenh: WINDOW UNFREEZE PANES dung e bo viec co nh cac khung tieu e tren. Neu thc hien freeze panes tren mot bang tnh a c phan chia (split) th EXCEL se t ong thay oi ng phan chia thanh ng ke n va ngc lai. 5. Tam thi an/hien bang tnh Dung menu lenh: WINDOW HIDE. Cac bang tnh an se van hoat ong cho en khi bang tnh o c ong lai. Dung menu lenh: WINDOW UNHIDE e hien lai cac bang tnh a an. Khi o xuat hien hop thoai sau:

Luc nay ta ch chon bang tnh nao muon cho hien tr lai roi nhan OK. 6. Thay oi t le hien th d lieu Dung menu: VIEW ZOOM khi o xuat hien hop thoai sau:

Trong hop thoai nay chon t le hien th co san hoac nhap mot t le khac theo y muon trong khung Custom. EXCEL cho phep Trang 18

an nh t le hien th bang tnh trong pham vi t 10% ..400%. Khi can tr lai bnh thng, ta chon 100%.

Trang 19

Bai 2

NH DANG VA X LY

I. THAO TAC TREN O VA TREN VUNG CHON 1. Xoa d lieu tren vung chon Dung menu lenh: EDIT CLEAR. Dung mouse click phai, chon CLEAR CONTENT. Dung ban phm nhan phm DELETE.

Khi chon menu lenh EDIT CLEAR, xuat hien nh sau:

Xoa tat ca

Xoa phan nh dang Xoa noi dung Xoa phan ghi chu

2. Khoi phuc d lieu Trong khi vo tnh hay co y xoa mat d lieu trong mot o hay khoi, ta co the lay lai d lieu bang nhng cach sau: Dung ban phm nhan to hp phm: CTRL + Z. Dung menu lenh: EDIT UNDO. Hoac nhan vao bieu tng Dung to hp phm CTRL + X. Dung menu lenh: EDIT CUT. Nhan vao bieu tng Khi o o/khoi chon se xuat hien mot ng vien bao quanh. e lay d lieu t clipboard dan vao o ch ta lam nh muc 5. Dung to hp phm: CTRL + C. Trang 20 tren thanh cong cu.

3. Di chuyen d lieu

4. Sao chep d lieu -

Dung menu lenh: EDIT COPY. Nhan vao bieu tng e lay d lieu t clipboard dan vao o ch ta lam nh muc 5. Dung to hp phm: CTRL + V. Dung menu lenh: EDIT PASTE. Nhan vao bieu tng

5. Lay d lieu t bo em -

6. Lay d lieu t bo em en o ch co tnh toan Dung menu lenh sau: EDIT PASTE SPECIAL khi o xuat hien mot hop thoai nh sau:

Trong phan PASTE: All: sao chep tat ca (noi dung, nh dang, ghi chu, ). Formulas: sao chep cong thc. Values: sao chep gia tr. Formats: sao chep nh dang. Comments: sao chep ghi chu. Validation: All except border: sao chep tat ca tr phan ke khung. Column widths: sao chep o rong cot. Formulas and number formats: sao chep cong thc vao1. Values and number formats: sao chep gia tr va nh dang so.

Trong phan OPERATION: Trang 21

None: sao chep va thay the bi cac gia tr trong o nguon. Add: sao chep va lay gia tr vung ch cong them vi vung nguon. Subst: sao chep va lay gia tr vung ch tr bt vi vung nguon. Multiply: sao chep va lay gia tr vung ch nhan vi vung nguon. Divide: sao chep va lay gia tr vung ch chia vung nguon. Skip blanks: khong sao chep cac o trong tren vung nguon vao khu vc cua vung ch. Transpose: sao chep va hoan chuyen v tr cot/dong.

7. T ong ien d lieu vao trong pham vi cua vung ch Viec ien d lieu vao nhng o tren bang tnh tng t nh viec sao chep nhng ch khac mot iem la: no thc hien t mot (hay nhieu) o nguon tren cot (hay dong) en nhieu o khac. Ngoai ra, trong pham vi cac o cua vung ch se c ien cung mot d lieu hoac se co gia tr tang hay giam so vi v tr bat au. 7.1 ien d lieu co cung noi dung vao trong pham vi o la chon Chon pham vi can thc hien bao gom ca o nguon. Dung menu lenh: EDIT FILL UP, DOWN, LEFT, RIGHT.

Khi o: + UP: se lay d lieu cua cac o dong di o d lieu ien vao pham vi khoi. + DOWN: se lay d lieu cua cac o dong tren o d lieu ien vao pham vi khoi. + LEFT: se lay d lieu cua cac o cot ben phai o d lieu ien vao pham vi khoi. + RIGHT: se lay d lieu cua cac o cot ben trai o d lieu ien vao pham vi khoi. 7.2 ien d lieu tang/giam vao trong pham vi la chon ien d lieu tang/giam ch co tac dung tren kieu d lieu la: ngay thang, kieu so. e thc hien, ta phai chon o co cha d lieu. Cach lam nh sau: Dung mouse: Chon o cha d lieu. Di chuyen mouse ti goc di phai cua vung (o) chon (khi o con tro mouse bien thanh dau +), bam gi mouse va keo en v tr tr muon ket thuc. Trang 22

Khi o xuat hien bieu tng cua Auto Fill Option nh sau:

Ch sao chep ien thanh day Ch ien nh dang Ch ien nhng khong nh dang

Luc nay chon Fill Series.

Dung menu lenh: EDIT FILL SERIES khi o xuat hien hop thoai sau:

Series in: Rows: dong. Column: cot. Linear: d lieu au cong vi tr so bc nhay. Growth: d lieu au nhan vi tr so bc nhay. Date: ien theo dang ngay thang. Autofill: ien t ong. Day: ien theo ngay. Weekday: ien theo tuan. Trang 23

Type:

Date:

Month: ien theo thang. Year: ien theo nam.

Trend: bat hng tang giam. Step values: tr so bc nhay. Stop values: tr so ket thuc. 8. a ch o trong EXCEL 8.1 a ch tng oi Co dang: COT DONG. V du: A1, B1 ac iem: khi sao chep mot cong thc co cha loai a ch nay en vung ch th a ch nay trong cong thc cua vung ch se b thay oi. V du: o A1 co cong thc =B1+C1 khi ta sao chep A1 xuong A2 th o A2 co cong thc la =B2+C2. Co dang: $COT$DONG. V du: $A$4, $D$100. ac iem: khi sao chep mot cong thc co cha loai a ch nay en vung ch th a ch nay trong cong thc cua vung ch se khong b thay oi. V du: o A1 co cong thc =$B$1+$C$1 khi ta sao chep A1 xuong A2 th o A2 co cong thc la =$B$1+$C$1. Co dang: $COT DONG hay COT$DONG. V du: $A1, B$1 ac iem: khi sao chep mot cong thc co cha loai a ch nay en vung ch th a ch nay trong cong thc cua vung ch se thay oi phan tng oi va khong thay oi phan tuyet oi. V du: o A1 co cong thc =$B1+C$1 khi ta sao chep A1 xuong A2 th o A2 co cong thc la =$B2+C$1.

8.2 a ch tuyet oi

8.3 a ch hon hp

II. MOT SO CACH X LY TREN BANG TNH 1. Thay oi o rong cot, chieu cao dong Thay oi o rong cot: Dung mouse: bam gi keo tren ng gach ng gia 2 cot tren ten cot e thay oi o rong cot. Dung menu lenh: FORMAT COLUMN WIDTH khi o xuat hien hop thoai sau:

Trang 24

Trong o: column width chnh la o rong cua cot. Thay oi o cao cua dong: Dung mouse: bam gi keo tren ng gach ngang gia 2 dong tren ten dong e thay oi o cao dong. Dung menu lenh: FORMAT ROW HEIGHT khi o xuat hien hop thoai sau:

Trong o: row height chnh la o cao cua dong. 2. An/hien cho cot/dong 2.1 Tren cot Dung menu lenh: FORMAT COLUMN HIDE (dung e che cot). FORMAT COLUMN UNHIDE (dung e hien cot). Dung ban phm: CTRL + 0 (phm so khong) (dung e che cot). CTRL + SHIFT + 0 (dung e hien cot). Dung menu lenh: FORMAT ROW HIDE (dung e che dong). FORMAT ROW UNHIDE (dung e hien dong). Dung ban phm: CTRL + 9 (dung e che dong). CTRL + SHIFT + 9 (dung e hien dong).

2.2 Tren dong -

3. Chen them o, dong va cot trang vao bang tnh Dung menu lenh: INSERT CELL khi o xuat hien hop thoai sau:

Trang 25

Trong o: Shift cells right: chen them o va ay o hien hanh sang phai. Shift cells down: chen them o va ay o hien hanh xuong di. Entire row: chen mot dong ngay tren o hien hanh. Entire column: chen mot cot ngay ben trai o hien hanh.

4. Xoa o, dong va cot Viec xoa bo cac o, dong va cot ong ngha vi viec xoa d lieu trong no ong thi thc hien ay d lieu cua o, dong va cot lan can khac han vec xoa d lieu trong vung chon bang lenh CLEAR. Dung menu lenh: EDIT DELETE khi oxuat hien hop thoai sau:

Trong o: Shift cells left: xoa o chon va ay cac o ben phai sang trai. Shift cells up: xoa o chon va ay cac o ben di len. Entire row: xoa dong. Entire column: xoa cot

III. NH DANG, TRANG TR D LIEU 1. Khai niem Dang the hien cua d lieu la hnh thc trnh bay chung tren cac o cua bang tnh va goi chung la dang thc, bao gom: Dang the hien so (Number). Trang 26

V tr (Alignment). Kieu, kch thc ch (font, size, ).

2. Thc hien chung e trnh bay cho nhng d lieu trong mot o hay tren mot nhom o hoac cho toan bo bang tnh, ta phai thc hien nh sau: La chon khoi o. Chon menu lenh: FORMAT CELL hay dung to hp phm CTRL + 1 va ta chon mot trong cac the: NUMBER: e nh dang so. ALIGNMENT: cac nh dang cua d lieu (chieu, canh le,). FONT: thay oi kieu ch, kch thc, mau ch. BORDER: trang tr ng vien (ke khung). PATTERNS: tao cac mau mau nen cua o. PROTECTION: bao ve cac o.

3. Thay oi dang the hien so Dang the hien so la cac ma dang e the hien cac gia tr so, ngay gi trong bang tnh. Mot so khi nhap vao mot ose c trnh bay trong o phu thuoc vao 2 thanh phan: lp (category) va kieu (type). Cac lp gom: number, currency, accounting, date, time, Trong mot lp co nhieu kieu khac nhau. Kieu mac nhien la General. Thc hien: La chon o hoac khoi o can thc hien. Dung menu lenh: FORMAT CELL NUMBER. Dung to hp phm: CTRL + 1 NUMBER.

Trang 27

Trong hop thoai nay: - Chon mot trong cac kieu nh dang trong muc CATEGORY. - Chon kieu co san ben muc ben canh. - Neu can mot dang khac ta co the dung CUSTOM. - Ta co the thay dang so the hien thay oi tren khung SAMPLE. 4. Canh le d lieu trong o D lieu nhap vao mot o co the phan bo theo 3 thanh phan: Horizontal, Vertical va Orientation. V tr mac nhien cua kieu chuoi la ben trai (left), kieu so va ngay la ben phai (right). Ta co the thay oi v tr cua d lieu trong o theo y rieng. Thc hien: - Chon o canthc hien. Dung menu lenh: FORMAT CELL ALIGNMENT. Dung to hp phm: CTRL + 1 ALIGNMENT. Khi o xuat hien hop thoai nh sau:

Trang 28

Trong o: HORIZONTAL (chieu ngang) General: dang mac nhien cua d lieu. Left: canh d lieu ve ben trai. Center: canh d lieu vao gia. Right: canh d lieu ve ben phai. Fill: ien d lieu ang co trong o cho ay o. Justify: canh d lieu eu hai ben. Center across selection: canh d lieu vao gia pham vi an nh. Distributed: phan bo d lieu gia sao cho d lieu nam tren mot o. Top: canh d lieu ve pha tren. Center: canh d lieu gia (chieu doc). Bottom: canh d lieu pha di. Justify: canh d lieu eu gia canh tren va canh di. Distributed: phan bo d lieu gia sao cho d lieu nam tren mot o.

VERTICAL (chieu doc) -

ORIENTATION: trnh bay d lieu theo hng co mau nh trong khung hoac ta co the nhap mot con so vao o degrees (co the la so am hoac dng) e thay oi chieu cua d lieu trong o theo mot goc nghieng rieng. Trang 29

WRAP TEXT: bat/tat che o cuon noi dung xuong dong khi gap bien phai cua o (khac vi viec nhap d lieu nhan ALT + ENTER). SHRINK TO FIT: EXCEL se t ong thay oi kch thc d lieu cho va o neu d lieu ln hn o rong cua o. MERGE CELLS: tron cac o chon thanh mot o. 5. Thay oi FONT, SIZE Chon cac o can thay oi. Dung menu lenh: FORMAT CELL FONT. Dung to hp phm: CTRL + 1 FONT. Khi o xuat hien hop thoai nh sau:

Font: kieu ch can thay oi. Font style: dang ch (am, nghieng, am nghieng) Size: kch thc. Underline: kieu gach chan. Color: mau. Chon o can ke khung. Dung menu lenh: FORMAT CELL BORDER.

6. Ke khung o

- Dung to hp phm: CTRL + 1 BORDER. - Khi o xuat hien hop thoai nh sau: Trong o: Trang 30

Style: dang cua ng ke. Color: mau ng ke. Preset: None: khong ke khung. Outline: ke khung pha ngoai. Inside: ke khung ben trong khoi.

Border: nhan vao v tr muon ke.

Ta co the nhan vao phm mui ten cua bieu tng thanh cong cu khi o xuat hien nh sau:

tren

Luc nay chon cac ng ke thch hp e ke khung. Hoac nhan vao muc Draw borders e ke nhng o can thiet. Khi o lai xuat hien hop cac net ve, ng ke, mau cua net ve nh sau:

7. Tao mau mau nen Chon khoi (o) can tao. Dung menu lenh: FORMAT CELL PATTERN. Trang 31

Dung to hp phm: CTRL + 1 PATTERN. Khi o xuat hien hop thoai nh sau:

Color: mau nen cua o. Pattern: chon kieu soc va mau.

Trang 32

8. Bao ve d lieu Chon o muon bao ve. Dung menu lenh: FORMAT CELL PROTECTION. Dung to hp phm: CTRL + 1 PROTECTION. Khi o xuat hien hop thoai nh sau:

Locked: bat/tat khoa o (khong cho sa d lieu). Hidden: bat/tat an hien cong thc trong o (ch thay ket qua). Chu y: Viec bao ve nay ch co tac dung khi ta bao ve sheet bang TOOL PROTECTION. 8.1 Bao ve sheet Dung menu lenh TOOL PROTECTION PROTECT SHEET. Khi o xuat hien hop thoai nh sau:

Trang 33

Trong o: Protect worksheet and contents of locked cells: anh dau vao muc la chon nay th d lieu tren cac o a khoa hay an se co hieu lc. Password to unprotect sheet: nhap mat ma e sau nay co the huy che o bao mat d lieu nay. Allow all users of this worksheet to: trong muc nay ban co the cho phep ngi dung sheet nay c lam nhng g tren o. Dung menu lenh TOOL PROTECTION PROTECT WORKBOOK. Khi o xuat hien hop thoai nh sau:

8.2 Bao ve workbook

Trong o: Structure: dung e bao ve cau truc cua workbook nh cac sheet khong the di chuyen, xoa, oi ten, Windows: gi nguyen cac kch thc cua cac worksheet khi m. Password: ngan can nhng ngi khac huy che o bao ve.

8.3 Cho phep nhng ngi khac c lam tren vung chon Chu y: ieu nay ch co hieu lc khi sheet hay workbook cha c bao mat va tren may phai co nhieu ngi dung. Dung menu lenh TOOL PROTECTION ALLOW USERS TO EDIT RANGES. Khi o xuat hien hop thoai nh sau:

Trang 34

Trong o: New: tao vung muon cho phep. Modify: e chnh sa lai vung. Delete: xoa mot vung a cho phep. Permission: phan quyen cho tng user. Paste permission information into new work book : lay thong tin va lam sang mot workbook mi. Protect sheet: xem lai muc 8.1 Nhan APPLY e co hieu lc va tiep tuc tao vung mi, nhan OK e chap nhan va thoat

9. Style Style la 1 tap hp cua nhng dang the hien a liet ke tren ay nh ng vien, dang the hien so, goi chung la dang thc. Trong EXCEL co sanstyle NORMAL va no c ap dung mac nhien cho tat ca cac o. Ta co the s dung dang thc co san cua EXCEL hoac t tao rieng. Moi dang thc co mot ten goi rieng e phan biet.viec dung dang thc rat co li khi ta thng s dung mot dang thc nao o cho cac o ma khong can phai lap lai viec chon la tng thanh phan. 9.1 Tao style Dung menu lenh FORMAT STYLE, khi o xuat hien hop thoai sau:

Trong hop thoai nay: Style name: ten cua style mac nhien ang la normal. Style include: Number: kieu nh dang so. Alignment: canh le. Font: font, size. Trang 35

Border: ke khung. Patern: to nen. Protection: bao ve d lieu.

Modify: e sa lai tng thanh phan cho style co trong style name. khi o xuat hien hop thoai FORMAT CELL nh a e cap tren. Add: e bo sung mot dang thc mi. Khi o ta phai nhap ten cho style trong o style name. Sau o chon modify e chon cac kieu nh dang cho style. Delete: e xoa nhng style khong dung. Merge: e tron style t cac bang tnh khac vao bang tnh hien hanh. Khi o xuat hien hop thoai sau:

Trong hop thoai nay, chon ten tap tin bang tnh cha dang thc can sao chep roi click OK. Khi o, dang thc sao chep c bo sung tren khung style cua bang tnh hien hanh. 9.2 S dung cac style La chon o can thc hien. Dung menu lenh: FORMAT STYLE. Chon ten style trong phan style name roi click OK. 10. s dung tnh nang AUTOFORMAT Khi can thc hien viec tao nhanh dang thc (o rong cot, font, ) cho mot pham vi trong bang tnh, ta co the s dung tnh nang AUTOFORMAT cua EXCEL nh sau: Chon khoi cac o can tao. Dung menu lenh: FORMAT AUTOFORMAT. Khi o xuat hien hop thoai sau:

Trang 36

Khi o ta chon mot trong cac bieu mau co san e ap dung cho cac o a chon roi click OK. IV. TM KIEM (FIND) VA THAY THE D LIEU (REPLACE) e tm d lieu (ky t, so, cong thc,) co xuat hien trong bang tnh hay khong, ong thi co the thay the d lieu tm c bang mot thanh phan khac, cach thc hien nh sau: 1. Tm kiem Dung menu lenh EDIT FIND hay nhan to hp phm CTRL + F. khi o xuat hien hop thoai sau:

Trong hop thoai nay gom: Find what: e nhap chuoi ky t can tm. Within: pham vi tm kiem. Trang 37

Search: hng tm kiem. Look in: noi dung cua chuoi ky t can tm theo: + Formulas: cong thc. + Values: gia tr. + Comments: ghi chu.

Match case: phan biet ch hoa va ch thng. Match entire cell contents: ch tm trong cac o a chon. Format: tm kiem d lieu thoa cac nh dang. Find next: e tm kiem tiep. Find all: tm tat ca. Close: e ong hop thoai.

2. Tm va thay the Dung menu lenh EDIT REPLACE hay nhan to hp phm CTRL + H. khi o xuat hien hop thoai sau:

Trong hop thoai nay: Find what: e nhap chuoi ky t can tm. Replace with: chuoi can thay the. Within: pham vi tm kiem. Search: hng tm kiem. Look in: noi dung cua chuoi ky t can tm theo: + Formulas: cong thc. + Values: gia tr. + Comments: ghi chu. Match case: phan biet ch hoa va ch thng. Match entire cell contents: ch tm trong cac o a chon. Trang 38

Format: tm kiem d lieu thoa cac nh dang. Replace all: thay the tat ca. Replace: xac nhan thay the khi tm thay. Chc nang nay ch thc hien kiem tra t vng tieng Anh, tieng Phap, tieng Tay Ban Nha tren bang tnh. Ta co the s dung chc nang nay cua EXCEL nham phat hien cac sai xot (neu co) trong qua trnh nhap d lieu bang tieng Anh. Khi o EXCEL se kiem tra d lieu va phat hien nhng t khong co trong tap tin t ien. Chon pham vi can kiem tra. Dung menu lenh TOOL SPELLING hay nhan phm F7. Neu khong phat hien loi th EXCEL se xuat hien hop thoai sau:

V. KIEM TRA T VNG (SPELL CHECKING)

Cach thc hien nh sau:

Neu phat hien t khong co trong t ien th EXCEL se di chuyen o la chon vao o phat hien va xuat hien hop thoai sau:

Trong hop thoai nay EXCEL phat hien t sai la youu ,ta chon: Trang 39

Suggestions: e chon mot so t ma EXCEL e ngh thay. Ignore Once: bo qua va khong thay t phat hien. Ignore all: bo qua tat ca va khong thay the t phat hien. Add to dictionary: them t vao t ien. Change: e thay t sai bang t e ngh. Change all: thay the tat ca cac t trong pham vi kiem tra ma giong vi t sai bang t ma EXCEL e ngh. Autocorrect: EXCEL se t ong thay the t sai bang t e ngh va ong thi a t sai o vao trong muc AUTOCORRECT.

Trang 40

Bai 3
I. GII THIEU

HAM SO TRONG EXCEL

Ham (function) c xem nh la mot cong thc a co san nham thc hien nhng yeu cau ve tnh toan, x ly. No se cho ket qua la mot gia tr so hay chuoi ky t, hay mot gia tr ngay thang hoac logic tren o thc hien. EXCEL XP co san hn 200 ham chia thanh 9 nhom nh sau: STT 1 2 3 4 5 6 7 8 9 Ten ham Financial Date and Time Math and Trig Statistical Lookup and Reference Database Text Logical Information Ham Ham Ham Ham Ham Ham Ham Ham Ham Dien giai tai chnh ngay gi toan hoc thong ke do tm c s d lieu x ly chuoi luan ly thong tin

II. DANG THC TONG QUAT CUA HAM Ham trong EXCEL co dang tong quat nh sau: = ten ham ([oi so 1]; [oi so 2]; ; [oi so n]) . Trong o: Ten ham: do EXCEL at ra. oi so: co the co hoac co the khong tuy theo ham. Phan ln cac ham trong EXCEL eu co oi so.

Chu y: Ham luon c bat au bi dau =, tr trng hp ham nay c dung lam oi so cho ham khac. Ten ham khong phan biet ch hoa hay ch thng. Sau ten ham la cac oi so va phai c at trong cap ngoac n (), gia cac oi so c phan cach bi dau phay (,) hoac cham phay (;) ieu nay tuy thuoc vao thiet lap trong muc Regional. Neu khong co oi so th van phai co cap ngoac. V du: =now() =day(now()) =sum(a1:a10) Cac oi so s dung trong cac ham neu la toa o o vi a ch tng oi se b thay oi moi khi dung lenh sao chep hay di chuyen, con neu la a ch tuyet oi th khong thay oi.

III. CACH NHAP HAM VAO TRONG BANG TNH EXCEL 1. Nhap t ban phm Trang 41

Di chuyen en o can nhap cong thc. Nhap dau =. Nhap ten ham va cac oi so. Di chuyen en o can nhap cong thc. Dung menu lenh INSERT FUNCTION hay nhan vao phm mui ten cua bieu tng tren thanh cong cu roi chon more function khi o xuat hien hop thoai sau:

2. Nhap ham t trong bang liet ke ham

Trong hop thoai nay gom: Search for a function: dung e tm kiem mot ham. Select a category: chon nhom ham can thc hien. Sau khi chon mot ten nhom th EXCEL se hien th danh sach cac ham co trong nhom. Select a function: chon ten ham can thc hien. Cancel: e ngng khong lam na. OK: e chap nhan ham a chon. Khi o xuat hien hop thoai nh sau:

Trang 42

Trong hop thoai nay, tuy theo ham co nhieu hay t oi so, sau khi nhap cac oi so ta nhan OK. Neu muonco s giup cua EXCEL ve ham ang lam nhan vao hyperlink help on this function. IV. CHI TIET MOT SO HAM THONG DUNG 1. Nhom ham toan hoc: 1.1 Ham ABS Cu phap: =ABS(so) Y ngha: tra ve tr tuyet oi cua mot so. V du: =ABS(-10) 4 ket qua cua cong thc nay la: 6 Cu phap: =INT(so) Y ngha: tra ve phan nguyen cua mot so. V du: =INT(ABS(10,2)) ket qua cua cong thc nay la: 10

1.2 Ham INT

1.3 Ham MOD Cu phap: =MOD(so ; so chia) Y ngha: lay phan d cua so chia cho so chia. V du: =MOD(5;2) ket qua cua cong thc nay la: 1

1.4 Ham ROUND Cu phap: =ROUND(so ; so lam tron) Y ngha: lam tron so. V du: =ROUND(10,45;1) 10,5 Cu phap: =SQRT(so) Y ngha: tra ve can bac hai cua mot so. V du: =SQRT(16) ket qua cua cong thc nay la: 4 Trang 43 ket qua cua cong thc nay la:

1.5 Ham SQRT -

1.6 Ham POWER Cu phap: =POWER(so ; so luy tha) Y ngha: tra ve luy tha cua so. V du: =POWER(10;2) ket qua cua cong thc nay la: 100 Cu phap: =SUM(so 1 ; so 2 ; ; so n) Y ngha: tra ve tong cua cac so. V du: d lieu trong cac o B1, B2, B3 lan lt la 5, 6 7 =SUM(B1:B3 ; 2 ; 10 ; 50) 1.8 Ham SUMIF Cu phap: =SUMIF(vung ch nh ; ieu kien ; vung tnh tong) Y ngha: tra ve tong cua cac o trong vung tnh tong tng ng vung ch nh neu thoa ieu kien. V du: 1 2 A MOUSE 4 B CDROM 36 C MONITOR 100 D MOUSE 4 ket qua cua cong thc nay la: 80

1.7 Ham SUM

=SUMIF(A1:D1 ; MOUSE ; A2:D2) nay la: 8 = SUMIF(A2:D2 ; >10 ; A2:D2) nay la: 136 1.9 Ham PRODUCT -

ket qua cua cong thc ket qua cua cong thc

Cu phap: =PRODUCT(so 1 ; so 2 ; so n) Y ngha: tra ve tch cua cac so. V du: =PRODUCT(A2:D2) la: 57600 ket qua cua cong thc nay

1.10 Ham SUMPRODUCT Cu phap: =SUMPRODUCT(day 1 ; day 2 ; ; day n) Y ngha: tra ve tong cua cac tch V du: =SUMPRODUCT(A2:B2;C2:D2) ket qua cua cong thc nay la: 544 Cu phap: =AVERAGE( so 1 ; so 2 ; so n) Y ngha: tra ve trung bnh cua cac so. V du: =AVERAGE(A2;D2) ket qua cua cong thc nay la: 36

1.11 Ham AVERAGE -

1.12 Ham RADIANS Trang 44

Cu phap: =RADIANS(o) Y ngha: oi t o sang radian. V du: =RADIANS(60) la: 1,047197551 Cu phap: =DEGREES(so) Y ngha: oi t radian sang o. V du: =DEGREES(0,523598776) ket qua cua cong thc nay la: 30 Cu phap: =COS(so) Y ngha: tra ve cosine cua mot so. V du: =COS(RADIANS(60)) 0,5 Cu phap: =SIN(so) Y ngha: tra ve sine cua mot so. V du: =SIN(RADIANS(30)) 0,5 Cu phap: =TAN(so) Y ngha: tra ve tangent cua mot so. V du: =TAN(RADIANS(45)) ket qua cua cong thc nay la: 1 ket qua cua cong thc nay la: ket qua cua cong thc nay la: ket qua cua cong thc nay

1.13 Ham DEGREES -

1.14 Ham COS -

1.14 Ham SIN -

1.15 Ham TAN -

1.16 Ham EVEN Cu phap: =EVEN(so) Y ngha: lam tron len en so nguyen chan gan nhat. V du: =EVEN(1,05) ket qua cua cong thc nay la: 2

1.17 Ham ODD Cu phap: =ODD(so) Y ngha: lam tron len en so nguyen le gan nhat. V du: =ODD(0,1) Cu phap: =EXP(so) Y ngha: tnh mu n cua c so e Cu phap: =LN(so) Y ngha: tra ve logarithm nepe cua mot so Trang 45 ket qua cua cong thc nay la: 1

1.18 Ham EXP

1.19 Ham LN

V du: =LN(EXP(3)) Cu phap: =FACT(so)

ket qua cua cong thc nay la: 3

1.20 Ham FACT Y ngha: tnh giai tha cua mot so. V du: =FACT(5) la: 120 ket qua cua cong thc nay

1.21 Ham VALUE Cu phap: =VALUE(chuoi so) Y ngha: oi chuoi so thanh gia tr so. V du: =VALUE(123) la: 123 ket qua cua cong thc nay

1.22 Ham SUBTOTAL Cu phap: =SUBTOTAL(phng thc tnh ; pham vi) Y ngha: tnh tr tong hp trong mot day so. Phng thc tnh c the hien bang sau: Phng thc tnh 1 2 3 4 5 6 9 2.1 Ham DAYS360 Cu phap: =DAYS360(ngay bat au ; ngay ket thuc) Y ngha: tra ve so gia 2 ngay ch ra tren c s tnh 1 nam co 360 ngay. V du: =DAYS360(1/1/2002 ; 1/2/2002) ket qua la 30 ngay. Cu phap: =DATE(nam ; thang ; ngay) Y ngha: oi gia tr nam, thang, ngay thanh dang ngay thang. V du: =DATE(2002;10;30) ket qua cua cong thc nay la: 30/10/2002 Cu phap: =TIME(gi ; phut ; giay) Trang 46 Cach tnh AVERAGE COUNT COUNTA MAX MIN PRODUCT SUM

2. Nhom ham ve ngay va gi.

2.2 Ham DATE

2.3 Ham TIME -

Y ngha: oi gia tr gi, phut, giay thanh dang gi phut tng ng. V du: =TIME(13;10;10) la: 1:10 CH ket qua cua cong thc nay

2.4 Ham HOUR Cu phap: =HOUR(chuoi so dang gi) Y ngha: lay gi cua chuoi so. V du: =HOUR(13:10:15) ket qua cua cong thc nay la: 13 Cu phap: =MINUTE(chuoi dang gi) Y ngha: tra ve gia tr phut cua chuoi. V du: =MINUTE(13:10:15) la: 10 ket qua cua cong thc nay

2.5 Ham MINUTE

2.6 Ham SECOND Cu phap: =SECOND(chuoi dang gi) Y ngha: tra ve gia tr giay cua chuoi. V du: =SECOND(13:10:15) la: 15 Cu phap: =NOW() Y ngha: tra ve gia tr ngay gi cua he thong hien tai. V du: =NOW() Cu phap: =TODAY() Y ngha: tra ve ngay thang hien tai. V du: =TODAY() Cu phap: =DAY(chuoi ngay thang nam) Y ngha: tra ve gia tr ngay cua chuoi. V du: =DAY(NOW()) cho ra ngay hien tai cua he thong. Cu phap: =MONTH(chuoi ngay thang nam) Y ngha: tra ve gia tr thang cua chuoi. V du: =MONTH(NOW()) thong. cho ra thang hien tai cua he ket qua cua cong thc nay

2.7 Ham NOW -

2.8 Ham TODAY

2.9 Ham DAY

2.10 Ham MONTH

2.11 Ham YEAR Cu phap: =YEAR(chuoi ngay thang nam) Trang 47

Y ngha: tra ve gia tr nam cua chuoi. V du: =YEAR(NOW()) tra ve nam hien tai cua he thong.

3. Nhom ham x ly chuoi 3.1 Ham CHAR Cu phap: =CHAR(so) Y ngha: tra ve ky t co ma ASCII tng ng. V du: =CHAR(65) ket qua cua cong thc nay la: A

3.2 Ham EXACT Cu phap: =EXACT(chuoi 1 ; chuoi 2) Y ngha: so sanh hai chuoi, neu 2 chuoi giong nhau cho ket qua TRUE, ngc lai cho ket qua FALSE. V du: =EXACT(Hoang; Hoang Van) FALSE

3.3 Ham FIND Cu phap: =FIND(chuoi 1 ; chuoi 2 ; v tr bat au) Y ngha: tra ve v tr bat au cua chuoi 1 trong chuoi 2 V du: =FIND(EXCEL ; MICROSOFT EXCEL;1) 11 Cu phap: =LEFT(chuoi ; so) Y ngha: tra ve chuoi con cua chuoi c trch t trai sang phai mot so ky t. V du: =LEFT(microsoft office; 9) nay la: microsoft ket qua cua cong thc

3.4 Ham LEFT

3.5 Ham RIGHT Cu phap: =RIGHT(chuoi ; so) Y ngha: tra ve chuoi con cua chuoi c trch t phai sang trai mot so ky t. V du: =RIGHT(microsoft office; 6) ket qua cua cong thc nay la: office. Cu phap: =MID(chuoi ; so 1 ; so 2) Y ngha: tra ve chuoi con cua chuoi c lay t so 1 va lien tiep lay so 2 ky t. V du: =MID(microsoft office;6;4) nay la: soft Cu phap: =UPPER(chuoi) Y ngha: tra ve chuoi a c oi sang dang ch in hoa. ket qua cua cong thc

3.6 Ham MID -

3.7 Ham UPPER -

Trang 48

V du: =UPPER(office) OFFICE

ket qua cua cong thc nay la:

3.8 Ham LOWER Cu phap: =LOWER(chuoi) Y ngha: tra ve chuoi a c oi sang dang ch thng. V du: =LOWER(Ms oFFice) ket qua cua cong thc nay la: ms office Cu phap: =PROPER(chuoi) Y ngha: ham tra ve chuoi trong o ky t au cua moi t a c oi sang ch in hoa. V du: =PROPER(nguyen van a) Nguyen Van A Cu phap: =TRIM(chuoi) Y ngha: tra ve chuoi trong o cac ky t trang au va cuoi a b cat bo. V du: =TRIM( EXCEL ) EXCEL

3.9 Ham PROPER -

3.10 Ham TRIM

3.11 Ham LEN Cu phap: =LEN(chuoi) Y ngha: tra ve chieu dai cua chuoi. V du: =LEN(EXCEL) tra ve so 5.

4. Nhom ham thong ke 4.1 Ham COUNT Cu phap: =COUNT(gia tr 1 ; gia tr 2; ; gia tr n) Y ngha: tra ve so phan t kieu so co mat trong caci5. V du: =COUNT(1;10;21;"ab") tra ve 3.

4.2 Ham COUNTA Cu phap: =COUNTA(gia tr 1 ; gia tr 2 ; ; gia tr n) Y ngha: tra ve so phan t khac rong coa mat trong cac gia tri&. V du: =COUNTA(1;10;21;"ab") tra ve 4.

4.3 Ham COUNTBLANK Cu phap: =COUNTBLANK(pham vi) Y ngha: tra ve so phan t rong co trong pham vi. Cu phap: =COUNTIF(khoi d lieu ; ieu kien) Y ngha: tra ve so phan t thoa ieu kien. Trang 49

4.4 Ham COUNTIF

V du: gia s trong cac o B1, B2, B3 co d lieu lan lt la 1, 2, 3 =COUNTIF(B1:B3 ; >1) tra ve 2.

4.5 Ham MAX Cu phap: =MAX(so 1 ; so 2 ; ; so n) Y ngha: tra va gia tr ln nhat trong cac so. V du: =MAX(1;0;7;5;8) tra ve 8.

4.6 Ham MIN Cu phap: =MIN(so 1 ; so 2 ; ; so n) Y ngha: tra va gia tr nho nhat trong cac so. V du: =MIN(1;0;7;5;8) tra ve 0.

5. Nhom ham logic 5.1 Ham AND Cu phap: =AND(bieu thc 1 ; bieu thc 2 ; ; bieu thc n) Y ngha: tra ve TRUE neu tat ca cac bieu thc ung, FALSE neu co mot bieu thc sai. Cu phap: =OR(bieu thc 1 ; bieu thc 2 ; ; bieu thc n) Y ngha: tra ve FALSE neu tat ca cac bieu thc sai, TRUE neu co mot bieu thc ung. Cu phap: =NOT(bieu thc logic) Y ngha: tra ve gia tr phu nh cua bieu thc logic. Cu phap: =IF(bieu thc logic ; gia tr 1 ; gia tr 2) Y ngha: neu bieu thc logic ung th lay gia tr 1, neu sai lay gia tr 2.

5.2 Ham OR -

5.3 Ham NOT -

5.4 Ham IF

6. Nhom ham tm kiem, tham chieu 6.1 Ham COLUMN Cu phap: =COLUMN(pham vi) Y ngha: tra ve so th t cua cot au tien trong pham vi. V du: =COLUMN(AA1:AZ1) tra ve 27. Cu phap: =COLUMNS(pham vi) Y ngha: tra ve so cot co trong pham vi. Trang 50

6.2 Ham COLUMNS

V du: =COLUMN(A1:H9)

tra ve 8.

6.3 Ham ROW Cu phap: =ROW(pham vi) Y ngha: tra ve so th t cua dong au tien trong pham vi. V du: =ROW(X1:Y4) tra ve 1.

6.4 Ham ROWS Cu phap: =ROWS(pham vi) Y ngha: tra ve so dong co trong pham vi. V du: =ROWS(A1:C100) tra ve 100.

6.5 Ham MATCH Cu phap: =MATCH(chuoi ; khoi a ch ; kieu tm) Y ngha: tm chuoi co trong khoi a ch hay khong? Neu tm thay th tra ve v tr cua chuoi trong khoi a ch. Kieu tm co the la: -1: tm theo th t giam (khoi a ch a sap xep giam) 0: tm theo th t bat ky (khoi a ch khong theo th t) 1: tm theo th t tang (khoi a ch sap xep tang) Cu phap: =HLOOKUP(gia tr; khoi a ch; so; [day tm]) Y ngha: tm kiem tren dong au tien cua khoi xem gia tr co trong dong au tien cua khoi hay khong. Neu co ham cho gia tr tren cung cot o nhng dong ch nh so. Neu khong ham cho gia tr #N/A. Cu phap: =VLOOKUP(gia tr; khoi a ch; so; [day tm]) Y ngha: tm kiem tren cot au tien cua khoi xem gia tr co trong cot au tien cua khoi hay khong. Neu co ham cho gia tr tren cung dong o nhng cot ch nh so. Neu khong ham cho gia tr #N/A. Cu phap: =ISNA(gia tr) Y ngha: tra ve TRUE neu gia tr la #N/A, ngc lai tra ve FALSE neu gia tr khong phai la #N/A.

6.6 Ham HLOOKUP

6.7 Ham VLOOKUP -

6.8 Ham ISNA -

Trang 51

7. Nhom ham ve c s d lieu (DATABASE) 7.1 Ham DSUM Cu phap: =DSUM(vung CSDL ; cot tnh tong ; vung ieu kien) Y ngha: tnh tong tren 1 vung cua CSDL tai nhng mau tin thoa ieu kien. V du: e tnh lng cua nhng ngi co so ngay cong >=25 va <=27 =DSUM(C4:F11;F4;H4:I5) 7.2 Ham DMAX Cu phap: =DMAX(vung CSDL ; cot can tm gia tr ln nhat; vung ieu kien) Y ngha: tra ve gia tr ln nhat tai nhng mau tin thoa ieu kien. Cu phap: =DMIN(vung CSDL ; cot can tm gia tr nho nhat; vung ieu kien) Y ngha: tra ve gia tr nho nhat cua nhng mau tin thoa ieu kien. Cu phap: =DCOUNT(vung CSDL ; cot can em ; vung ieu kien) Y ngha: em so phan t kieu so cua cac mau tin tren vung CSDL thoa vung ieu kien. Cu phap: =DCOUNTA(vung CSDL ; cot can em; vung ieu kien) Y ngha: em so phan t khac rong cua cac mau tintren vung CSDL tho vung ieu kien. Cu phap: =DAVERAGE(vung CSDL ; cot tnh tb ; vung ieu kien) Y ngha: tnh gia tr trung bnh cua cac mau tin tho ieu kien. Cu phap: =DPRODUCT(vung CSDL ; cot tnh tch ; vung ieu kien) Y ngha: tra ve gia tr la tch cua cac mau tin thoa ieu kien. Trang 52

7.3 Ham DMIN -

7.4 Ham DCOUNT -

7.5 Ham DCOUNTA -

7.6 Ham DAVERAGE -

7.7 Ham DPRODUCT -

Bai 4

C S D LIEU

I. KHAI NIEM, TAO VA S DUNG CSDL 1. Khai niem CSDL tren bang tnh EXCEL la mot chc nang, cong cu e to chc quan ly, tm kiem, loc va trch ghi thong tin. CSDL uc tao ra t mot phan cua bang tnh, gom nhieu dong va nhieu cot. Moi dong bieu dien mot oi tng goi la record. Moi cot bieu dien mot thuoc tnh cua oi tng goi la field. 2. Cach tao mot CSDL Dong au tien cua CSDL cha cac ten field va phai la d lieu dang chuoi ky t (khong c dung so, cong thc, toa o, a ch o, ), khong c trung lap. T dong th 2 nhap noi dung. D lieu ghi trong vung CSDL (tr dong au) co the la chuoi ky t, so, cong thc, d lieu loai ngay thang nhng tat ca d lieu tren cung mot field phai ong nhat.

Ta cung co the tan dung mot phan cua bang tnh co san vi mot so cac dong va cac cot va sau o ieu chnh lai e cho chung tr thanh CSDL nh a e cap tren. 3. Muc ch Muc ch dung CSDL e: Sap xep so lieu. Tm kiem so lieu thoa mot ieu ka(n nao o. Trch ghi so lieu. Tong hp so lieu theo tng nhom.

II. SAP XEP VA LOC CAC RECORD 1. Sap xep Trong EXCEL, ta co the sap xep d lieu trong mot pham vi c chon oc lap vi cac o ngoai pham vi la chon, thc hien nh sau: Chon khoi cac o co lien quan vi nhau e sap xep. Dung menu lenh DATA SORT khi o xuat hien hop thoai sau:

Trang 53

Trong hop thoai nay gom: Sort by: e chon field chnh can sap xep Then by: chon them field khac khi field chnh b trung. Then by: neu van trung lap th chon them field th 3. Ascending: sap xep theo chieu tang. Descending: sap xep theo chieu giam. Header row: neu khong muon sap xep dong tieu e. No header row: neu muon sap xep dong tieu e.

2. Loc cac record Trong mot CSDL, viec sap xep nh tren thc hien cho tat ca cac record. Trong mot so trng hp ta muon loc ra e quan sat mot so record theo mot o u tien nao o, cach lam nh sau: - Chon khoi cac record cua CSDL. - Dung menu lenh DATA FILTER AUTOFILTER. Khi o xuat hien cac mui ten tai ben canh cua cac ten field. - Khi ta nhan vao mui ten th co cac muc: All: c chon khi cha loc hoac khi ang loc ma muon tr ve bnh thng. Top 10: e loc 10 item ng au khi o xuat hien hop thoai:

Trang 54

Custom: khi o xuat hien hop thoai:

Trong hop thoai nay ta mo ta ieu kien va co the chon cac toan t tng ng. Blank: loc cac record rong. Nonblanks: loc cac record khong rong. Khi khong muon loc na chon DATA FILTER tat AUTOFILTER. III. KHAI THAC CSDL Tren 1 CSDL trong bang tnh EXCEL, ngoai viec sap xep ta con co nhu cau tm kiem, xoa, sao chep nhng record thoa mot ieu kien nao o e thc hien cac nhu cau nay, ngoai vung CSDL ra ta can phai co nhng vung sau: 1. Vung ieu kien o la vung cha cac ieu kien e tm kiem, xoa, sao chep. Vung nay do chung ta tao ra tren bang tnh bat ky cho nao (thong thng tao ngay ben CSDL e cho tien viec quan sat) va phai co t nhat 2 dong: dong au: cha ten field (phai chnh xac vi ten cua field trong vumg CSDL). Dong con lai: cha cac ieu kien theo nhu cau can tnh toan. 2. Vung sao chep o la vung e sao chep cac loai d lieu t cac record cua vung CSDL thoa ieu kien mo ta vung ieu kien. Vung nay do chung ta tao ra tren bang tnh theo nguyen tac sau: so field tren vung sao chep phai bang vi so field tren vung CSDL. Neu so record tren vung sao chep nho hn so record thoa ieu kien th vung sao chep ch hien th en ti v tr cuoi cua vung. VD: sau khi EXCEL tm c 5 records thoa ieu kien nhng vung sao chep ch cha c 4 records vung sao chep nay ch hien th c 4 records. (mat record th 5) 3. Thc hien tm va sao chep cac record thoa ieu kien

Trang 55

Sau khi a to chc cac vung cua CSDL: vung ieu kien, vung sao chep ta dung menu lenh: DATA FITLTER ADVANCED FILTER. Khi o xuat hien hop thoai sau:

Trong hop thoai nay: - Filter the list, in-place: loc danh sach va e ngay trong vung CSDL. - Copy to another location : neu muon sao chep cac record thoa ieu kien sang vung khac. - List range: xac nh vung CSDL. - Criteria range: xac nh vung ieu kien. - Copy to: xac nh vung sao chep. - Unique records only: ch lay 1 record duy nhat neu nh co s trung lap. Trng hp khi chon muc Filter the list, in-place neu muon hien th lai bnh thng dung menu lenh: DATA FILTER SHOW ALL. IV. TONG HP SO LIEU THEO NHOM Vi 1 CSDL, ta thng co nhu cau tong hp so lieu theo nhom, v du co mot CSDL theo doi tnh hnh ban hang vi cac filed nh sau: NGAYBAN, TENHH, SOLUONG, DONGIA, THANHTIEN trong o TENHH co the lap lai nhieu lan khi o co nhu cau: Tong hp SOLUONG, THANHTIEN a ban theo tng hang hoa. Tong hp SOLUONG, THANHTIEN a ban theo tng ngay.

Dung menu lenh DATA SUBTOTAL khi o xuat hien hop thoai sau:

Trang 56

Trong hop thoai nay: - At each change: ten field lam nhom tong hp. - Use function: chon ten ham e tong hp so lieu. - Add subtotal to: chon ten field can tnh. - Replace current subtotals: thay ket qua mi cho ket qua cu. - Page break between groups: hien dau phan trang cho moi nhom. - Summary below data: hien ket qua di d lieu chi tiet. (neu tat se hien tren. - Remove all: tr ve trang thai ban au cua CSDL. Sau khi nhan OK, se nhan c ket qua mi ngay tren vung CSDL. Ben trai bang tnh co 3 soc dai va tren o co 3 con so: , ma khi ta nhan vao se thay oi cach dien ta so lieu: : tong hp chung cho tat ca. : tong hp theo tng nhom. : tong hp chi tiet.

Trang 57

Bai 5

IN AN VA VE BIEU O

I. IN BANG TNH HIEN HANH 1. Xem trc khi in Trc khi thc viec in bang tnh ra giay, ta nen kiem tra lai tren man hnh e tranh nhng sai xot. Cach thc hien: Dung menu lenh FILE PRINT PREVIEW. Tren man hnh cua PRINT PREVIEW gom: Next: xem cac trang ke tiep. Previous: xem lai trang trc. Zoom: phong to/thu nho trang in e xem. Print: thc hien lenh in ra giay. Setup: vao hop thoai page setup. Margin: e ieu chnh le va o rong cua cac cot. Page break preview: xem dau phan cach trang. Close: ong man hnh PRINT PREVIEW. Help: giup .

2. Thiet lap thong so in Dung menu lenh FILE PAGE SETUP khi o xuat hien hop thoai sau:

Trong hop thoai nay: Trang 58

Trong phan Page: Orientation: hng in. Scaling: t le in. Page size: c giay. Print quality: chat lng in. First page number: so trang bat au.

Trong phan Margin: se xuat hien hop thoai nh sau:

Top: le tren. Bottom: le di. Left: le trai. Right: le phai. Header: au trang. Footer: chan trang. Center on page: canh trang in gia: + Horizontal: theo chieu ngang. + Vertical: theo chieu doc.

Phan Header/footter co hop thoai sau:

Trang 59

Header: tieu e au trang. Footer: tieu e chan trang. Custom header: e xac nh tieu e au trang theo y rieng. Khi o xuat hien hop thoai sau:

+ Left section: noi dung nam ben trai. + Center section: noi dung nam gia. + Right section: noi dung nam ben phai.

Trang 60

Custom footer: e xac nh tieu e au trang theo y rieng. Khi o xuat hien hop thoai tng t hop thoai custom header.

Bieu tng

Y ngha nh dang font, size, mau, Chen so th t trang (ma &[Page]) Chen tong so trang (ma &Pages]) Chen ngay thang (ma &[Date]) Chen gi (ma &[Time]) Chen ng dan en workbook (ma &[Path]&[File]) Chen ten tap tin (ma &[File]) Chen ten sheet (ma &[Tab]) Chen hnh anh (ma &[Picture]) nh dang lai hnh

Phan Sheet co hop thoai sau:

Trang 61

Trong hop thoai nay: Print area: e chon vung muon in. Rows to repeat at top: in lai tieu e dong cua moi trang. Columns to repeat at left: in lai tieu e cot cua moi trang. Gridlines: bat/tat in ng ke o. Black and white: in trang en. Draft quality: in nhanh (tho). Row and column headings: in ten cot dong. Down, then over: in t tren xuong, qua phai. Across, then down:in t trai sang phai, xuong di.

II. VE BIEU O Trong EXCEL ta co the de cac bieu o, o th da vao cac so lieu ang co tren bang tnh va co the lu bieu o tran cung bang tnh hien hanh. 1. Gii thieu chung EXCEL co tat ca 14 nhom o th khac nhau, ng vi moi loai ta co the chon mot trong nhng dang khac co san 2. Cach tao bieu o Dung menu lenh INSERT CHART khi o xuat hien hop thoai sau:

Trang 62

Trong hop thoai nay EXCEL a ra 14 nhom o th khac nhau. Sau khi chon mot loai, click NEXT e tiep tuc va xuat hien hop thoai ke tiep.

Trong o: - DATA RANGE: vung d lieu muon ve bieu o. Trang 63

SERIES IN: + ROWS: dong. + COLUMNS: cot. Click NEXT e tiep tuc khi o xuat hien hop thoai sau:

Trong phan TITLE: Chart title: tieu e cua bieu o. Value (X) axis: tieu e truc X. Value (Y) axis: tieu e truc Y. Trong phan AXES:

Value (X) axis: bat/tat tieu e truc X. Value (Y) axis: bat/tat tieu e truc Y. Trong muc GRIDLINES: Trang 64

Value (X) axis: Major gridlines: bat/tat ng ke chnh. Minor gidlines: bat/tat ng ke phu. Value (Y) axis: Major gridlines: bat/tat ng ke chnh.

Minor gidlines: bat/tat ng ke phu. Trong muc LEGEND:

Show legend: bat/tat ghi chu. Bottom: ghi chu nam di. Corner: ghi chu nam goc. Top: ghi chu nam tren. Right: ghi chu nam ben phai. Left: ghi chu nam ben trai.

Trong muc DATA LABEL:

Trang 65

Series name: hien th d lieu tren cot c chon. X value: hien th gia tr cua X tren truc X. Y value: hien th gia tr cua Y tren truc Y. Separator: chon dau phan cach gia gia tr cua X va Y. Click NEXT e tiep tuc va xuat hien hop thoai sau:

As new sheet: tao ra mot sheet mi cha o th vi ten chart2 As object in: tao ra o th la mot oi tng va c cha trong sheet1. Click FINISH e tao o th.

3. Chnh sa lai bieu o Viec sai xot trong qua trnh tao bieu o hay sau khi tao ma ta lai khong thch la khong the tranh khoi do o ta can phai ieu chnh lai mot so sao cho trong bieu o ep mat, de nhn hn. e c nh vay chung ta can mot so thao tac hieu chnh bang nhng cong cu ma EXCEL cung cap cho chung ta. Cac lam nh sau: 3.1 Thay oi kieu bieu o Nhan chon bieu o. Vao menu lenh CHART CHART TYPE

Trang 66

Chon kieu bieu o muon thay roi nhan OK. 3.2 Thay oi vung d lieu Nhan chon bieu o. Vao menu lenh CHART SOURCE DATA.

Chon lai vung d lieu ma ta muon ve lai roi nhan OK. 3.3 Thay oi nhan, truc, ng ke, chu thch Nhan chon bieu o. Vao menu lenh CHART CHART OPTION Trang 67

Ta la chon tng muc va thay oi theo ung cac muc trong vung d lieu. Khi a hieu chnh xong nhan OK. 3.4 Thay oi v tr cua bieu o

Chon v tr mi e at bieu o. Co the at tren mot sheet mi (A new sheet) hay trong mot sheet khac (As object in). Nhan OK e chap nhan. 3.5 Thay oi font, size, mau cho cac oi tng Ban van co the nh dang lai cac oi tng a tao san ben trong bieu o nh chuoi, so, nen cua bieu o bang cac bc sau: Nhap up (double click) vao bieu tng muon hieu chnh khi o tuy thuoc vao oi tng ma se xuat hien tng hop thoai khac nhau. Double click vao nen cua bieu o xuat hien hop thoai sau:

Trang 68

Luc nay ta co the thay oi mau nen ng ke khung, trong the pattern. Font, size, mau ch, trong the Font. Cac thuoc tnh trong the properties. Nhan OK e chap nhan.

Trang 69

MUC LUC
Bai 1 GII THIEU VA CAC KHAI NIEM CAN BAN.............1 I. GII THIEU VE BANG TNH EXCEL ......................................................1 II. CAC KHAI NIEM C BAN.....................................................................2 III. CAC THAO TAC C BAN TREN TAP TIN BANG TNH 14 IV. CAC THAO TAC KHI LAM VIEC VI CA SO BANG TNH 16 Bai 2 NH DANG VA X LY 20 I. THAO TAC TREN O VA TREN VUNG CHON 20 II. MOT SO CACH X LY TREN BANG TNH 24 III. NH DANG, TRANG TR D LIEU 26 IV. TM KIEM (FIND) VA THAY THE D LIEU (REPLACE) 37 V. KIEM TRA T VNG (SPELL CHECKING) 39 Bai 3 HAM SO TRONG EXCEL 41 I. GII THIEU 41 II. DANG THC TONG QUAT CUA HAM 41 III. CACH NHAP HAM VAO TRONG BANG TNH EXCEL 41 IV. CHI TIET MOT SO HAM THONG DUNG 43 Bai 4 C S D LIEU 53 I. KHAI NIEM, TAO VA S DUNG CSDL 53 II. SAP XEP VA LOC CAC RECORD 53 III. KHAI THAC CSDL 55 IV. TONG HP SO LIEU THEO NHOM 56 Bai 5 IN AN VA VE BIEU O 58 I. IN BANG TNH HIEN HANH 58 II. VE BIEU O 62

Trang 70