Get week number from date - Excel formula - Exceljet

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

Get week number from date · Generic formula. =WEEKNUM(date) · Summary. To get the week number from a date, you can use the WEEKNUM function. · Explanation. The ... Skiptomaincontent Getweeknumberfromdate Genericformula  =WEEKNUM(date) Summary  Togettheweeknumberfromadate,youcanusetheWEEKNUMfunction.Intheexampleshown,theformulainC5,copieddown,is: =WEEKNUM(B5) Explanation  TheWEEKNUMfunctiontakesadateandreturnsaweeknumber(1-54)thatcorrespondstotheweekofyear.TheWEEKNUMfunctionstartscountingwiththeweekthatcontainsJanuary1.WEEKNUM takestwoarguments: adate,and(optionally) return_type,whichcontrolstheschemeusedtocalculatetheweeknumber.  Bydefault,theWEEKNUMfunctionusesaschemewhereweek1 beginsonJanuary1,andweek2beginsonthenextSunday(whenthereturn_typeargumentisomitted,orsuppliedas1).Withareturn_typeof2, week1 beginsonJanuary1,andweek2beginsonthenextMonday. SeetheWEEKNUMpageformoreinformation. ISOweeknumber ISOweeknumbers,startontheMondayofthefirstweekinayearwithaThursday. ThismeansthatthefirstdayoftheyearforISOweeksisalwaysaMondayintheperiodbetweenJan29andJan4.StartingwithExcel2010,youcangenerateanISOweeknumberusing21asthereturn_type: =WEEKNUM(date,21) StartinginExcel2013,thereisanewfunctioncalledISOWEEKNUM. Formoredetails,seeRondeBruin'snicewrite-uponExcelweeknumbers. Author  DaveBruns Relatedformulas  Getdaynamefromdate Inthisexample,thegoalistogetthedayname(i.e.Monday,Tuesday,Wednesday,etc.)fromagivendate.ThereareseveralwaystogoaboutthisinExcel,dependingonyourneeds.Thisarticleexplainsthreeapproaches:Displaydatewithacustom... Getmonthfromdate TheMONTHfunctiontakesjustoneargument,thedatefromwhichtoextractthemonth.Intheexampleshown,theformulais:=MONTH(B4)whereB4containsthedateJanuary5,2016.TheMONTHfunctionreturnsthenumber1representingthemonth(... Getyearfromdate TheYEARfunctiontakesjustoneargument,thedatefromwhichyouwanttoextracttheyear.Intheexample,theformulais:=YEAR(B4)B4containsadatevalueforJanuary5,2016.TheYEARfunctionreturnsthenumber2016representingtheyear... Relatedfunctions  ExcelWEEKNUMFunction TheExcelWEEKNUMfunctiontakesadateandreturnsaweeknumber(1-54)thatcorrespondstotheweekofyear.TheWEEKNUMfunctionstartscountingontheweekthatcontainsJanuary1.Bydefault,weeksbeginonSunday,butthiscanbechanged. ExcelISOWEEKNUMFunction TheExcelISOWEEKNUMfunctiontakesadateandreturnsaweeknumber(1-54)thatfollowsISOstandards,whereweeksbeginonMondayandweeknumber1isassignedtothefirstweekinayearthatcontainsaThursday. Goodlinks  WeeknumbersinExcel(RondeBruin) Relatedcourses  CoreFormula ExcelFormulaTraining FormulasarethekeytogettingthingsdoneinExcel. Inthisacceleratedtraining,you'lllearnhowtouseformulastomanipulatetext,workwithdatesandtimes,lookupvalueswithVLOOKUPandINDEX&MATCH,countandsumwithcriteria,dynamicallyrankvalues,andcreatedynamicranges.You'llalsolearnhowtotroubleshoot,traceerrors,andfixproblems.Instantaccess. Seedetails here. 500Formulas| 101Functions Download100+ImportantExcelFunctions Getover100ExcelFunctionsyoushouldknowinonehandyPDF. Email HP Topics FormulaBasics Formula Examples ConditionalFormatting PivotTables ExcelTables ExcelCharts Shortcuts More... Keyfunctions IFfunction VLOOKUP function XLOOKUP function FILTER function SUMIFSfunction COUNTIFSfunction SUMPRODUCTfunction INDEXandMATCH Morefunctions... Hi-I'mDaveBruns,andIrunExceljetwithmywife,Lisa.OurgoalistohelpyouworkfasterinExcel.Wecreate shortvideos,andclearexamplesofformulas,functions,pivottables,conditionalformatting,andcharts. Readmore. I'vehadtocreateaworkbookwithformulasthataresomewhatcomplicated(forme)andI'vebeenabletodothisinshortorderwithyourhelp.Therearealotofexcelresourcesoutthere,someareprettygood,butyourlayout,explanationsandlinkstosimilarformulasarethebest.-Leesha Excelvideotraining Quick,clean,andtothepoint. Learnmore



請為這篇文章評分?