â»åäœç°å¢ã¯Microsoft 365ãŸãã¯Excel 2021以éã®ããŒãžã§ã³ã«ãªããŸã
ã¯ããã«
ãèšäºãæ åœããã®ã¯ããã£ãŒãããžã¡ã³ãã® ãã£ã ã§ãã
ãä»åã¯ãæ¯èŒçæ°ããé¢æ°ã§ããUNIQUEé¢æ°ã®ã玹ä»ãããããšæããŸãã
ãååã®éããŠããŒã¯ãªå€ (éè€ã®ç¡ãå¯äžã®å€) ãååŸããããšãã§ããé¢æ°ã§ããã䜿çšã«ã¯ã¡ãã£ãšãã工倫ãå¿ èŠã«ãªããŸãã
ã被ãã®ãªããªã¹ããäœæãããããã®ä»¶æ°ãããŒã¿ã¿ãã®ãéè€ã®åé€ãã䜿çšããŠæ°ããŠããå Žåã«ã¯ããã²ãã®èšäºãåèã«UNIQUEé¢æ°ã掻çšããŠã¿ãŠãã ããïŒ
éè€ãé€ããã»ã«ã®æ°ãã«ãŠã³ããã
ãéè€ãé€ãããªã¹ããååŸããUNIQUEé¢æ°ãçšããŠãéè€ãé€ããã»ã«ã®æ°ãæ°ããŠã¿ãŸãã
ããŸãUNIQUEé¢æ°ã§éè€ãé€ãããåãæå®ããŸãã
ãäŸ) Aåã®éè€ãé€ãããªã¹ããäœæããã
ãã= UNIQUE ( A:A )
ãUNIQUEé¢æ°ã«éè€ãé€ãããåãæå®ããã ãã§ã¯ã1è¡ç®ã®èŠåºãã空çœã»ã«ãŸã§å«ãŸããŠããããšãããããŸãã
ããã®ãããFILTERé¢æ°ãçšããŠã空çœãç¡èŠãããŸãã
ãäŸ) Aåã®éè€ãšç©ºçœãé€ãããªã¹ããäœæããã
ãã= UNIQUE ( FILTER ( A:A , A:A <>"" ) )
ãèŠåºãè¡ã¯COUNTAé¢æ°ã§æ°ãã«ãŠã³ãããŠããã-1ããè¡ããŸãã
ãäŸ) Aåã®éè€ãšç©ºçœãé€ããã»ã«ã®æ°ãã«ãŠã³ãããã
ãã= COUNTA ( UNIQUE ( FILTER ( A:A , A:A <>"" ) ) ) - 1
ããªãèŠåºãè¡ãFILTERé¢æ°ã§å ã«é€å€ããã«æåŸã«ã-1ããè¡ã£ãããšãããšã
ãCOUNTAé¢æ°ãèšç®çµæã空çœã§ãã£ãŠããèšç®åŒãå ¥ã£ãŠããã»ã«ãŸã§ã«ãŠã³ãããŠããŸãããã§ãã
ãã€ãŸããUNIQUEé¢æ°ã§ç©ºçœåãæå®ããŠããã1ããšãªãã®ã§ãã
ãäŸ) Aåã®å€ãå šãŠæ¶ããŠãã1ã«ãŠã³ãããã
ããã®ããããããŠå¿ ã1ã«ãŠã³ããããã»ã«ãå«ããŠæ°ããŠã
ãæåŸã«ã-1ããããããšã§ã空çœåãæå®ããæã«ã¯ã0ããè¿ãããã«å·¥å€«ããŠããŸãã
ãããã«
ãExcelã«ã¯å¹Žã æ°ããé¢æ°ãå¢ããŠãããŸãããã€ãã€ã䜿ãæ £ããé¢æ°ã䜿ã£ãŠããŸããã¡ã§ãã
ãããããäœæããExcelã¯ãã¡ããã§ãããããŸã«ã¯éå»ã«äœæãããã¡ã€ã«ãèŠçŽããŠãææ°ã®é¢æ°ãè©ŠããŠã¿ãã®ã倧åã§ããâ
次ã®èšäºãž (2024/2/22è¿œèš)ãâãExcel éè€ãé€ããŠã«ãŠã³ãããâ¡