ÓÑÇéÌáʾ£ºÈç¹û±¾ÍøÒ³´ò¿ªÌ«Âý»òÏÔʾ²»ÍêÕû£¬Çë³¢ÊÔÊó±êÓÒ¼ü¡°Ë¢Ð¡±±¾ÍøÒ³£¡ÔĶÁ¹ý³Ì·¢ÏÖÈκδíÎóÇë¸æËßÎÒÃÇ£¬Ð»Ð»£¡£¡ ±¨¸æ´íÎó
Ò»ÊÀÊé³Ç ·µ»Ø±¾ÊéĿ¼ ÎÒµÄÊé¼Ü ÎÒµÄÊéÇ© TXTÈ«±¾ÏÂÔØ ½øÈëÊé°É ¼ÓÈëÊéÇ©

Excel word ppt officeʹÓü¼ÇÉ´óÈ«(DOC¸ñʽ)-µÚ72ÕÂ

°´¼üÅÌÉÏ·½Ïò¼ü ¡û »ò ¡ú ¿É¿ìËÙÉÏÏ·­Ò³£¬°´¼üÅÌÉ쵀 Enter ¼ü¿É»Øµ½±¾ÊéĿ¼ҳ£¬°´¼üÅÌÉÏ·½Ïò¼ü ¡ü ¿É»Øµ½±¾Ò³¶¥²¿£¡
¡ª¡ª¡ª¡ªÎ´ÔĶÁÍꣿ¼ÓÈëÊéÇ©ÒѱãÏ´μÌÐøÔĶÁ£¡




¡ª¡µÊäÈë˵Ã÷ÎÄ×Ö¡£¡¡¡¡



¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡ÈçºÎÔÚ¡¡EXCEL¡¡ÖÐͳ¼ÆÒ»¸öÊýÔÚÄÄÒ»ÐгöÏÖ¡¡¡¡



½â´ð£º¡¡

£û=IF£¨ISERROR£¨SMALL£¨IF£¨R1C1£ºR16C1=R1C2£»ROW£¨R1C1£ºR16C1£©£»¡¨¡¨£©£»ROW£¨£©¡­1£©£©£»¡¨¡¨£»SMALL£¨IF£¨R¡¡

1C1£ºR16C1=R1C2£»ROW£¨R1C1£ºR16C1£©£»¡¨¡¨£©£»ROW£¨£©¡­1£©£©£ý¡¡¡¡



¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡ÔÚ¡¡SHEET51¡¡µÄA1¡¡×ö¹«Ê½¼Ó×Ü¡¡SHEET1£ºSHEET50¡¡µÄA1¡¡Ôõô×ö°¡¡¡¡¡



½â´ð£º=SUM£¨Sheet1£ºSheet50£¡A1£©¡¡¡¡¡¡



¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¹¤×÷±í¼äµÄÊý¾ÝÊäÈë¡¡¡¡



ÎÒÏëÔÚ¡¡sheet1¡¡ÖÐÊäÈëÊý¾Ý£¬ÀýÈçÎÒÏÈÔÚA1¡¡ÖÐÊäÈë¡¡1£¬È·¶¨ÊÇÊäÈëµÚÒ»¸öµ¥Î»µÄÊý¾Ý£¬È»ºó´Ó¡¡

A2¡¡¿ªÊ¼ÊǵÚÒ»¸öµ¥Î»µÄÊý¾Ý¡£ÊäÈëÍê³Éºó£¬ÔÚ¡¡SHEET2¡¡ÖеĵÚÒ»¸öµ¥Î»Êý¾Ý¾ÍÏÔʾ³öÀ´ÁË£¬ÎÒ¡¡

µÄÎÊÌâÊÇ£¬ÎÒÏëÓá¡SHEET1¡¡±íÔÙÊäÈëµÚ¶þ¸öµ¥Î»µÄÊý¾Ý£¬µ«ÊÇÕâʱ¡¡SHEET2¡¡ÖеÚÒ»¸öµ¥Î»µÄÊý¾Ý¡¡

ûÓÐÁË£¬ÏÔʾÊǵڶþ¸öµ¥Î»µÄÊý¾Ý£¬ÈçºÎ²ÅÄܱ£´æµÚÒ»¸öµ¥Î»µÄÊý¾Ý£¬ÓÖÄÜÓá¡SHEET1¡¡ÔÙÊäÈë¡¡

