Excelæ¥åã«ã¤ã¼ã³ããã°
ã»ã«å ã®è©²å½ããæååãæ°ãã
ã»ã«A2ã«ãããã¿èãé»ç¨®èãçç´ èãã¤ãèãã¨å ¥åããã¦ãã¦ããã®ä¸ãããèãã¨ããæåãä½æåå ¥ã£ã¦ããããç´æ¥èª¿ã¹ãé¢æ°ã¯Excelã«ã¯ããã¾ããã
è¤æ°ã»ã«ã«ç¹å®ã®æåæ°ãå ¥åããã¦ããã»ã«æ°ãæ°ããã«ã¯ãCOUNTIFé¢æ°ã使ãã¾ãããããã¾ã§1ã¤ã®ã»ã«ã«è©²å½æåãä½æåå ¥ã£ã¦ãã¦ãã«ã¦ã³ãæ°ã¯1ã«ãªã£ã¦ãã¾ãã¾ãã
ããã§ãä»åã¯ããã®ãããªå ´åã«ä½¿ããè¨ç®æ¹æ³ã解説ãã¾ãã
æååãæ°ããæ¹æ³
æååãç´æ¥æ°ããé¢æ°ã¯ãªãã®ã§ã次ã®ããã«èãã¾ãã
- ã»ã«å ã®æåæ°ãæ±ããLENé¢æ°ã§ãã»ã«å ã®å ¨ã¦ã®æåæ°ãæ°ãã¾ã
- ã»ã«ã«å ¥åããã¦ããæååãããæ¢ãããæåãä»ã®æååã«ç½®ãæããSUBSTUTUTEé¢æ°ã使ã£ã¦ç©ºç½æåã¨ç½®æãããã¨ã§çãã¾ã
- 2ã®æåæ°ããLENé¢æ°ã使ã£ã¦æ±ãã¾ã
- 1ã®çµæãã3ã®çµæãå·®ãå¼ãã¾ã
- ããã¾ã§ã§æåæ°ãæ±ãããã¨ãã§ãã¾ãããã ããæ¢ãæåããèã1æåãªãã°ããã®ã§ããã2æå以ä¸ã®å ´åãããã¾ããããã§ã次ã®5以éã®è¨ç®æ¹æ³ã追å ãã¾ãã
- æ¢ãæåã®æåæ°ãLENé¢æ°ã§æ±ãã¾ã
- 4ã®çµæã5ã®çµæã§å²ãã¾ã
ããã§æ¢ãæåãä½æåã§ã対å¿ã§ããããã«ãªãã¾ãã
è¨ç®å¼ã®ä½æ
ã§ã¯ã»ã«A2å ¥ã£ã¦ããå ã®æååã®ä¸ã«ãæ¢ãæååãä½åãããæ°ããæ°å¼ãèãã¦ã¿ã¾ãããã
ã¾ãã1ã®é¨åã®è¨ç®å¼ã¯ãã»ã«A2ã®æåæ°ãLENé¢æ°ã§æ±ããã®ã§æ¬¡ã®è¨ç®å¼ã«ãªãã¾ãã
=LEN(A2)
2ã®é¨åã®è¨ç®å¼ã¯ãã»ã«A2ããæ¢ãæåãSUBSTITUTEé¢æ°ã§ç©ºç½æåã«å¤æããã®ã§æ¬¡ã®è¨ç®å¼ã«ãªãã¾ãã
=SUBSTITUTE(A2,æ¢ãæå,"")
3ã®é¨åã®è¨ç®å¼ã¯ã2ã®æåæ°ãLENé¢æ°ã§æ±ããã®ã§æ¬¡ã®è¨ç®å¼ã«ãªãã¾ãã
=LEN(SUBSTITUTE(A2,æ¢ãæå,""))
4ã®è¨ç®å¼ã¯1ãã3ãå¼ãã®ã§æ¬¡ã®è¨ç®å¼ã§ãã
=LEN(A2)-LEN(SUBSTITUTE(A2,æ¢ãæå,""))
5ã®è¨ç®å¼ã¯æ¢ãæåã®æåæ°ãLENé¢æ°ã§æ±ããã®ã§æ¬¡ã®éãã§ãã
=LEN(æ¢ãæå)
6ã®è¨ç®å¼ã¯4÷5ãªã®ã§æ¬¡ã®éãã§ãã
=LEN(A2)-LEN(SUBSTITUTE(A2,æ¢ãæå,""))/LEN(æ¢ãæå)
ããã§è¨ç®å¼ãåºæ¥ä¸ããã§ãã
ã»ã«A2ã®ä¸ã«ãã»ã«B1ã«å
¥åããã¦ããæååãä½åå
¥ã£ã¦ããããæ±ããã«ã¯æ¬¡ã®è¨ç®å¼ã§ãã
=LEN(A2)-LEN(SUBSTITUTE(A2,B1,""))/LEN("è")
ä¸è¨ã®è¡¨ã«ããã¦ãã»ã«A2ã®ä¸ã«ãèããä½åå
¥ã£ã¦ããããæ±ããã«ã¯æ¬¡ã®è¨ç®å¼ã§ãã
=LEN(A2)-LEN(SUBSTITUTE(A2, "è",""))/LEN("è")
ç´æ¥æååãè¨ç®å¼ã«å
¥åããã®ã§ã" "ã§å²ã¿ã¾ãã
ã¾ã¨ã
xcelã«ã¯æ°å¤ãã®é¢æ°ãç¨æããã¦ãã¾ãããå®éã®ä»äºã§ãããããã¨ããºããªæ±ãããããªé¢æ°ããªãã±ã¼ã¹ãããã¾ãããã®ãããªå ´åã¯ãä»åã®ããã«ãè¨ç®ã®æ¹æ³ãé çªã工夫ãããã¨ãéè¦ã«ãªã£ã¦ãã¾ãã足ãç®ãã§ããªããã°ãå¼ãç®ãã®ããã«éã®æ¹æ³ã§çãã«ãã©ãçããã¨ãã§ãã¾ãã
Forguncyããã£ã¨ããç¥ã
åæ¥ç¨®ãç¨éå¥ã«Forguncyãæ´»ç¨ãã¦ãæåããäºä¾ã使ãæ¹ã®ãç´¹ä»ãã¾ãã