Week numbers in Excel

文章推薦指數: 80 %
投票人數:10人

To get the ISO week number (1-53) for a date in cell A1 , use =ISOWEEKNUM( A1 ) . The is supported in Excel 2013 and later, and Excel 2011 for Mac and later ... Weeknumber.com Calendarwithweeknumbersandholidays How-to ☰ WeeknumbersinExcel Howtogettheweeknumberfromadate TogettheISOweeknumber(1-53)foradateincellA1,use=ISOWEEKNUM(A1). TheissupportedinExcel2013andlater,andExcel2011forMacandlater. Togetthecorrespondingyear,use=YEAR(A1-WEEKDAY(A1,2)+4). ReadmoreaboutISOWEEKNUM()andWEEKDAY()intheExcelHelpCenter. Howtogetthedatefromaweeknumber TogetthedateoftheMondayinaweek,use=DATE(A1,1,-3+7*B1-WEEKDAY(DATE(A1,1,4),2)+1). CellA1containsthefour-digityear(e.g.2013),andcellB2containstheweeknumber(1-53). Howtogetthenumberofweeksinayear TogettheofISOweeksinayear(i.e.thenumberofthelastweek),use=ISOWEEKNUM(DATE(A1,12,28)). CellA1containsthefour-digityear(e.g.2012). Weeknumbersin… Software iPhone iPad Excel GoogleSheets LibreOfficeCalc OpenOfficeCalc Programming Go Java JavaScript PHP Python Ruby Swift Databases MicrosoftSQLServer MySQL Oracle PostgreSQL Alotofsoftwarethatdealwithdateshaspoorsupportforweeknumber,inparticulartheISOweeknumberingschemethatisusedonthissite. Theconceptofweeknumbersisvirtuallyunknowninlargepartsoftheworld,soaddingsupportforthemisnothighontheagendaformostsoftwarecompanies. However,withafewtricksitisoftenpossibletomakeweeknumberscalculations,eveniftheapplicationdoesnothavenativesupportforweeknumbers. Thesepagesexplainhowtouseweeknumbersinvariouspopularsoftwareapplicationsandprogramminglanguages. × Ourpartnerswillcollectdataandusecookiesforadpersonalizationandmeasurement. Learnmore No Agree



請為這篇文章評分?