µÚ¶þ¸ö¡¢µÚÈý¸öµ¥Î»µÄÊý¾Ý£¿¡¡¡¡

½â´ð£º=IF£¨»§»ã×Ü£¡B31£»¡¨¡¨£»»§»ã×Ü£¡B5£©¡¡¡¡



¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡ÇëÎÊÈçºÎÓù«Ê½´ïµ½ÎÒÏëÒªµÄ½á¹û¡¡¡¡



A¡¡ÁС¡B¡¡ÁС¡C¡¡ÁС¡¡¡¡¡

1¡¡a¡¡¡¡¡¡

2¡¡a¡¡¡¡¡¡

3¡¡a¡¡¡¡¡¡

1¡¡b¡¡¡¡¡¡

4¡¡b¡¡¡¡¡¡

ÎÒÏëµ±¡¡B2=B3£¬¶øÇÒA2=1¡¡Ê±£¬C2¡¡µÄֵΪOK£¬ÇëÎʸÃÈçºÎдÕâ¸ö¹«Ê½£¿¡¡¡¡

½â´ð£º=IF£¨AND£¨B2=B3£»A2=1£©£»¡¨OK¡¨£»¡¨¡¨£©¡¡¡¡



¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡Ò»¸öÒ³ÃæÔÚ´òÓ¡Ò»´ÎºóÊÇ·ñÄÜÔÚÉÏÃæµÄijһµ¥Ôª¸ñÊýÖµÉϼӡ¡1¡¡¡¡



¡¡½â´ð£º¿ÉʹÓá¡Workbook¡¡µÄ¡¡Before_Print¡¡Ê¼þ¡£¡¡¡¡¡¡

°´¡¡¡¡£§Alt¡¡£«¡¡F11£§¡¡½øÈë¡¡VB¡¡Editor£»¡¡¡¡¡¡

×ó²à»áÓÐÒ»¸ö¡¡¡¡£§ThisWorkbook£§£»¡¡¡¡¡¡

£¨Èç¹ûûÓУ»¡¡°´¡¡¡¡£§Ctrl£«R£§¡¡½Ð³ö£©¡¡¡¡¡¡

ÔÚ¡¡¡¡£§ThisWorkbook£§¡¡¿ì°´Á½Ï£»¡¡ÌùÉϳÌÐò¡¡¡­¡¡¡¡

Private¡¡Sub¡¡Workbook_BeforePrint£¨Cancel¡¡As¡¡Boolean£©¡¡¡¡¡¡

£§A1£§¡¡=¡¡£§A1£§¡¡£«¡¡1¡¡¡¡¡¡



¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡323¡¡¡¡


¡­¡­¡­¡­¡­¡­¡­¡­¡­¡­¡­¡­¡­¡­¡­¡­¡­¡­¡­¡­¡­¡­Page¡¡324¡­¡­¡­¡­¡­¡­¡­¡­¡­¡­¡­¡­¡­¡­¡­¡­¡­¡­¡­¡­¡­¡­¡­

¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡



End¡¡Sub¡¡¡¡¡¡



¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡²»Óá¡VBA£¬Óá¡EXCEL¡¡Óï¾äµÄ¡¡IF¡¡º¯Êý£¬ÈçºÎʹÓÃÆäÌõ¼þ¹ØÏµ¡¡¡¡



¼ÙÈ磬ÏÖÔÚ¡¡A1£¬A2£¬A3£»B1£»B2£»B3¡¡¡¡¡¡

Ö»Òª¡¡B1¡¡²»Îª¿Õ¡¡B1£¼£¾¡°¡±£¬ÄÇôB2£½A2¡¡¡¡B3£½A3¡¡¡¡¡¡

ÈçºÎʹÓÃÆä¡¡IF¡¡Óï¾äÀ´ÊµÏÖ£¿£¿¡¡¡¡

¡¡½â´ð£ºB2=IF£¨B1¡¨¡¨£»A2£©¡¡¡¡¡¡

B3=IF£¨B1¡¨¡¨£»A3£©¡¡¡¡



¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡ÇóºÍÎÊÌâ¡¡¡¡



