Giả sử ta co bang tinh sau :
A B C D
Thang Mat hang So Luong Thanh tien
2 01/2004 Mainboard 10 11,250,000
3 01/2004 CPU 5 5,740,000
4 02/2004 HDD 12 6,200,000
5 03/2004 FDD 20 1,940,000
6 04/2004 Card VGA 11 500,000
7 04/2004 CPU 6 6,100,000
8 06/2004 HDD 4 1,780,000
9 07/2004 FDD 17 1,720,000
10 09/2004 Mainboard 3 3,450,000
11 08/2004 Card VGA 8 3,250,000
12 10/2004 Mainboard 4 5,115,000
13 11/2004 CPU 9 9,810,000
14 12/2004 FDD 5 2,130,000
Neu tim so luong ban trong thang 01/2004 dung cong thuc SUMIF
=SUMIF($A$2:$A$14,"01/2004",$C$2:$C$14) = 15
Neu tim doanh so ban mat hang Mainboard dung cong thuc SUMIF
=SUMIF($B$2:$B$14,"Mainboard",$D$2:$D$14) = 19.815.000
Neu muon tim doanh so ban mat hang Mainboard trong thang 01/2004 ta dung
cong thuc SUMPRODUCT
=SUMPRODUCT(($A$2:$A$14="01/2004")*($B$2:$B$14="Mainboard")*($D$2:$D$14)) = 11.250.000
Ban cung co the dung cong thuc mang, cong thuc tuong tu nhu SUMPRODUCT, nhung chi la SUM
va nhan Ctrl + Shift + Enter
[=SUM(($A$2:$A$14="01/2004")*($B$2:$B$14="Mainboard")*($D$2:$D$14))] = 11.250.000
Neu muon tim xem tong cac mat hang co doanh so > 5.000.000 va < 10.000.000, ta cung dung
cong thuc mang
[=SUM(($D$2:$D$14>5000000)*($D$2:$D$14<10000000)*($D$2:$D$14))] = 32.965.000
Dem xem co bao nhieu mat hang co doanh so giua 5.000.000 va 10.000.000 ta dung
[=COUNT(($D$2:$D$14>=5000000)*($D$2:$D$14<=10000000))] = 13
Mình không có cách nào để vẽ bảng tính cả. Các bạn thông cảm dùm