lch chun ca mt tp hp theo mu, b d liu trong mt
ct ca ma m d liu, theo mu kic ch nh.
: = DPRODUCT(database, field, criteria)
trong mt ct ca ma m d liu, theo mu kin
c ch nh.
m s ng trong b
c mng: {=SUM(IF(ISBLANK(range), 1, 0))} v liu cn kim tra.
m s a nh u s
c mng: {=SUM(IF(ISNUMBER(range), 0, 1))} v liu cn kim
tra.
m s li
c mng: {=SUM(IF(ISERROR(range), 1, 0))} v liu cn kim tra.
g. HÀM XỬ LÝ VĂN BẢN VÀ DỮ LIỆU
Bao g m, thay th, chuyi chu
bn trong Excel.
double- single-byte cho nh s dng b
double-byte.
: = ASC(text)
hoc tham chin ma ch. Na bt k mu t
thuc loi double- c chuyi.
: = ASC("Excel") = Excel
=CHAR Chuyn s
p
=CODE Tr v c
i nhiu chui li vi nhau
c: =CONCATENATE(text1,text2, )
: =CONCATENATE("Gi- tuyt vi ca b
- tuyt vi ca bn
=DOLLAR Chuynh dng s n t
i vi nhau.
c: =EXACT(text1,text2)
t ch hoa.
Nu 2 chui text1, text2 gi tr v TRUE; n tr v tr
FALSE
:
=EXACT("Gi
=EXACT("Gi
=FIXED Chuyn mt s nh dn
t n X
t chui
=LOWER Chuy ng.
=PROPER Chuy u mi t hoa
t mt chui con (substring) t mt chui
c: =MID(text, start_num, num_chars])=MID(X, m, n)
trong chui X bu t v m.
text: chun ct
start_num: v
num_chars: s ca chui con c
- num_chars ph
- start_num ph
- Nu start_num l ca chut qu tr v s i rng
:
thay th mt phn ca chui bng mt chu c
ch nh
c: =REPLACE(old_text, start_num, num_chars, new_text)
old_text: chun cc x
start_num: v thay th
num_chars: s ca chui cc thay th
new_text: chun s thay th cho s n bhars
c bc bu
t
- B nh v u (start_num)
- nh s ca chui s c thay th (num_chars)
: thay s 2007 b
Vi A1 = Expense Budget for 2007
t phi ca mt chui mt hoc nhi
ch nh ca bn
c: =RIGHT(text [,num_chars])=RIGHT(X,n)
t i sang cn X
text: chun c
num_chars: s ci ca chui text, m
- num_chars ph
- Nu num_chars l a chut qu tr v s chui text
:
=REPT Lp li mt chui
=SUBSTITUTE Thay th mt chunh
u ca mt chui con (substring) trong mt chui
c:
=FIND(find_text, within_text [, start_num])
=SEARCH(find_text, within_text [, start_num])
find_text: chun ci con)
within_text: chun cha chui ci m)
start_num: v i within_text (m
Mt s
- Kt qu ct con s, ch v start_num) ca find_text
trong within_text
- t chui bt k. : SEARCH("e", "Expenses") s cho kt qu
- t chut ch hoa, ch ng. :
FIND("e", "Expenses") s cho kt qu
- N i #VALUE
- i di
- Vu mu * ho
~?)
=TEXT Chuyn mt s sang text.
ng: Tr v mt chui nu tr tham chic li, s tr v chui rng - Kim
tra d liu kiu text
c: =T(value)
thay th mt chung mt chu
s d
c: =SUBSTITUTE(text, old_text, new_text [,instance_num])
text: chun gc, cc x
old_text: chun cc thay th
new_text: chun s thay th
instance_num: s ln thay th old_text bng new_text, nu b t c c
s c thay th bng new_text
: thay s 2007 b
=SUBSTITUTE("Expense Budget for 2007", "2
CHUNG CHU
m mt s
ng
SUBSTITUTE.
tri.
=UPPER Chuy
i mt chui din cho mt s u s
c: =VALUE(text)
text phnh dng sc bt k mt th
nhn.
Nu 2 chui text1, text2 gi tr v TRUE; n tr v tr
FALSE
:
6500 trong SQA6500, b
=RIGHT("
t qu c s dng text, b ng tr
vc.
i "6500", bn phng s:
y gi b cng tr
t h ng Anh, b m)
ng khong tra h
n h.
ly phc sau (gi s h m cell A2):
=LEFT(A2, FIND(" ", A2) - 1)
tr t
th 5,
FT() s (= 5-1).
ly phn h c:
=RIGHT(A2, LEN(A2) - FIND(" ", A2))
Bn t d
t h vng Anh, phc vit tt)
Ct h
phm.
Gi s H m
name):
=LEFT(A2, FIND(" ", A2) -
c FIND(" ", A2) s cho kt qu a khong tr Karen).
a khong trng th n ph c
ng kt qu ca FIND(" ", A2) c
=FIND(" ", A2, FIND(" ",A2) + 1)
Rt qu c n H (last
name):
=RIGHT(A2, LEN(A2) -
a du chm (.) r
thc c c du chm:
=MID(A2, FIND(".", A2) -
khi gi
: AND(logical1 [, logical2] [, logical3] )
logical: Nhng biu thc s
Nu tt c u th tr v cu
th tr v FALSE.
B t c ch n muc
:
=IF(AND(B2 > 0, C2 > 0), "1000", "No bonus")
N C2 lnu ch cn mc C2
nh ng chi c.
nhp trc tic, Excel s hit biu th
=IF (logic kiu ki
thc
: u ki 2) Nu ki v c li
2
p lun: "N
u.
Mn nht
: IF(logical_test, value_is_true)
logical_test: Mt biu thc s
tr v khi biu thc ki
:
=IF(A1 >= 1000, "It's big!")
A1 lc bt qu nhc s
u A1 nh t qu s
M i s bt b a mt danh mc
n mung m
u chnh chic kinh doanh cng d phn
m doanh s ng du hiu
B u:
=IF(cell<0, flag)
V doanh s n muu hi , cell cha
doanh s
=IF(B2<0, "<<<<<")
nhng du "<" t l thun vi mc st gim doanh s
REPT(), vc:
REPT("<" , B2 * -100)
ca B2 vi -100, b ng hp B2<0
th hin m st gim doanh s ca tng m
=IF(B2<0, REPT("<" , B2 * -100))
Nhng nhau
Trong cuc sy ai d p nhn chuyn "mu", ph
n.
ng s u, nu ru nhin!
y. Gi sp loi hc tp, n
gii, v
nh i g
ng s d xp lo
s hu kin a.
y l c:
=IF(A1 >= 1000, "Big!", "Not big")
Bi gi ng l
t danh hi
=IF(A1 >= 1000, IF(A1 >= 10000, "Really big!!", Big!"), "Not big")
Ho c
tui nh), v xem:
=IF(A1 >= 1000, "Big!", IF(A1 < 100, "Small", "Not big"))
Bn
a IF().
t c li:
=IF(A1 >= 1000, IF(A1 >= 10000, "Really big!!", Big!"), IF(A1 < 100, "Small", "Not big"))
n mng d ngou b c
, Excel s u, hon kt qu y.