æ¦è¦
ã2005å¹´5æ13æ¥ã«å¯æ±ºããããå½æ°ã®ç¥æ¥ã«é¢ããæ³å¾ã®ä¸é¨ãæ¹æ£ããæ³å¾æ¡ãã«ãã£ã¦ãåæ¥åã³ç¿æ¥ãç¥æ¥ã®å ´åããã®éã«ã¯ãã¾ããå¹³æ¥ã¯ãå½æ°ã®ä¼æ¥ãã¨ãªãã¾ãããå½æ°ã®ä¼æ¥ãã®å¤å®ã«ã¯ããç§åã®æ¥ããæ°´ææ¥ãã©ããã調ã¹ãã°ããã§ãããã
ãæ¬ç¨¿ã§ã¯ããã®åå¾ã®æ¥ãç¥æ¥ã®å ´åããã®æ¥ããå½æ°ã®ä¼æ¥ãã¨ããæ¹æ³ãç´¹ä»ãã¾ãã
æä½æé
ããµã³ãã«ãã¡ã¤ã«ã®B4ã»ã«ã«ã¯ããããããA4ã»ã«ã空ç½ã®å ´åã¯ç©ºç½ããã以å¤ã®å ´åã¯ãå½æ°ã®ä¼æ¥ãã¨è¡¨ç¤ºããããã«æ°å¼ãå ¥åãã¦ããã¾ãã
=IF(A4="","","å½æ°ã®ä¼æ¥")
- ãµã³ãã«ãã¡ã¤ã«ãsample.xlsããéãã¾ãã
- A4ã»ã«ãé¸æãã¦ãï¼»é¢æ°ã®æ¿å
¥ï¼½ãã¿ã³ãã¯ãªãã¯ãã¾ãã
- ï¼»é¢æ°ã®æ¿å
¥ï¼½ãã¤ã¢ãã°ããã¯ã¹ã®ï¼»é¢æ°ã®åé¡ï¼½ããã¯ã¹ä¸è¦§ãããè«çããé¸æããï¼»é¢æ°åï¼½ã®ä¸è¦§ããIFé¢æ°ãé¸æãã¦ï¼»OKï¼½ãã¿ã³ãã¯ãªãã¯ãã¾ãã
- ï¼»é¢æ°ã®å¼æ°ï¼½ãã¤ã¢ãã°ããã¯ã¹ã®ããããã®å¼æ°ã«ä»¥ä¸ã®ããã«å
¥åãã¾ãã
- è«çå¼ï¼WEEKDAY(A5,2)=3
- çã®å ´åï¼A5-1
- å½ã®å ´åï¼""
- å½æ°ã®ä¼æ¥ã®æ¥ä»ã表示ããã¾ããã
ãA4ã»ã«ã®æ°å¼ã¯ä»¥ä¸ã®éãã§ãã
=IF(WEEKDAY(A5,2)=3,A5-1,"")
åè
ã2009å¹´9æã®ã«ã¬ã³ãã¼ãè¦ãã¨ãä¼æ¥ã4æ¥éé£ç¶ãã¦ãããã¨ã«æ°ã¥ãã¨æãã¾ããããã¯ã2005å¹´5æ13æ¥ã«å¯æ±ºããããå½æ°ã®ç¥æ¥ã«é¢ããæ³å¾ã®ä¸é¨ãæ¹æ£ããæ³å¾æ¡ãã«ãããã®ã§ãã
ããã®æ³å¾ã§ã¯ããã®åæ¥åã³ç¿æ¥ãç¥æ¥ã®å ´åããã®éã«ã¯ãã¾ããå¹³æ¥ããå½æ°ã®ä¼æ¥ãã¨ãã¦å®ãã¦ãã¾ããå ·ä½çã«ã¯ããæ¬èã®æ¥ï¼9æã®ç¬¬3æææ¥ï¼ãã9æ21æ¥ã®å ´åã9æ23æ¥ã®ç§åã®æ¥ã¯æ°´ææ¥ã¨ãªãããã9æ22æ¥ã¯ç¥æ¥ã§æã¾ãããã¨ã«ãªãã¾ãããã£ã¦ã9æ22æ¥ããå½æ°ã®ä¼æ¥ãã¨ãªãã¾ãã
ãã¤ã¾ããç§åã®æ¥ãæ°´ææ¥ã®å ´åããå½æ°ã®ä¼æ¥ãããã®åæ¥ã«çºçãããã¨ã«ãªãã¾ãã
ããããExcelã§æ±ããã«ã¯ãIFé¢æ°ã¨WEEKDAYé¢æ°ãå©ç¨ãã¦ãç§åã®æ¥ããæ±ããã»ã«ãåç §ãããã®æ¥ãæ°´ææ¥ã®å ´åã«ãã®åæ¥ã®æ¥ä»ããå½æ°ã®ä¼æ¥ãã¨ãã¦æ±ããã¨ããã§ãããã
é¢æ° | æ¸å¼ | 説æ |
---|---|---|
IF | IF(è«çå¼,çã®å ´å,å½ã®å ´å) |
|
WEEKDAY | WEEKDAY(ã·ãªã¢ã«å¤,種é¡) |
|