Excelã®EOMONTHé¢æ°ã¯ããã®é¢æ°ã®ååï¼End of Monthï¼ããæã®æçµæ¥ã ããæ±ããé¢æ°ã§ãããã®ããã«è¦ãã¾ãããã®ããããææ«ãæ±ããã¨ãã¯å¿ ãEOMONTHé¢æ°ã使ããæåã¾ãã¯æã®éä¸ãæ±ããã¨ãã¯DATEé¢æ°ã使ããã¨åéããã¦ãã人ãå¤ãããã§ãã
ãã®èãæ¹ã¯èª¤ãã§ããDATEé¢æ°ã§æ¥ã«ã¡ã«ãï¼ããæå®ããã°ææ«æ¥ãæ±ãããã¨ãã§ãã¾ããéã«ãEOMONTHé¢æ°ã¯æ¥æ°ãå æ¸ç®ãããã¨ã«ãã£ã¦ææ«ä»¥å¤ã®æ¥ä»ãæ±ãããã¨ãã§ãã¾ãã
DATEé¢æ°ã¯3ã¤ã®åå¥ã®å¤ï¼å¹´ã»æã»æ¥ï¼ãåãåãã®ã«å¯¾ãã¦ãEOMONTHé¢æ°ã¯ã·ãªã¢ã«å¤ãå¼æ°ã¨ãã¾ããããã2ã¤ã®é¢æ°ã®éãã¯å¹´ã»æã»æ¥ãå¥ã ã«åãåãã®ãã1åã®ã·ãªã¢ã«å¤ãåãåãã®ãã¨ãããã¨ã§ãã£ã¦ãææ«ãã©ããã¯å ¨ãé¢ä¿ããã¾ããã
ããã§ãä»åã¯ãEOMONTHé¢æ°ã¨DATEé¢æ°ã®ä½¿ãåãã«ã¤ãã¦åºé¡ãã¾ãã2ã¤ã®é¢æ°ã®æ£ããä»æ§ãç¥ã£ã¦ãæ£ãã使ç¨ãã¾ãããã
ç®æ¬¡
- ï¼ï¼ææ«ã ããEOMONTHé¢æ°ï¼
- ï¼ï¼æåã ããDATEé¢æ°ï¼
- ï¼ï¼TODAYã®å ´å
- ï¼ï¼æã®æ¥æ°ã®è¨ç®
- ï¼ï¼ææ«ã®1é±é
- ï¼ï¼æã®éä¸ã ããDATEé¢æ°ï¼
- ï¼ï¼ãããã«
ï¼ï¼ææ«ã ããEOMONTHé¢æ°ï¼
åé¡
ã»ã«A2ã«ã·ãªã¢ã«å¤ã®æ¥ä»ãã»ã«ç¯å²D2:E2ã«å¹´æãã»ã«H2ã«å¹´ææ¥ã8æ¡ã§å ¥åããããããã«å¯¾å¿ããææ«æ¥ãããããã·ãªã¢ã«å¤ã§æ±ããªããã
Â
解説
æ¥ä»ã®ã·ãªã¢ã«å¤ã«ã¤ãã¦ã¯ãå½ãµã¤ãã§ä½åã解説ãã¦ãã¾ãã®ã§ã詳ããã¯ãã¡ãã®è¨äºãã覧ãã ããã
- ãExcelãæ¥ä»ã®ãã·ãªã¢ã«å¤ããæ¬æ°ã§ç解ããã«ã¯ä½ãç·´ç¿ããã¹ããï¼
- ãExcelãå®å ¨ãã¹ã¿ã¼ï¼æ¥ä»ã®è¶³ãç®ã¨å¼ãç®ã使ã£ãæ¥æ°ã®è¨ç®åé¡
æå®ãããæ¥ä»ããææ«ã®æ¥ä»ãæ±ããã«ã¯EOMONTHé¢æ°ã使ãã®ãæ®éã§ãï¼åèï¼ãExcelãEOMONTHé¢æ°ã¯ææ«ãæ±ããé¢æ°ã§ãããæåãè¨ç®ã§ãã¾ãï¼ã
- =EOMONTH(A2,0)
Â
EOMONTHé¢æ°ã¯å¼æ°ã¨ãã¦æ¥ä»ã®ã·ãªã¢ã«å¤ãæå®ããææ«æ¥ã«ç¸å½ããã·ãªã¢ã«å¤ãè¿ãé¢æ°ã§ããç°¡åã«è¨ãã°ãã·ãªã¢ã«å¤ããã·ãªã¢ã«å¤ãæ±ãã¾ãã
Â
ãããã£ã¦ãå ã®æ¥ä»ãã·ãªã¢ã«å¤ã¨ãã¦å ¥åããã¦ããªãå ´åã¯ååã¨ãã¦EOMONTHé¢æ°ã使ã£ã¦ã¯ããã¾ããã決ãã¦ãææ«ã ããEOMONTHé¢æ°ãã ã¨æã£ã¦ã¯ããã¾ãããå¹´ã¨æãåããã¦å ¥åããã¦ããå ´åã¯DATEé¢æ°ãæ¿å ¥ãã¾ããæã«1ã足ãã¦ãæ¥ã«ã¡ã«ã0ããæå®ãã¾ãã
- =DATE(D2,E2+1,0)
Â
ãã®æ°å¼ã¯ãæã«1ã足ããæ¥ã«ã¡ã0ã«ãã¦ããã®ã§ãç¿ææåã®1æ¥åï¼ä»ææ«ã表ãã¦ããã®ã§ãã
Â
DATEé¢æ°ã¯æ¥ã«ã¡ã«ã0ããæå®ãããã¨ã§ææ«æ¥ãæ±ãããã¨ãã§ãã¾ãã
- å ææ«ï¼=DATE(å¹´,æ,0)
- ä»ææ«ï¼=DATE(å¹´,æ+1,0)
- æ¥ææ«ï¼=DATE(å¹´,æ+2,0)
ã¨ããã§ããã®æ°å¼ã«ã¯2ã¤ã®çåç¹ãããã¾ãã
- 12æã®å ´åã«1ã足ãã¨13æã«ãªãã®ã§ã¯ï¼
- æ¥ã«ã¡ã«0ãæå®ãã¦ããã®ãï¼
ãã®ç¹ã«ã¤ãã¦ã¯ããã¤ã¯ãã½ããå ¬å¼ãµã¤ãã®DATEé¢æ°ã®è§£èª¬ã«ã¯ã£ããã¨æè¨ããã¦ãã¾ãã
ã¾ãã13æã«ãªãã®ãï¼ã¨ãããã¨ã«ã¤ãã¦ã¯ãæã12ãã大ããå ´åãæå®ãããå¹´ã®æåã®æã«ãã®ææ°ãå ããããã¨è¨è¼ããã¦ãã¾ãã
If month is greater than 12, month adds that number of months to the first month in the year specified.
Â
æ£ç¢ºã«ã¯ã12æãè¶ ããå ´åã¯ãæå®ãããå¹´ã®1æãã1ãã¨ãã¦æ°ãã該å½ããå¹´æãè¿ãã¨ããæå³ã§ãããããã£ã¦ã13æã«ãªã£ãå ´åã¯èªåçã«ç¿å¹´ã®1æãè¿ãã®ã§ã¾ã£ããåé¡ããã¾ãããDATEé¢æ°ã®ä»æ§éãã®ä½¿ãæ¹ã§ãããæ£ãã使ãæ¹ã§ãã
Â
次ã«ãæ¥ã«ã¡ã«0ãæå®ãã¦ããã®ãï¼ã¨ãããã¨ã«ã¤ãã¦ãæ¥ã1ããå°ããå ´åãæå®ãããæã®æåã®æ¥ããããã®æ¥æ°ï¼ï¼æå®ããæ¥ã«ã¡ã®çµ¶å¯¾å¤ï¼ã«1ãå ãã大ãããå¼ãããã¨è¨è¼ããã¦ãã¾ãã
If day is less than 1, day subtracts the magnitude that number of days, plus one, from the first day of the month specified.
Â
ç°¡åã«è¨ãã°ãæå®ãããæã®1æ¥ãã1ãã¨ãã¦ãæ¥ä»ãããã®ã¼ã£ã¦è¿ãã¨ããæå³ã§ãããããã£ã¦ãï¼æ¥ï¼åæã®æ«æ¥ãè¿ãã®ã§ã¾ã£ããåé¡ããã¾ãããããããDATEé¢æ°ã®ä»æ§éãã®ä½¿ãæ¹ã§ãããæ£ãã使ãæ¹ã§ãã
Â
ä¾ãã°ãã=DATE(2020,13,0)ãã¯2020å¹´ã®å¤§ã¿ãããæãã¾ãã
Â
ãã®ããã«ãææ«æ¥ãæ±ããã¨ãã«ãè¨ç®ã®å ã¨ãªãå¤ãã·ãªã¢ã«å¤ã®å ´åã¯EOMONTHé¢æ°ã使ãã¾ãããããã§ãªãå ´åã¯DATEé¢æ°ã使ãã¾ããææ«ã ããEOMONTHã¨ããããã§ã¯ãªããã·ãªã¢ã«å¤ã ããEOMONTHé¢æ°ããªã®ã§ãã
EOMONTHé¢æ°ã¯ãã·ãªã¢ã«å¤ã§å ¥åããã¦ããæ¥ä»ãããããå¹´ã»æã»æ¥ã«åãã¦ããææ«æ¥ãæ±ããã¨ããæéãçãããã«ããé¢æ°ãªã®ã§ããããéã«ãã¯ããããå¹´ã»æã»æ¥ããã©ãã©ã«å ¥åããã¦ããç¶æ ã®å ´åã«EOMONTHé¢æ°ã使ãå¿ è¦ã¯ãªãã®ã§ãã
Â
å¹´ææ¥ã8æ¡ã§å ¥åããã¦ããå ´åãTEXTé¢æ°ã使ãã°ã·ãªã¢ã«å¤ã«å¤æã§ãã¾ãï¼åèï¼ãExcelãTEXTé¢æ°ã§æ°å¤ãæ¥ä»ãæå»ã®ã·ãªã¢ã«å¤ã«å¤æãããæ¥ä»ã®å¤ææ¹æ³ã¾ã¨ãï¼ã
ã¾ããLEFTé¢æ°ã¨MIDé¢æ°ã使ãã°å¹´ã¨æãåå¾ãããã¨ãå¯è½ã§ãï¼åèï¼ãExcelãLEFTé¢æ°ãRIGHTé¢æ°ãMIDé¢æ°ã§æååãæ½åºããæ¹æ³ã®åºæ¬ä¾é¡ï¼ããããã£ã¦ãEOMONTHé¢æ°ã»DATEé¢æ°ã®ã©ã¡ããç¨ãã¦ãæ§ããªãã¨ãããã¨ã«ãªãã¾ãã
Â
EOMONTHé¢æ°ã使ãå ´åããã®å¼æ°ã¯ã·ãªã¢ã«å¤ãªã®ã§TEXTé¢æ°ãæ¿å ¥ãã¾ãããªããEOMONTHé¢æ°ã®å¼æ°ã«æ¥ä»æååãæå®ããå ´åã¯èªåçã«æ¥ä»ã®ã·ãªã¢ã«å¤ã¨ãã¦æ±ãã¾ãã®ã§ã1ãæããçã®æ°å¤åã¯ä¸è¦ã§ãã
- =EOMONTH(TEXT(H2,"0000-00-00"),0)
Â
DATEé¢æ°ã使ãå ´åããã®å¼æ°ã¯å¹´ã»æã»æ¥ãªã®ã§LEFTé¢æ°ã¨MIDé¢æ°ã使ã£ã¦å¹´ã¨æãåãåºãã¾ããæã«1ã足ãã¦ãæ¥ã«ã¡ã«ã0ããæå®ãã¾ãã
- =DATE(LEFT(H2,4),MID(H2,5,2)+1,0)
Â
ï¼ï¼æåã ããDATEé¢æ°ï¼
åé¡
ã»ã«ç¯å²A2:B2ã«å¹´æãã»ã«E2ã«ã·ãªã¢ã«å¤ã®æ¥ä»ãã»ã«H2ã«å¹´ææ¥ã8æ¡ã§å ¥åãããå æã®æåã®æ¥ä»ãããããã·ãªã¢ã«å¤ã§æ±ããªããã
Â
解説
æåãæ±ããã«ã¯DATEé¢æ°ã§ãæ¥ã«ã¡ã«1ãæå®ããã°ããã§ãã
- =DATE(A2,B2-1,1)
Â
ã¡ãªã¿ã«ãæãã1ãå¼ãã¨ã1æã®åæã0æã«ãªã£ã¦ãã¾ãã¾ããåé¡ããã¾ããããã¤ã¯ãã½ããå ¬å¼ãµã¤ãã«ã¯ãæã1ããå°ããå ´åãæå®ãããå¹´ã®æåã®æããããã®ææ°ï¼ï¼æå®ããæã®çµ¶å¯¾å¤ï¼ã«1ãå ãã大ãããå¼ãããã¨ããã¾ãã
If month is less than 1, month subtracts the magnitude of that number of months, plus 1, from the first month in the year specified.
Â
ããã»ã©ã®æ¥ã«ã¡ã¨åãèãæ¹ã§ã0æï¼åå¹´ã®12æã¨èªåçã«è§£éããã¾ãã
Â
ã·ãªã¢ã«å¤ãå ¥åããã¦ããå ´åã¯EOMONTHé¢æ°ã使ãã¾ãã2ãæåã®ææ«ã«1ã足ãã¾ãã
- =EOMONTH(E2,-2)+1
Â
EOMONTHé¢æ°ã¯ææ«æ¥ãæ±ããé¢æ°ã§ããããã®ç¿æ¥ã¯æåãªã®ã§æåãæ±ããé¢æ°ã§ããããã¨ã«æ³¨æãã¾ãããææ«ãããªãããEOMONTHãããªããã¨èããã®ã¯èª¤ãã§ãï¼åèï¼ãExcelãEOMONTHé¢æ°ã¯ææ«ãæ±ããé¢æ°ã§ãããæåãè¨ç®ã§ãã¾ãï¼ã
- å ææåï¼=EOMONTH(ã·ãªã¢ã«å¤,-2)+1
- ä»ææåï¼=EOMONTH(ã·ãªã¢ã«å¤,-1)+1
- æ¥ææåï¼=EOMONTH(ã·ãªã¢ã«å¤,0)+1
ãã®ããã«ãæåã®æ¥ä»ãæ±ããã¨ãã«ãè¨ç®ã®å ã¨ãªãå¤ãã·ãªã¢ã«å¤ã®å ´åã¯EOMONTHé¢æ°ã使ãã¾ãããããã§ãªãå ´åã¯DATEé¢æ°ã使ãã¾ãããã·ãªã¢ã«å¤ã ããEOMONTHé¢æ°ããªã®ã§ããã·ãªã¢ã«å¤ã§å ¥åããã¦ããæ¥ä»ãããããå¹´ã»æã»æ¥ã«åãã¦ããæåãæ±ããå¿ è¦ã¯ãªãã®ã§ãã
Â
å¹´ææ¥ã8æ¡ã§å ¥åããã¦ããå ´åãEOMONTHé¢æ°ã»DATEé¢æ°ã®ã©ã¡ããç¨ãã¦ãæ§ãã¾ãããEOMONTHé¢æ°ã使ãå ´åããã®å¼æ°ã¯ã·ãªã¢ã«å¤ãªã®ã§TEXTé¢æ°ãæ¿å ¥ãã¾ãã
- =EOMONTH(TEXT(H2,"0000-00-00"),-2)+1
Â
DATEé¢æ°ã使ãå ´åããã®å¼æ°ã¯å¹´ã»æã»æ¥ãªã®ã§ LEFTé¢æ°ã¨MIDé¢æ°ã使ã£ã¦å¹´ã¨æãåãåºãã¾ãã
- =DATE(LEFT(H2,4),MID(H2,5,2)-1,1)
Â
ï¼ï¼TODAYã®å ´å
åé¡
TODAYé¢æ°ãç¨ãã¦ãæ¬æ¥ã®æ¥ä»ãåºæºã¨ãã¦ä»ææ«ã¨åææåã®æ¥ä»ãããããã·ãªã¢ã«å¤ã§æ±ããªããã
Â
解説
TODAYé¢æ°ã¯ç¾å¨ã®æ¥ä»ã表ãã·ãªã¢ã«å¤ãè¿ãã¾ãã
Â
ãããã£ã¦ãææ«ã§ãããã¨ãæåã§ãããã¨EOMONTHé¢æ°ã使ãã¾ãã大äºãªãã¨ãªã®ã§ä½åº¦ãç¹°ãè¿ãã¾ããããã·ãªã¢ã«å¤ã ããEOMONTHé¢æ°ããªã®ã§ãã
- =EOMONTH(TODAY(),0)
- =EOMONTH(TODAY(),-2)+1
Â
ï¼ï¼æã®æ¥æ°ã®è¨ç®
ï¼ï¼ï¼EOMONTHé¢æ°ã¯ä¸è¦ã§ã
åé¡
ã»ã«A1ã«è¥¿æ¦ã4æ¡ã§å ¥åãããAåã®æã«ã¤ãã¦ããããæ¥æ°ãæ±ããªãããã¾ããå¹´æã6æ¡ã®æ°å¤ã§å ¥åããå ´åã¯ã©ããã
Â
解説
æã®æ¥æ°ã¯ããããã®æã®æ«æ¥ãæ±ãã¦ããã®æ¥ã«ã¡ã ããåãåºãã¾ãããã®æãEOMONTHé¢æ°ã使ãã¹ãããDATEé¢æ°ã使ãã¹ããããã£ããã¨èãã¾ãããããã®å ´åãã·ãªã¢ã«å¤ãä½ãå¿ è¦ãç¡ãã®ã§DATEé¢æ°ã使ãã¾ãã
- =DAY(DATE($A$1,A4+1,0))
Â
å¹´æã6æ¡ã®æ°å¤ã§å ¥åããå ´åãã·ãªã¢ã«å¤ã«å¤æããã°EOMONTHé¢æ°ã使ã£ã¦æ±ãããã¨ãå¯è½ã§ãã
- =DAY(EOMONTH(TEXT(D4,"0000-00-1"),0))
Â
ããããLEFTã¨RIGHTã§å¹´ã»æãåããã»ããåãããããã¨æãã¾ãã
- =DAY(DATE(LEFT(D4,4),RIGHT(D4,2)+1,0))
Â
ï¼ï¼ï¼ãããå¹´ã®å¤å®
åé¡
ã»ã«A1ã«1901年以éã®è¥¿æ¦ã4æ¡ã§å ¥åããããããå¹´ã§ããã°TRUEãããã§ãªããã°FALSEã¨è¡¨ç¤ºããªããã
Â
解説
ãããå¹´ã¯ã西æ¦ã4ã®åæ°ã§ã100ã®åæ°ã§ã¯ãªããã¾ãã¯400ã®åæ°ã§å¤å®ãããã°ããã§ããã1901年以éã§ããã°2æã®æ¥æ°ãæ±ããã°ç°¡åã«å¤å®ã§ãã¾ãã
- (4ã®åæ° and 100ã®åæ°ã§ãªã) or 400ã®åæ°
- 2æã®æ¥æ°=29
ããã»ã©ã®åé¡ã¨åãããã«ã2æã®æ«æ¥ï¼3æ0æ¥ï¼ãDATEé¢æ°ã使ã£ã¦æ±ãã¾ãã
- =DAY(DATE(A1,3,0))
Â
ããã29ã§ããã°ãããå¹´ã§ãã
- =DAY(DATE(A1,3,0))=29
Â
ï¼ï¼ææ«ã®1é±é
åé¡
ã»ã«ç¯å²A2:B2ã«å¹´æãå ¥åããããã®æã®æå¾ã®1é±éã®éå§æ¥ã¨çµäºæ¥ãæ±ããªããã
Â
解説
çµäºæ¥ã¯ææ«ãªã®ã§ã=DATE(A2,B2+1,0)ãã§ãã
Â
éå§æ¥ã¯ãã®6æ¥åãªã®ã§ã=DATE(A2,B2+1,-6)ãã§ããåè¿°ã®ã¨ãããå¼æ°ã«ãã¤ãã¹ãæå®ãã¦ãå ¨ãåé¡ã¯ããã¾ããã
Â
ç¿ææåã®1é±éåï¼7æ¥åï¼ãªã®ã§ã=DATE(A2,B2,1)-7ãã¨èãããã¨ãã§ãã¾ãã
Â
ã¤ã¾ããDATEé¢æ°ã®æ¥ã«ã¡ã¨ãã®ç´å¾ã«ãã足ãç®ã»å¼ãç®ã¯ç´æ¥è¨ç®ãããã¨ãã§ãã¾ãã
Â
ï¼ï¼æã®éä¸ã ããDATEé¢æ°ï¼
åé¡
ã»ã«ç¯å²A2:B2ã«å¹´æãã»ã«E2ã«ã·ãªã¢ã«å¤ã®æ¥ä»ãå ¥åãããç¿æã®15æ¥ãããããã·ãªã¢ã«å¤ã§æ±ããªããã
Â
解説
15æ¥ã«åºå®ããã¨ãã¯ãDATEé¢æ°ã®æ¥ã«ã¡ã«15ãæå®ããã°ããã§ãã
- =DATE(A2,B2+1,15)
Â
ã·ãªã¢ã«å¤ãå ¥åããã¦ããå ´åã¯EOMONTHé¢æ°ã使ãã¾ããä»ææ«ã«15ã足ãã¾ãï¼åèï¼ãExcelãEOMONTHé¢æ°ãç¨ããç· ãæ¥ã®è¨ç®ãç¿æã®æ¯ææ¥ã®è¨ç®ï¼ã
- =EOMONTH(E2,0)+15
Â
EOMONTHé¢æ°ã¯ææ«æ¥ãæ±ããé¢æ°ã§ãããããã«15ãå ç®ããã°ç¿æã®15æ¥ã«ãªãã¾ãã15æ¥ã§ãã£ã¦ãEOMONTHé¢æ°ã使ãã¾ããè¨ç®ã®å ã¨ãªãå¤ãã·ãªã¢ã«å¤ã®å ´åã¯EOMONTHé¢æ°ã使ãã¾ãããããã§ãªãå ´åã¯DATEé¢æ°ã使ãã¾ãã
- å æ15æ¥ï¼=EOMONTH(ã·ãªã¢ã«å¤,-2)+15
- ä»æ15æ¥ï¼=EOMONTH(ã·ãªã¢ã«å¤,-1)+15
- æ¥æ15æ¥ï¼=EOMONTH(ã·ãªã¢ã«å¤,0)+15
Â
ï¼ï¼ãããã«
ãããä¸ã«ã¯ä¸è¨ã®ä»æ§ãæ£ãã解説ãã¦ããªããµã¤ããæ£è¦ãããããããæ®å¿µãªããå½ãµã¤ããããæ¤ç´¢ä¸ä½ã«ããã¾ããå°ã£ããã¨ã§ãããã
å½ãµã¤ãã«ã¯æ¥ä»ã¨æå»ã®é¢æ°ã«é¢ããè¨äºãããããããã¾ãã®ã§ãæéã®ããæã«ãã²åå¼·ãã¦ã¿ã¦ãã ããã
Â
解説ã¯ä»¥ä¸ã§ãã
Â