| Server IP : 121.121.20.254 / Your IP : 216.73.216.146 Web Server : Microsoft-IIS/10.0 System : Windows NT WEB-SERVER 10.0 build 20348 (Windows Server 2022) AMD64 User : IUSR ( 0) PHP Version : 8.3.28 Disable Function : NONE MySQL : ON | cURL : ON | WGET : OFF | Perl : OFF | Python : OFF | Sudo : OFF | Pkexec : OFF Directory : C:/Program Files/LibreOffice/help/en-US/text/scalc/01/ |
Upload File : |
<!DOCTYPE html>
<html lang="en-US" dir="ltr">
<head>
<base href="../../../../">
<noscript><meta http-equiv="refresh" content="0; URL=../../../../en-US/noscript.html"></noscript>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>WEEKNUM_OOO</title>
<link rel="shortcut icon" href="media/navigation/favicon.ico">
<link type="text/css" href="normalize.css" rel="Stylesheet">
<link type="text/css" href="prism.css" rel="Stylesheet">
<link type="text/css" href="default.css" rel="Stylesheet">
<script type="text/javascript" src="polyfills.js"></script><script type="text/javascript" src="languages.js"></script><script type="text/javascript" src="en-US/langnames.js"></script><script type="text/javascript" src="flexsearch.debug.js"></script><script type="text/javascript" src="prism.js"></script><script type="text/javascript" src="help2.js" defer></script><script type="text/javascript" src="a11y-toggle.js" defer></script><script type="text/javascript" src="paginathing.js" defer></script><script type="text/javascript" src="en-US/bookmarks.js" defer></script><script type="text/javascript" src="en-US/contents.js" defer></script><script type="text/javascript" src="help.js" defer></script><meta name="viewport" content="width=device-width,initial-scale=1">
</head>
<body>
<header id="TopLeftHeader"><a class="symbol" href="en-US/text/shared/05/new_help.html"><div></div></a><a class="logo" href="en-US/text/shared/05/new_help.html"><p dir="auto">LibreOffice 24.2 Help</p></a><div class="dropdowns"><div class="modules">
<button type="button" data-a11y-toggle="modules-nav" id="modules" aria-haspopup="true" aria-expanded="false" aria-controls="modules-nav">Module</button><nav id="modules-nav" hidden=""></nav>
</div></div></header><aside class="leftside"><input id="accordion-1" name="accordion-menu" type="checkbox"><label for="accordion-1" dir="auto">Contents</label><div id="Contents" class="contents-treeview"></div></aside><div id="SearchFrame"><div id="Bookmarks">
<input id="search-bar" type="search" class="search" placeholder="Search in bookmarks for chosen module" dir="auto"><div class="nav-container" tabindex="0"><nav class="index" dir="auto"></nav></div>
</div></div>
<div id="DisplayArea" itemprop="softwareHelp" itemscope="true" itemtype="http://schema.org/SoftwareApplication">
<a name="bm_id3159161"></a><meta itemprop="keywords" content="WEEKNUM_OOO function">
<a name="bm_id3158403"></a>
<h1 id="hd_id3159161" dir="auto">
<a name="weeknum_ooo"></a>WEEKNUM_OOO
</h1>
<p id="par_id3149770" class="paragraph" dir="auto"><span class="avis">WEEKNUM_OOO calculates the week number of the year for the internal date value.</span></p>
<div class="note">
<div class="noteicon" dir="auto"><img src="media/icon-themes/res/helpimg/note.svg" alt="note" style="width:40px;height:40px;"></div>
<div class="notetext"><p id="par_idN105E4" dir="auto">This function exists for interoperability with LibreOffice releases older than 5.1.0 and OpenOffice.org. It calculates week numbers for a week numbering system in that week number 1 is the week that contains the January 4th. This function does not provide interoperability with other spreadsheet applications. For new documents use the <a target="_top" href="en-US/text/scalc/01/func_weeknum.html">WEEKNUM</a> or <a target="_top" href="en-US/text/scalc/01/func_isoweeknum.html">ISOWEEKNUM</a> function instead.</p></div>
</div>
<br>
<div class="embedded">
<a name="func_head_syntax"></a>
<h3 id="hd_id126511265112651" dir="auto">Syntax</h3>
</div>
<p id="par_id3147236" class="code" dir="auto">WEEKNUM_OOO(Number; Mode)</p>
<p id="par_id3147511" class="paragraph" dir="auto">
<span class="emph">Number</span> is the internal date number.</p>
<p id="par_id3154269" class="paragraph" dir="auto">
<span class="emph">Mode</span> sets the start of the week and the calculation type.</p>
<p id="par_id3148930" class="paragraph" dir="auto">1 = Sunday</p>
<p id="par_id3154280" class="paragraph" dir="auto">2 = Monday (ISO 8601)</p>
<p id="par_id3154281" class="paragraph" dir="auto">any other value = Monday (ISO 8601)</p>
<div class="embedded">
<a name="datenumberinfo"></a>
<div class="note">
<div class="noteicon" dir="auto"><img src="media/icon-themes/res/helpimg/note.svg" alt="note" style="width:40px;height:40px;"></div>
<div class="notetext"><p id="par_id3150654" dir="auto">When entering dates as part of formulas, slashes or dashes used as date separators are interpreted as arithmetic operators. Therefore, dates entered in this format are not recognized as dates and result in erroneous calculations. To keep dates from being interpreted as parts of formulas use the DATE function, for example, DATE(1954;7;20), or place the date in quotation marks and use the ISO 8601 notation, for example, "1954-07-20". Avoid using locale dependent date formats such as "07/20/54", the calculation may produce errors if the document is loaded under different locale settings.</p></div>
</div>
<br>
</div>
<div class="embedded">
<a name="datenumberwarn"></a>
<div class="tip">
<div class="noteicon" dir="auto"><img src="media/icon-themes/res/helpimg/tip.svg" alt="tip" style="width:40px;height:40px;"></div>
<div class="notetext"><p id="par_id571535118151091" dir="auto">Unambiguous conversion is possible for ISO 8601 dates and times in their extended formats with separators. If a <span class="emph">#VALUE!</span> error occurs, then unselect <span class="emph">Generate #VALUE! error</span> in <span id="swlnsystextscalc0104060102xml_3" class="switchinline"><span hidden="true" id="MACtextscalc0104060102xml_3" class="MAC"><span class="emph">LibreOffice - Preferences</span></span><span hidden="true" id="defaulttextscalc0104060102xml_3"><span class="emph">Tools - Options</span></span></span> <span class="emph">- LibreOffice Calc - Formula</span>, button <span class="emph">Details...</span> in section "Detailed Calculation Settings", <span class="emph">Conversion from text to number</span> list box.</p></div>
</div>
<br>
</div>
<div class="embedded">
<a name="func_head_example"></a>
<h3 id="hd_id980889808898088" dir="auto">Examples</h3>
</div>
<p id="par_id3150704" class="paragraph" dir="auto"><span class="input" data-tooltip="Click on text to copy to clipboard">=WEEKNUM_OOO(DATE(1995;1;1);1)</span> returns 1</p>
<p id="par_id3149792" class="paragraph" dir="auto"><span class="input" data-tooltip="Click on text to copy to clipboard">=WEEKNUM_OOO(DATE(1995;1;1);2)</span> returns 52. Week 1 starts on Monday, 1995-01-02.</p>
<div class="embedded">
<a name="sectiontechinfo"></a>
<h4 id="hd_id301640873452726" dir="auto">Technical information</h4>
</div>
<div class="embedded">
<a name="5.1"></a>
<div class="tip">
<div class="noteicon" dir="auto"><img src="media/icon-themes/res/helpimg/tip.svg" alt="tip" style="width:40px;height:40px;"></div>
<div class="notetext"><p id="par_id651551401041651" dir="auto">This function is available since LibreOffice 5.1.</p></div>
</div>
<br>
</div>
<div class="embedded">
<a name="notODFF"></a>
<p id="par_id251640873774457" class="paragraph" dir="auto">This function is not part of the <span class="emph">Open Document Format for Office Applications (OpenDocument) Version 1.3. Part 4: Recalculated Formula (OpenFormula) Format</span> standard. The name space is</p>
</div>
<p id="par_id311640873986703" class="paragraph" dir="auto"><span class="literal">ORG.LIBREOFFICE.WEEKNUM_OOO</span></p>
<a name="relatedtopics"></a><div class="relatedtopics">
<p class="related" itemprop="mentions" dir="auto"><a name="related"></a><span class="emph">Related Topics</span>
</p>
<div class="relatedbody" itemprop="mentions">
<div class="tip">
<div class="noteicon" dir="auto"><img src="media/icon-themes/res/helpimg/tip.svg" alt="tip" style="width:40px;height:40px;"></div>
<div class="notetext"><p id="par_id521677013377460" dir="auto"><a target="_blank" href="https://wiki.documentfoundation.org/Documentation/Calc_Functions/WEEKNUM_OOO">WEEKNUM_OOO wiki page</a>.</p></div>
</div>
<br>
<div class="embedded">
<a name="datetimefunctions"></a>
<p id="par_id31577531529079" class="paragraph" dir="auto">Date & Time Functions</p>
<p id="par_id6854457" class="paragraph" dir="auto"> <a target="_top" href="en-US/text/scalc/01/func_date.html">DATE</a>
</p>
<p id="par_id6354457" class="paragraph" dir="auto"> <a target="_top" href="en-US/text/scalc/01/func_datedif.html">DATEDIF</a> </p>
<p id="par_id3372295" class="paragraph" dir="auto"> <a target="_top" href="en-US/text/scalc/01/func_datevalue.html">DATEVALUE</a> </p>
<p id="par_id5375835" class="paragraph" dir="auto"> <a target="_top" href="en-US/text/scalc/01/func_day.html">DAY</a>
</p>
<p id="par_id1208838" class="paragraph" dir="auto"> <a target="_top" href="en-US/text/scalc/01/func_days.html">DAYS</a>
</p>
<p id="par_id7679982" class="paragraph" dir="auto"> <a target="_top" href="en-US/text/scalc/01/func_days360.html">DAYS360</a>
</p>
<p id="par_id591683136920655" class="paragraph" dir="auto"><a target="_top" href="en-US/text/scalc/01/04060111.html#daysinmonth">DAYSINMONTH</a></p>
<p id="par_id661683136902973" class="paragraph" dir="auto"><a target="_top" href="en-US/text/scalc/01/04060111.html#daysinyear">DAYSINYEAR</a></p>
<p id="par_id1074251" class="paragraph" dir="auto"> <a target="_top" href="en-US/text/scalc/01/func_eastersunday.html">EASTERSUNDAY</a>
</p>
<p id="par_id5684377" class="paragraph" dir="auto"> <a target="_top" href="en-US/text/scalc/01/func_edate.html">EDATE</a>
</p>
<p id="par_id1346781" class="paragraph" dir="auto"> <a target="_top" href="en-US/text/scalc/01/func_eomonth.html">EOMONTH</a>
</p>
<p id="par_id224005" class="paragraph" dir="auto"> <a target="_top" href="en-US/text/scalc/01/func_hour.html">HOUR</a>
</p>
<p id="par_id81683136801600" class="paragraph" dir="auto"><a target="_top" href="en-US/text/scalc/01/04060111.html#isleapyear">ISLEAPYEAR</a></p>
<p id="par_id3886533" class="paragraph" dir="auto"> <a target="_top" href="en-US/text/scalc/01/func_isoweeknum.html">ISOWEEKNUM</a>
</p>
<p id="par_id3953062" class="paragraph" dir="auto"> <a target="_top" href="en-US/text/scalc/01/func_minute.html">MINUTE</a>
</p>
<p id="par_id2579729" class="paragraph" dir="auto"> <a target="_top" href="en-US/text/scalc/01/func_month.html">MONTH</a>
</p>
<p id="par_id311683136864113" class="paragraph" dir="auto"><a target="_top" href="en-US/text/scalc/01/04060111.html#months">MONTHS</a></p>
<p id="par_id8951384" class="paragraph" dir="auto"> <a target="_top" href="en-US/text/scalc/01/func_networkdays.html">NETWORKDAYS</a> </p>
<p id="par_id231020162315043955" class="paragraph" dir="auto"> <a target="_top" href="en-US/text/scalc/01/func_networkdays.intl.html">NETWORKDAYS.INTL</a> </p>
<p id="par_id6501968" class="paragraph" dir="auto"> <a target="_top" href="en-US/text/scalc/01/func_now.html">NOW</a>
</p>
<p id="par_id372325" class="paragraph" dir="auto"> <a target="_top" href="en-US/text/scalc/01/func_second.html">SECOND</a>
</p>
<p id="par_id2354503" class="paragraph" dir="auto"> <a target="_top" href="en-US/text/scalc/01/func_time.html">TIME</a>
</p>
<p id="par_id7765434" class="paragraph" dir="auto"> <a target="_top" href="en-US/text/scalc/01/func_timevalue.html">TIMEVALUE</a> </p>
<p id="par_id7576525" class="paragraph" dir="auto"> <a target="_top" href="en-US/text/scalc/01/func_today.html">TODAY</a>
</p>
<p id="par_id9172643" class="paragraph" dir="auto"> <a target="_top" href="en-US/text/scalc/01/func_weekday.html">WEEKDAY</a> </p>
<p id="par_id3886532" class="paragraph" dir="auto"> <a target="_top" href="en-US/text/scalc/01/func_weeknum.html">WEEKNUM</a>
</p>
<p id="par_id614947" class="paragraph" dir="auto"> <a target="_top" href="en-US/text/scalc/01/func_weeknumadd.html">WEEKNUM_EXCEL2003</a>
</p>
<p id="par_id3886534" class="paragraph" dir="auto"> <a target="_top" href="en-US/text/scalc/01/func_weeknum_ooo.html">WEEKNUM_OOO</a>
</p>
<p id="par_id191683136968172" class="paragraph" dir="auto"><a target="_top" href="en-US/text/scalc/01/04060111.html#daysinmonth">WEEKS</a></p>
<p id="par_id511683136985322" class="paragraph" dir="auto"><a target="_top" href="en-US/text/scalc/01/04060111.html#weeksinyear">WEEKSINYEAR</a></p>
<p id="par_idN10683" class="paragraph" dir="auto"> <a target="_top" href="en-US/text/scalc/01/func_workday.html">WORKDAY</a> </p>
<p id="par_id231020163315043955" class="paragraph" dir="auto"> <a target="_top" href="en-US/text/scalc/01/func_workday.intl.html">WORKDAY.INTL</a> </p>
<p id="par_id641193" class="paragraph" dir="auto"> <a target="_top" href="en-US/text/scalc/01/func_year.html">YEAR</a>
</p>
<p id="par_id5189062" class="paragraph" dir="auto"> <a target="_top" href="en-US/text/scalc/01/func_yearfrac.html">YEARFRAC</a> </p>
<p id="par_id81683136834196" class="paragraph" dir="auto"><a target="_top" href="en-US/text/scalc/01/04060111.html#years">YEARS</a></p>
</div>
</div>
</div>
</div>
<div id="DonationFrame"></div>
<footer><div id="DEBUG" class="debug">
<h3 class="bug">Help content debug info:</h3>
<p dir="auto">This page is: <a href="https://opengrok.libreoffice.org/xref/help/source/text/scalc/01/func_weeknum_ooo.xhp" target="_blank">/text/scalc/01/func_weeknum_ooo.xhp</a></p>
<p dir="auto">Title is: WEEKNUM_OOO</p>
<p id="bm_module" dir="auto"></p>
<p id="bm_system" dir="auto"></p>
<p id="bm_HID" dir="auto"></p>
</div></footer>
</body>
</html>