¶ÔÓÚ¹¤×÷±íÖеÄÊý¾Ý¿â£»Ëæ±ã¾ÙÒ»Àý£º¡¡¡¡¡¡

±à¡¡ºÅ¡¡Êý¡¡Á¿¡¡1¡¡Êý¡¡Á¿¡¡2¡¡¡¡¡¡

01¡¡180¡¡80¡¡¡¡¡¡

02¡¡190¡¡90¡¡¡¡¡¡

01¡¡170¡¡80¡¡¡¡¡¡

01¡¡160¡¡80¡¡¡¡¡¡

ÎÒÈçºÎ¼ÆËã¡¡£¨ÊýÁ¿¡¡1¡­ÊýÁ¿¡¡2£©ÖµµÄ×ܺ͡£²¢ÇÒ±ØÐëÂú×ã±àºÅÏàͬʱ£»¡¡Ö»ÄܼõÒ»´Î¡¡ÊýÁ¿¡¡2¡£¡¡¼´Òª¼Æ¡¡

Ëã³É£º¡¡£¨180£«170£«160¡­80£©£«£¨190¡­90£©¡£¡¡×¢£º¡¡±àºÅÏàͬʱ£»ÊýÁ¿¡¡2¡¡µÄÖµÒ»¶¨Ïàͬ¡£¡¡¡¡

½â´ð£ºÉè±í¸ñÔÚ¡¡A1£ºC5¡¡ÖС¡¡¡¡¡

=SUMIF£¨A2£ºA5£©¡­INDEX£¨C1£ºC5£»MATCH£¨¡¨01¡¨£»A1£ºA5£»0£©£©¡­INDEX£¨C1£ºC5£»MATCH£¨¡¨02¡¨£»A1£ºA5£»0£©£©¡¡¡¡¡¡



¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡ÅÅÃûÎÊÌâ¡¡¡¡



ÔÚ¡¡A1£ºF6¡¡ÇøÓòÓÐÏÂÃæÒ»¸ö±í¸ñ£º¡¡¡¡¡¡

°à¼¶¡¡ÐÕÃû¡¡ÕþÖΡ¡ÓïÎÄ¡¡Êýѧ¡¡×Ü·Ö¡¡¡¡¡¡

1¡¡Ð¡¶«¡¡90¡¡90¡¡90¡¡270¡¡/2¡¡Ã÷Ã÷¡¡95¡¡92¡¡90¡¡277¡¡/3¡¡Ð¡Ó¢¡¡96¡¡89¡¡91¡¡276¡¡/4¡¡Ð¡Áõ¡¡95¡¡90¡¡92¡¡277/5¡¡¡¡

Сºì¡¡95¡¡91¡¡92¡¡278¡¡/ÒªÔÚ¡¡K1£ºK3¡¡µÄµ¥Ôª¸ñÖзֱðÏÔʾ×Ü·Ö×î¸ßµÄͬѧµÄ°à¼¶¡¢ÐÕÃû¡¢×Ü·Ö£¬¡¡

ÔÚ¡¡L1£ºL3¡¡µÄµ¥Ôª¸ñÖзֱðÏÔʾ×Ü·ÖµÚ¶þµÄͬѧµÄ°à¼¶¡¢ÐÕÃû¡¢×Ü·Ö£¬ÔÚM1£ºM3¡¡µÄµ¥Ôª¸ñÖзֱð¡¡

ÏÔʾ×Ü·ÖµÚÈýµÄͬѧµÄ°à¼¶¡¢ÐÕÃû¡¢×Ü·Ö¡¡£¬×¢ÒâÆÚÖС¡277¡¡·ÖµÄÓÐÁ½ÈË£»²»Òª³öÏÖµÚ¶þÃûÓëµÚÈý¡¡

Ãû¶¼ÊÇ¡¨Ã÷Ã÷¡¨µÄ½á¹û¡£¡¡¡¡

½â´ð£º¶¨Òå¡¡A2£ºA6¡¡ÇøÓòΪ°à¼¶¡¡£»¶¨ÒåB2£ºB6¡¡ÇøÓòΪÐÕÃû£»¶¨ÒåF2£ºF6¡¡ÇøÓòΪ×Ü·Ö¡¡¡¡¡¡

