15个常用excel函数公式 excel中常用函数有哪些
Excel\u91cc\u7684\u666e\u901a\u5e38\u7528\u51fd\u6570\u516c\u5f0f\u6709\u54ea\u4e9b\uff1f\u8f93\u5165MAX\u51fd\u6570\uff0c\u9009\u4e2d\u533a\u57df\u5c31\u80fd\u6c42\u51fa\u6700\u5927\u503c\u3002\u8f93\u5165MIN\u51fd\u6570\uff0c\u9009\u4e2d\u533a\u57df\u5c31\u80fd\u6c42\u51fa\u6700\u5c0f\u503c\u3002\u8f93\u5165AVEDEV\u51fd\u6570\uff0c\u9009\u4e2d\u533a\u57df\u5c31\u80fd\u6c42\u51fa\u5e73\u5747\u503c\u3002\u8f93\u5165SUM\u51fd\u6570\uff0c\u9009\u4e2d\u533a\u57df\u5c31\u80fd\u6c42\u51fa\u6700\u5927\u503c\u3002
1、查找重复内容
=IF(COUNTIF(A:A,A2)>1,"重复","")
2、重复内容首次出现时不提示
=IF(COUNTIF(A$2:A2,A2)>1,"重复","")
3、重复内容首次出现时提示重复
=IF(COUNTIF(A2:A99,A2)>1,"重复","")
4、根据出生年月计算年龄
=DATEDIF(A2,TODAY(),"y")
5、根据身份证号码提取出生年月
=--TEXT(MID(A2,7,8),"0-00-00")
6、根据身份证号码提取性别
=IF(MOD(MID(A2,15,3),2),"男","女")
7、几个常用的汇总公式
A列求和:=SUM(A:A)
A列最小值:=MIN(A:A)
A列最大值:=MAX (A:A)
A列平均值:=AVERAGE(A:A)
A列数值个数:=COUNT(A:A)
8、成绩排名
=RANK.EQ(A2,A$2:A$7)
9、中国式排名(相同成绩不占用名次)
=SUMPRODUCT((B$2:B$7>B2)/COUNTIF(B$2:B$7,B$2:B$7))+1
10、90分以上的人数
=COUNTIF(B1:B7,">90")
11、各分数段的人数
同时选中E2:E5,输入以下公式,按Shift+Ctrl+Enter
=FREQUENCY(B2:B7,{70;80;90})
12、按条件统计平均值
=AVERAGEIF(B2:B7,"男",C2:C7)
13、多条件统计平均值
=AVERAGEIFS(D2:D7,C2:C7,"男",B2:B7,"销售")
14、统计不重复的个数
=SUMPRODUCT(1/COUNTIF(A2:A9,A2:A9))
15、提取不重复的内容
C2单元格输入以下数组公式,按Ctrl+ Shift+Enter,向下复制。
=INDEX(A:A,1+MATCH(,COUNTIF(C$1:C1,A$2:A$10),))&""
绛旓細15涓父鐢ㄧ殑Excel鍑芥暟鍏紡鍒嗗埆鏄紱1銆佹煡鎵鹃噸澶嶅唴瀹 =IF>1,鈥濋噸澶嶁,鈥濃)2銆侀噸澶嶅唴瀹归娆″嚭鐜版椂涓嶆彁绀 =IF>1,鈥濋噸澶嶁,鈥濃)3銆侀噸澶嶅唴瀹归娆″嚭鐜版椂鎻愮ず閲嶅 =IF>1,鈥濋噸澶嶁,鈥濃)4銆佹牴鎹嚭鐢熷勾鏈堣绠楀勾榫 =DATEDIF,鈥漼鈥)5銆佹牴鎹韩浠借瘉鍙风爜鎻愬彇鍑虹敓骞存湀 =_TEXT,鈥0-00-00鈥)6銆佹牴鎹韩浠...
绛旓細鍏紡锛=SUMIF(B3:B15,F3,D3:D15)Sumif鍑芥暟鐨勪綔鐢锛氭潯浠舵眰鍜 璇硶锛=sumif锛堣缁熻鐨勬暟鎹尯鍩燂紝姹傚拰鏉′欢锛屾眰鍜屽尯鍩燂級11. 鏉′欢鍒ゆ柇 鍏紡锛=IF(C3>=60,鈥濋氳繃鈥,鈥濅笉閫氳繃鈥)If鍑芥暟鏄竴涓潯浠跺垽鏂嚱鏁帮紝浠栬兘鏍规嵁鏉′欢鏉ヨ繑鍥炲搴旂殑缁撴灉 璇硶锛=IF锛堝垽鏂潯浠讹紝鏉′欢姝g‘鏃惰繑鍥炵殑缁撴灉锛屾潯浠堕敊璇椂杩斿洖鐨...
绛旓細鍏紡:B2=COUNTIF(鏁版嵁婧:浣嶇疆,鎸囧畾鐨勶紝鐩爣浣嶇疆)璇存槑锛氬鏋滆繑鍥炲煎ぇ浜0璇存槑鍦ㄥ彟涓涓〃涓瓨鍦紝0鍒欎笉瀛樺湪銆傚鏋滐紝鍦ㄦ绀轰緥涓墍鐢ㄥ埌鐨勫叕寮忎负锛欱2=COUNTIF(Sheet15!A:A,A2)2銆佺粺璁′笉閲嶅鐨勬绘暟鎹 鍏紡锛欳2=SUMPRODUCT(1/COUNTIF(A2:A8,A2:A8))璇存槑:鐢–OUNTIF鍑芥暟缁熻鍑烘簮鏁版嵁涓瘡浜虹殑鍑虹幇娆℃暟锛...
绛旓細1姹傚拰鍑芥暟SUM锛屾眰鍜屽嚱鏁版槸閲岃竟闈炲父绠鍗曠殑鍑芥暟锛屽畠鏄竴涓暟瀛﹀拰涓夎鍑芥暟锛屽彲灏嗗艰繘琛岀浉鍔2鏉′欢姹傚拰鍑芥暟SUMIF锛屾潯浠舵眰鍜屽嚱鏁版槸灏嗘弧瓒虫潯浠剁殑鍐呭杩涜鍔犲拰锛屼妇渚=SUMIFH2H7锛宷uot=60quot锛孒2H7锛屾槸灏咹2鍒癏7鐨勫崟鍏冩牸涓15涓父鐢ㄧ殑Excel鍑芥暟鍏紡鍒嗗埆鏄1鏌ユ壘閲嶅鍐呭 =IFCOUNTIFAA锛孉21锛屸濋噸澶嶁濓紝鈥濃2閲...
绛旓細excel甯哥敤鍑芥暟澶у叏1銆丼UM鍑芥暟锛歋UM鍑芥暟鐨勪綔鐢ㄦ槸姹傚拰銆傚嚱鏁板叕寮忎负=sum锛堬級渚嬪锛氱粺璁′竴涓崟鍏冩牸鍖哄煙锛=sum(A1:A10)缁熻澶氫釜鍗曞厓鏍煎尯鍩燂細=sum(A1:A10,C1:C10)2銆丄VERAGE鍑芥暟:Average鐨勪綔鐢ㄦ槸璁$畻骞冲潎鏁般傚嚱鏁板叕寮忎负=AVERAGE()渚嬪锛氳绠楀涓崟鍏冩牸鐨勫钩鍧囧=AVERAGE(A1:A12锛3銆乧ount鍑芥暟锛氫綔鐢ㄦ槸璁$畻鍗曞厓...
绛旓細Excel鍑芥暟鍏紡澶у叏 宸ヤ綔涓渶甯哥敤Excel鍑芥暟鍏紡澶у叏涓銆佹暟瀛楀鐞1銆佸彇缁濆鍊=ABS(鏁板瓧)2銆佸彇鏁=INT(鏁板瓧)3銆佸洓鑸嶄簲鍏=ROUND(鏁板瓧,灏忔暟浣嶆暟)浜屻佸垽鏂叕寮1銆佹妸鍏紡浜х敓鐨勯敊璇兼樉绀轰负绌哄叕寮忥細C2=IFERROR(A2/B2,)璇存槑锛氬鏋滄槸閿欒鍊煎垯鏄剧ず涓虹┖锛屽惁鍒欐甯告樉绀恒2銆両F澶氭潯浠跺垽鏂繑鍥炲煎叕寮忥細C2=IF(AND...
绛旓細=IF(MOD(MID(A2,15,3),2),"鐢","濂")7銆佸嚑涓父鐢鐨勬眹鎬鍏紡 A鍒楁眰鍜岋細=SUM(A:A)A鍒楁渶灏忓硷細=MIN(A:A)A鍒楁渶澶у硷細=MAX (A:A)A鍒楀钩鍧囧硷細=AVERAGE(A:A)A鍒楁暟鍊间釜鏁帮細=COUNT(A:A)8銆佹垚缁╂帓鍚 =RANK.EQ(A2,A$2:A$7)9銆佷腑鍥藉紡鎺掑悕锛堢浉鍚屾垚缁╀笉鍗犵敤鍚嶆锛=SUMPRODUCT((B$...
绛旓細搴旂敤涓句緥锛氬湪C11鍗曞厓鏍间腑杈撳叆鍏紡锛=COLUMN(B11)锛岀‘璁ゅ悗鏄剧ず涓2锛堝嵆B鍒楋級銆傜壒鍒彁閱掞細濡傛灉鍦˙11鍗曞厓鏍间腑杈撳叆鍏紡锛=COLUMN()锛屼篃鏄剧ず鍑2锛涗笌涔嬬浉瀵瑰簲鐨勮繕鏈変竴涓繑鍥炶鏍囧彿鍊肩殑鍑芥暟ROW(reference)銆5銆佸嚱鏁板悕绉帮細CONCATENATE 涓昏鍔熻兘锛氬皢澶氫釜瀛楃鏂囨湰鎴栧崟鍏冩牸涓殑鏁版嵁杩炴帴鍦ㄤ竴璧凤紝鏄剧ず鍦ㄤ竴涓崟鍏冩牸...
绛旓細鍏紡锛欳2 =IF(AND(A2<500,B2="鏈埌鏈"),"琛ユ","")璇存槑锛氫袱涓潯浠跺悓鏃舵垚绔嬬敤AND,浠讳竴涓垚绔嬬敤OR鍑芥暟銆備笁銆佺粺璁″叕寮 1銆佺粺璁′袱涓〃鏍奸噸澶嶇殑鍐呭 鍏紡:B2 =COUNTIF(Sheet15!A:A,A2)璇存槑锛氬鏋滆繑鍥炲煎ぇ浜0璇存槑鍦ㄥ彟涓涓〃涓瓨鍦紝0鍒欎笉瀛樺湪銆2銆佺粺璁′笉閲嶅鐨勬讳汉鏁 鍏紡锛欳2 =SUMPRODUCT(1...
绛旓細1銆丼UM鍑芥暟 涓昏鍔熻兘锛氭眰鍑烘墍鏈夊弬鏁扮殑绠楁湳鎬诲笺 浣跨敤鏍煎紡锛歋UM(number1,number2,??) 鍙傛暟璇存槑锛歯umber1,number2...锛氶渶瑕佹眰鎬诲肩殑鏁板兼垨寮曠敤鍗曞厓鏍硷紙鍖哄煙锛夛紝鍙傛暟涓嶈秴杩30涓2銆丄VERAGE鍑芥暟 鍑芥暟鍚嶇О锛欰VERAGE 涓昏鍔熻兘锛氭眰鍑烘墍鏈夊弬鏁扮殑绠楁湳骞冲潎鍊笺 浣跨敤鏍煎紡锛欰VERAGE(number1,number2,??) 鍙傛暟璇...