ã¹ãã¬ããã·ã¼ãã®éè¤ãã¼ã¿ã«è²ä»ããããæ¹æ³ãå³è§£ã
2024.04.25ç®æ¬¡
ã¹ãã¬ããã·ã¼ãã®éè¤ãã¼ã¿ã®è²ä»ããä¸æããããã«å°ã£ã¦ãããã¨ããæ¹ãããã®ã§ã¯ãªãã ããããéè¤ãã¼ã¿ã®è²ä»ãæ¹æ³ã¯ã¹ãã¬ããã·ã¼ãã¨Excelã§å°ãç°ãªãã
æ¬è¨äºã§ã¯ãã¹ãã¬ããã·ã¼ãã§éè¤ãã¼ã¿ã®è²ä»ããè¡ãªãæ¹æ³ã«ã¤ãã¦è§£èª¬ãããCOUNTIFé¢æ°ã使ã£ãããæ¹ã«ã¤ãã¦ä¸å¿ã«ã¾ã¨ããã
ã¹ãã¬ããã·ã¼ãã«ã¯ãéè¤è²ä»ããæ©è½ããªã
Excelã®å ´åãæ¡ä»¶æ¸å¼è¨å®ã«ããéè¤ãã¼ã¿ã«å¯¾ãã¦å¦çãè¡ãªããã¨ãå¯è½ã ãéè¤ãã¼ã¿ã«è²ãä»ãã¦ãããããããããã¨ãç°¡åã«ã§ããã
ã¨ãããã¹ãã¬ããã·ã¼ãã®å ´åãéè¤ãã¼ã¿ã«å¯¾ãã¦å¦çãè¡ãªããæ©è½ããªãã
ãã®ãããã¹ãã¬ããã·ã¼ãã§éè¤ããå¤ã«è²ä»ããè¡ãããå ´åãèªåã§é¢æ°ã使ã£ã¦è¨å®ããå¿ è¦ãããã
ã¹ãã¬ããã·ã¼ãã§ãéè¤è²ä»ãããè¡ãªãã«ã¯COUNTIFé¢æ°ãå¿ è¦
ã¹ãã¬ããã·ã¼ãã§éè¤ãããã¼ã¿ã«è²ä»ããè¡ãªãããã«ã¯ãCOUNTIFé¢æ°ãå¿ è¦ã«ãªããCOUNTIFé¢æ°ã¯ãæ¤ç´¢æ¡ä»¶ã«åè´ããåæ°ãè¿ãé¢æ°ã ã
éè¤ãããã¼ã¿ã«å¯¾ãã¦COUNTIFé¢æ°ã使ãã°ãå¿ ã2以ä¸ãè¿ã£ã¦ãããå¾ã¯2以ä¸ã®ãã¼ã¿ã«å¯¾ãã¦è²ä»ãæå®ãè¡ãªã£ã¦ããã°ãããã¨ããããã ã
COUNTIFé¢æ°ã®æ§æã¯æ¬¡ã®ã¨ããã
COUNTIF(ç¯å², æ¤ç´¢æ¡ä»¶)
第ä¸å¼æ°ã«ã¯æ¤ç´¢ç¯å²ãè¨å ¥ããããã¨ãã°A1ããA10ã¾ã§ã®éã«éè¤ãã¼ã¿ããªãã調ã¹ãããªããA1:A10ãã¨è¨å ¥ãã¦ãããããã¦ç¬¬äºå¼æ°ã«ã¯æ¤ç´¢æ¡ä»¶ãæå®ãããããã«æå®ããæ¤ç´¢æ¡ä»¶ã«åè´ãããã¼ã¿ã®æ°ãã«ã¦ã³ããããã¨ãã§ããã
ã¹ãã¬ããã·ã¼ãã§éè¤ããå¤ã®è²ä»ããè¡ãªãæ¹æ³
ã¹ãã¬ããã·ã¼ãã§éè¤ããå¤ã®è²ä»ããè¡ãæé ãç´¹ä»ãããéè¤ããå¤ã®è²ä»ããè¡ãªãæé ã¯æ¬¡ã®ã¨ããã ã
- éè¤ããå¤ãå ¥ã£ã表ãä½æ
- æ¸å¼è¨å®ç»é¢ãéã
- ã«ã¹ã¿ã è¨å®ãè¡ãªã
- COUNTIFé¢æ°ã使ã
å°ãæé ããããããã®ã§ãå³ãå¤ãã«æã¿ãªãã解説ãã¦ããã1ã¤1ã¤ã®æé ã«ã¤ãã¦è©³ããã¿ã¦ãããã
â 1.éè¤ããå¤ãå ¥ã£ã表ãä½æ
ã¾ããéè¤ããå¤ãå ¥ã£ã表ãä½æãã¦ã¿ãããããã§ã¯ä»¥ä¸ã®ãããªè¡¨ãç¨æãããéè¤ãã¼ã¿ãå ¥ã£ã¦ããã°è¡¨ã¯ä½ã§ãåé¡ãªãã
â 2.æ¸å¼è¨å®ç»é¢ãéã
ç¶ãã¦ãæ¸å¼è¨å®ç»é¢ãéãå¿ è¦ããããã¹ãã¬ããã·ã¼ãã§æ¸å¼è¨å®ç»é¢ãéãã«ã¯ãä¸é¨ã¡ãã¥ã¼ã®ã表示形å¼ããã¯ãªãã¯ãããç¶ãã¦ãæ¡ä»¶ä»ãæ¸å¼ããé¸æãããã
â 3.ã«ã¹ã¿ã è¨å®ãè¡ãªã
ãæ¡ä»¶ä»ãæ¸å¼è¨å®ã«ã¼ã«ãã¨ããç»é¢ã表示ããããããç¯å²ã«é©ç¨ããã表ãé¸æãããã
ããã§ã¯ãA2:A11ããé¸æç¯å²ã¨ãã¦ãããç¯å²ãé¸æããããOKããã¯ãªãã¯ã
次ã«ãã»ã«ã®æ¸å¼è¨å®ã®æ¡ä»¶â¦ããã¯ãªãã¯ããã
ä¸çªä¸ã«ãããã«ã¹ã¿ã æ°å¼ããé¸æãããã
â 4.COUNTIFé¢æ°ã使ã
ãã«ã¹ã¿ã æ°å¼ããã¯ãªãã¯ããã¨ãæ°å¼ãå ¥åã§ããæ¬ã表示ããããããã«COUNTIFé¢æ°ãå ¥åãããã¨ã«ãªãã
以ä¸ã®ç»åã®ããã«ã=COUNTIF(A:A,A:A)>=2ãã¨å ¥åããããããã¯ãAåã®ä¸ã«Aåã¨ä¸è´ãããã®ã2以ä¸ãã£ããè²ä»ããããã¨ããæå³ã§ããã
å ¥åãçµãã£ãããå®äºããã¯ãªãã¯ããã
表ãè¦ã¦ã¿ãã¨ãéè¤ãã¼ã¿ã®ã¿ã«è²ä»ããè¡ããã¦ãããã¨ãåããããããã¹ãã¬ããã·ã¼ãã§éè¤ãã¼ã¿ã«è²ä»ããè¡ãåºæ¬çãªæµãã ã
ã¹ãã¬ããã·ã¼ãã§éè¤ãããã¼ã¿ã®æ°ãéè¨ããæ¹æ³
ç¶ãã¦ãã¹ãã¬ããã·ã¼ãã§éè¤ãããã¼ã¿ã®æ°ãéè¨ããæ¹æ³ã解説ããããéè¤ãããã¼ã¿ã®æ°ãéè¨ããéãCOUNTIFé¢æ°ã使ã
次ã®ããã«ãã=COUNTIF(A:A,A2)ãã¨è¨å ¥ããããããã¯ãAåã®ä¸ã«ããA2ï¼â»ï¼ã¨åãå¤ã®åæ°ãã«ã¦ã³ããããã¨ããæå³ã§ããã
é¢æ°ãå®è¡ããã¨ã1ãã¨è¡¨ç¤ºãããã
ãã©ãã°ã¢ã³ãããããã§å ¨ã¦ã®è¡ã«åæ ãããã¨ãå ç¨è²ä»ããè¡ãªã£ãç®æã®ã¿ã2ãã¨è¡¨ç¤ºããã¦ãããã¨ãåããã