K1=£ûINDEX£¨¡¡°à¡¡¼¶¡¡£»MATCH£¨LARGE£¨¡¡×Ü¡¡·Ö¡¡£«1¡­ROW£¨¡¡×Ü¡¡·Ö¡¡£©/100£»ROW£¨A1£©£©£»¡¡×Ü¡¡·Ö¡¡£«1¡­ROW£¨¡¡×Ü¡¡

·Ö£©/100£»0£©£©£ý¡¡¡¡¡¡

L1=£ûINDEX£¨¡¡ÐÕ¡¡Ãû¡¡£»MATCH£¨LARGE£¨¡¡×Ü¡¡·Ö¡¡£«1¡­ROW£¨¡¡×Ü¡¡·Ö¡¡£©/100£»ROW£¨A1£©£©£»¡¡×Ü¡¡·Ö¡¡£«1¡­ROW£¨¡¡×Ü¡¡

·Ö£©/100£»0£©£©£ý¡¡¡¡¡¡

M1=£ûINDEX£¨¡¡×Ü¡¡·Ö¡¡£»MATCH£¨LARGE£¨¡¡×Ü¡¡·Ö¡¡£«1¡­ROW£¨¡¡×Ü¡¡·Ö¡¡£©/100£»ROW£¨A1£©£©£»¡¡×Ü¡¡·Ö¡¡£«1¡­ROW£¨¡¡×Ü¡¡

·Ö£©/100£»0£©£©£ý¡¡¡¡¡¡

×¢£ºÖ»ÒªÏòϸ´ÖÆ£¬±ã¿ÉµÃµ½¡¡1~6¡¡ÃûµÄÇé¿öÁË¡£¸Ã¹«Ê½¿ÉÒÔÎÞÏÞÅÅÁС£Áí×¢£ºÕâÊÇÊý×鹫ʽ£¬¡¡

²»ÐèÒªÊäÈë¡°£û£ý¡±£¬ÔÚÊäÍ깫ʽºó£¬Çë°´¡¡ctrl£«shift£«enter£¬Ó¦½«ºóÃæµÄ¡¡100¡¡¸Ä³É¡¡100000£¬±È¡¡

½ÏºÃ¡£¡¡¡¡



¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡Í³¼ÆÂú×ãÌõ¼þµÄÊý¾Ý²¢Éú³ÉеÄÊý¾ÝÁС¡¡¡



A¡¡B¡¡C¡¡¡¡¡¡

427¡¡8¡¡427/612¡¡8¡¡612¡¡/924¡¡8¡¡924¡¡/22¡¡16¡¡409¡¡/94¡¡16¡¡/620¡¡16¡¡/955¡¡16¡¡/409¡¡8¡¡/ÇëÎÊ£º¼Ù¡¡



¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡324¡¡¡¡


¡­¡­¡­¡­¡­¡­¡­¡­¡­¡­¡­¡­¡­¡­¡­¡­¡­¡­¡­¡­¡­¡­Page¡¡325¡­¡­¡­¡­¡­¡­¡­¡­¡­¡­¡­¡­¡­¡­¡­¡­¡­¡­¡­¡­¡­¡­¡­

¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡



¶¨ÓÐÈçÉÏÁ½ÁÐÊý¾Ý¡¡A¡¡ºÍ¡¡B£¬ÏÖÔÚÏëҪͳ¼ÆÂú×ãÌõ¼þB£½8¡¡µÄ¡¡£¬²¢ÇÒÔÚ¡¡C¡¡ÁÐ×Ô¶¯Éú³ÉÊý¾Ý£¬ÎÒ²»¡¡

¶®¹«Ê½Ôõôд£¬ÎÒÖªµÀɸѡÄܹ»×öµ½£¬µ«ÊÇÓÉÓÚÊý¾ÝÁ¿±È½Ï´ó¡¡£¬Ïë×öÒ»¸öÄ£°å£¬ÃâÈ¥Ò»Ð©ÖØ¡¡

¸´ÀͶ¯¡£¡¡¡¡

½â´ð£º¡¡

=IF£¨ROW£¨A1£©¡·COUNTIF£¨B1£ºB8£»8£©£»¡¨¡¨£»INDEX£¨A1£ºA8£»MATCH£¨SMALL£¨IF£¨B1£ºB8=8£»0¡¡

£»1£©£«ROW£¨B1£ºB8£©/100000£»ROW¡¡¡¡¡¡

£¨A1£©£©£»IF£¨B1£ºB8=8£»0£»1£©£«ROW£¨B1£ºB8£©/100000£»0£©£©£©¡¡¡¡

ÕùÒ飺B¡¡À¸ÓС¡100¡¡¸öѡȡÌõ¼þ£¬¹«Ê½ÒªÐ޸ġ¡100¡¡´Î£¬ÓÐÉõôÁé»îÐÔ£¿¸ø×Ö¶ÎÃû³Æ¡¡£¬²åÈëÍ·Á½ÁС¡£¬¡¡

B1=SUBTOTAL£¨9£»B4£ºB65536£©¡£½â¾öµôËùÓÐÎÊÌâ¡¡¡£¿Ø¼þÕÒ×Ô¶¯É¸Ñ¡Òª¡¡¡¡¡¡

±ç½â£º²»ÐèÒªÐ޸Ĺ«Ê½£¬Ö±½Ó¸´ÖƾÍÐÐÁË¡£Èç¹ûÊÇ¡¡100¡¡¸ö£¬¿ªÊ¼Ê±¾Í½«·¶Î§Ð޸ĺþÍÐÐÁË¡£¡¡¡¡



¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¹¤×÷±í¼äµÄ²éÕÒÓë¸´ÖÆ¡¡¡¡



ÎҵŤ×÷ÊÇÔÚÒ»¸ö¡¡2000¡¡¶à¸öÔ±¹¤µÄ¼Í¼£¨°üÀ¨¸÷ÖÖ×ÊÁÏ£¬ÈçÉí·ÝÖ¤ºÅ£¬¹¤×÷¼Ç¼µÈ£©µÄ¡¡excel¡¡

¹¤×÷±í¡¡A¡¡ÖвéÕÒÁíÒ»·Ý¡¡200¡¡¶à¸öÔ±¹¤Ãûµ¥£¬°ÑÔ±¹¤ÔÚ¡¡A¡¡±íÖеĸ÷Ïî¼Í¼¸´ÖƵ½ÁíÒ»¸ö±íÉÏÈ¥£¬¡¡

ÎÒÌý˵Óá¡vba¡¡¿ÉÒÔºÜÈÝÒ׵ļò»¯´óÁ¿µÄ¸´Öƹ¤×÷£¬²»ÖªÄÄλ¸ßÊÖ¿ÉÒÔÖ¸µãÖ¸µã£¿£¿¡¡¡¡

½â´ð£ºÈçÏÂ±í¡¡sheet1¡¡µÄÄÚÈÝ¡¡¡¡¡¡

a¡¡b¡¡c¡¡¡¡¡¡

ÐÕÃû¡¡¹¤ºÅ¡¡²¿ÃÅ¡¡¡¡¡¡

ÕÅÈý¡¡100¡¡mm¡¡/ÀîËÄ¡¡101¡¡mm2¡¡/¡£¡£¡£¡£¡£¡£¡£¡¡¡¡¡¡

±í¡¡sheet2¡¡¡¡¡¡

a¡¡b¡¡c¡¡¡¡¡¡

ÐÕÃû¡¡²¿ÃÅ¡¡/ÀîËÄ¡¡/¡£¡£¡£¡¡¡¡¡¡

ÒªÔÚ¡¡sheet2¡¡±íÖн«¡¡sheet1¡¡±íµÄÏàͬÈËÔ±×ÊÁϸ´ÖƹýÀ´¿ÉÔÚ¡¡b¡¡±í¡¡µ¥Ôª¸ñ¡¡b2¡¡ÖÐÊäÈë¡¡¡¡¡¡

¡±=vlookup£¨a2£»sheet1£¡a1£ºgg2000£»3£»false£©¡¡¡¡¡¡

×îºÃ½«¡¡sheet1¡¡µÄÊý¾ÝÇøÏȶ¨Òåһϡ¡¡¡



¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡±È½ÏÔËËã·ûΪºÎÒªÓÃÒýºÅ¡¡¡¡



£¨1£©¡¡ºÎ½âÔÚ¹«Ê½ÄÚ£¬ÔËÓá¡¡¨±È½ÏÔËËã·ûºÅ¡¨¡¡Ê±£¬Òª°ÑÊý¾ÝÁ¬Í¬±È½ÏÔËËã·ûºÅÓá¡¡¨Ë«ÒýºÅ¡¨¡¡À¨×¡£¬¡¡

¶øÆäËüËãÊõ·ûºÅ¾Í²»ÐèÒª£¿¡¡¡¡¡¡

ÀýÈ磺=Countif£¨A1£ºA30£»¡¨¡·=10¡¨£©ÊÇ¿ÉÒÔ½ÓÊÜ£¬µ«²»¼ÓË«ÒýºÅʱ£¬±ãÔâ¾Ü¾ø¡£¡¡¡¡¡¡

£¨2£©¡¡ÓÖÇëÎÊ£ºÈçÉÏÀý£¬Òª±È½ÏµÄÊýÖµÊÇÒª²ÎÕÕijµ¥Ôª¸ñʱ£¬¹«Ê½Ó¦ÔõÑù×ö£¿¡¡¡¡

½â´ð£ºÕâÊÇ¡¡CountIF£¨£©µÄ¹æ¶¨¡£µÚ¶þ¸ö²ÎÊýΪ×Ö·û´®£¬±ØÐëÓÃË«ÒýºÅÀ©ÆðÀ´£¬³ý·ÇÌõ¼þÊǵÈÓÚ¡¡

Ò»¸öÊýÖµ¡£¡¡¡¡¡¡

±ÈÈ磺=COUNTIF£¨A1£ºA30£»¡¨¡·=4¡¨£©¡¡¡¡¡¡

=COUNTIF£¨A1£ºA30£»¡¨condition¡¨£©¡¡¡¡¡¡

¡¡¡¡¡¡¡¡¡¡¡¡=COUNTIF£¨A1£ºA30£»220£©¡¡¡¡¡¡

ÓÃÒýÓÃ×÷²ÎÊý£¨¼ÙÉè¡¡B1¡¡ÖµÎª¡¡4£©£º¡¡¡¡¡¡

¡¡¡¡¡¡¡¡¡¡¡¡=COUNTIF£¨A1£ºA30£»¡¨¡·=¡¨¡¡&¡¡B1£©¡¡¡¡



¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡£Å£Ø£Ã£Å£ÌÖÐÈçºÎÐÞ¸ÄÅú×¢µÄ×ÖÌåºÍÑÕÉ«¡¡¡¡



½â´ð£ºÊÓͼ£­£­Åú×¢¡¡È»ºóÔÚÅú×¢Éϵ¥»÷ÓÒ¼ü¡¡Ñ¡ÔñÉèÖÃÅú×¢¸ñʽ¡¡¡¡



¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡325¡¡¡¡


¡­¡­¡­¡­¡­¡­¡­¡­¡­¡­¡­¡­¡­¡­¡­¡­¡­¡­¡­¡­¡­¡­Page¡¡326¡­¡­¡­¡­¡­¡­¡­¡­¡­¡­¡­¡­¡­¡­¡­¡­¡­¡­¡­¡­¡­¡­¡­

¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡



¡¡¡¡¡¡¡¡¡¡¡¡ÈçºÎÒÔ½ø½×ɸѡÃüÁîɸѡ³ö¡°ÐòºÅ¡±Îªµ¥Êý¡¢Ë«Êý¡¢»òÕßÊÇÈÎÒâ¼ä¾àÖµµÄ¡¡records¡¡¡¡



ÐòºÅ¡¡ÐÕÃû¡¡ÐÔ±ð¡¡ÄêÁä¡¡¡¡¡¡

1¡¡Àî¡¡1¡¡ÄС¡30¡¡/2¡¡Àî¡¡2¡¡Å®¡¡25¡¡/3¡¡Àî¡¡3¡¡Å®¡¡22/4¡¡Àî¡¡4¡¡ÄС¡31¡¡/£º¡¡£º¡¡£º¡¡£º¡¡/99¡¡Àî¡¡99¡¡ÄС¡28¡¡¡¡

½â´ð£ºÔÚ¡°ÐòÁС±Óë¡°ÐÕÃû¡±Ö®¼ä²åÈëÒ»¸ö¿ÕÁУ¬ÔÚÆäµÚÒ»¸ñÊäÈë¡°Ìõ¼þ¡±¡£ÔÚ¡°Ìõ¼þ¡±ÏÂÃæ¡¡

ÊäÈ빫ʽ¡°=IF£¨MOD£¨A5£»2£©=1£»¡¨µ¥Êý¡¨£»¡¨Ë«Êý¡¨£©¡±£¬Óá°×Ô¶¯É¸Ñ¡¡±¡£¡¡¡¡



¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡n2=sum£¨b2¡¡µ½¡¡m2£©¡¡¡¢n3=sum£¨b3¡¡µ½¡¡m3£©¡¡¡¢ÓÐûÓа취Èá¡n¡¡ÄÇÒ»ÁпÉÒÔ×Ô¶¯Ìî³ä¡¡¡¡



¾ÍÊÇ˵ÿÔö¼ÓÒ»ÐУ¬¾Í»á×Ô¶¯¼ÆËã¡¡n¡¡ÄÇÒ»ÁеÄÖµ¡¡¡¢¶àл£¡¡¡¡¡

½â´ð£º1£ºÎÒÓиö±¿·½·¨£¬ÐëÓÃVBA£¬²»ÖªºÍÄãÒâ·ñ¡£¡¡¡¡¡¡

Private¡¡Sub¡¡Worksheet_Change£¨ByVal¡¡Target¡¡As¡¡Excel¡£Range£©¡¡¡¡¡¡

If¡¡Target¡£Column¡¡¡¶¡¡14¡¡And¡¡Cells£¨Target¡£Row£»¡¡14£©¡£Formula¡¡=¡¡¡¨¡¨¡¡Then¡¡Cells£¨Target¡£Row£»¡¡¡¡

14£©¡£Formula¡¡=¡¡¡¨=SUM£¨RC£§¡­12£§£ºRC£§¡­1£§£©¡¨¡¡¡¡¡¡

End¡¡Sub¡¡¡¡

2£º¼ÙÉèÐèÒª±»¡¡SUM¡¡µÄÊý¾Ý´æ·ÅÔÚB¡¡ÁУ¨µÚÒ»¸öÊý¾Ý´æ·ÅÔÚµ¥Ôª¸ñ¡¡B2£©£»½«ÒÔϹ«Ê½¡¡COPY¡¡µ½ÄãÏ£¡¡

ÍûÏÔʾ½á¹ûµÄµ¥Ôª¸ñÖУº¡¡¡¡¡¡

=IF£¨LEN£¨B2£©¡·0£»SUM£¨B2£ºINDEX£¨B£ºB£»¡¡ROW£¨£©£»¡¡1£©£©£»¡¡¡¨¡¨£©¡¡¡¡¡¡

ÇмÇÈç¹û¡¡B¡¡ÁÐÖÐÓпյ¥Ôª¸ñ¸ô¿ªÁËÐèÒª¼ÆËãµÄÊý¾Ý£»¡¡±ØÐëÒÔÁãÌî³ä¸Ãµ¥Ôª¸ñ¡£¡¡¡¡

3£ºÕâ¸öÎÊÌâ²»ÓÃÏëµÃºÜ¸´ÔÓ£¬¾ÍÊÇÒª°Ñn2¡¡µ¥Ôª¸ñÊäÈ빫ʽºó£¬ÍÏÒ·Ïòϸ´Öƹ«Ê½¡£¡¡¡¡¡¡

Ò²ÐíÊÇÎÒÏëµÃÌ«¼òµ¥ÁË¡£¡¡¡¡



¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡ÔÚ¹¤×÷±íÀïÓÐÁ¬Ðø¡¡10¡¡ÐÐÊý¾Ý£»¡¡ÏÖÔÚҪÿÐмä¸ñ¡¡2¡¡ÐУ»¡¡ÒªÈçºÎ×ö¡¡¡¡



½â´ð£º1£ºÈç¡¡sheet1£¡A1£ºD10¡¡ÖÐÓÐÁ¬Ðø¡¡10¡¡ÐÐ×ÊÁÏ£¬ÔÚ¡¡sheet2¡¡Öаѡ¡sheet1¡¡ÖеÄÊý¾ÝÿÐС¡

¼ä¸ô¡¡2¡¡ÐС¡¡¡¡¡

sheet2£¡A1¡¡Öй«Ê½¿ÉÓá¡¡¡¡¡

=IF£¨ROW£¨£©=1£»Sheet1£¡A1£»IF£¨MOD£¨ROW£¨£©£»3£©=1£»INDEX£¨Sheet1£¡A1£ºD10£»INT£¨£¨ROW£¨£©¡­1£©/2£©£«¡¡

1£»COLUMN£¨£©£©£»¡¨¡¨£©£©¡¡¡¡¡¡

È»ºóÌî³ä¹«Ê½£¨×¢Ò⹫ʽÔÚ¡¡SHEET2¡¡ÖеÄÌî³ä·¶Î§£¬³¬¹ý·¶Î§»á³ö´í£¡£©¡¡¡¡

2£ºÐ¡Ð޸ġ¡¡¡¡¡

=IF£¨MOD£¨ROW£¨£©£»3£©=1£»INDEX£¨Sheet1£¡A1£ºZ500£»INT£¨ROW£¨£©/3£©£«1£»COLUMN£¨£©£©£»¡¨¡¨£©¡¡¡¡



¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡µ±µãµ½Ä³µ¥Ôª¸ñʱµ¥Ôª¸ñ»á³öÏÖÒ»¸öÏÂÀ­µÄÁпò£¬¿ÉÒÔѡȡÆäÖеÄÊý¾Ý¡¡¡¡



¡¡½â´ð£º£§Êý¾Ý£§¡­£§ÓÐЧÐÔ£§¡­£§ÐòÁУ§¡¡¡¡

ÓÖÎÊ£ººÃÏñѡȡÊý¾ÝÖ»ÄÜÔÚ±¾Ò³Ã棬ÓÐÎÞ¸ßÕÐѡȡÁíÍâÒ³ÃæµÄÊý¾ÝÔ´£¬ÉõÖÁÊÇÁíÍ⹤×÷±¡µÄ£¿¡¡¡¡

¡¡½â´ð£ºÏÈÔÚ¡°²åÈë¡­¡·Ãû³Æ¡±Öж¨ÒåºÃÆäËüÒ³ÃæÉÏÐèÒªÒýÓõÄÊý¾ÝÔ´µÄÃû³Æ£¨AA£©¡£È»ºó¡¡¡¡£§Êý¡¡

¾Ý£§¡­£§ÓÐЧÐÔ£§¡­£§ÐòÁУ§¡¡£¬ÔÚ¡°Êý¾ÝÔ´¡±À¸ÊäÈë¡°=AA¡±¡£¡¡¡¡

¡¡»ò£ºÈô¸ÄÆäËü»îÒ³±¡ÒªÈçºÎÐÞ¸ÄÏÂÁÐʽ×Ó£¿£¨¡¡¼ÙÉè»îÒ³±¡Ãû³ÆÎª¡¡book1£©¡¡¡¡¡¡

=Sheet1£¡A2£ºA14£¨book2£©¡¡¡¡



¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡²éÕÒÓëÒýÓá¡¡¡



ÓÐÒ»¸ö±í¸ñ£
·µ»ØÄ¿Â¼ ÉÏÒ»Ò³ ÏÂÒ»Ò³ »Øµ½¶¥²¿ ÔÞ£¨0£© ²È£¨1£©
δÔĶÁÍꣿ¼ÓÈëÊéÇ©ÒѱãÏ´μÌÐøÔĶÁ£¡
ÎÂܰÌáʾ£º ο´Ð¡ËµµÄͬʱ·¢±íÆÀÂÛ£¬Ëµ³ö×Ô¼ºµÄ¿´·¨ºÍÆäËüС»ï°éÃÇ·ÖÏíÒ²²»´íŶ£¡·¢±íÊéÆÀ»¹¿ÉÒÔ»ñµÃ»ý·ÖºÍ¾­Ñé½±Àø£¬ÈÏÕæÐ´Ô­´´ÊéÆÀ ±»²ÉÄÉΪ¾«ÆÀ¿ÉÒÔ»ñµÃ´óÁ¿½ð±Ò¡¢»ý·ÖºÍ¾­Ñé½±ÀøÅ¶£¡