| Server IP : 121.121.20.254 / Your IP : 216.73.216.142 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>SUM Function</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="func_sum"></a>
<a name="bm_id691636401721449"></a>
<a name="id431636401649762"></a>
<meta itemprop="keywords" content="SUM function">
<meta itemprop="keywords" content="adding,numbers in cell ranges">
<h1 id="hd_id121636398275790" dir="auto">
<a name="sum_head"></a>SUM</h1>
<p id="par_id491636401806866" class="paragraph" dir="auto"><a name="func_sum_desc"></a><span class="avis">Adds a set of numbers.</span></p>
<div class="embedded">
<a name="func_head_syntax"></a>
<h3 id="hd_id126511265112651" dir="auto">Syntax</h3>
</div>
<p id="par_id3163656" class="code" dir="auto">SUM(Number 1 [; Number 2 [; … [; Number 255]]])</p>
<div class="embedded">
<a name="number255"></a>
<p id="par_id931584395947010" class="paragraph" dir="auto"><span class="emph">Number 1, Number 2, … , Number 255</span> are numbers, references to cells or to cell ranges of numbers.</p>
</div>
<div class="embedded">
<a name="datenumbersequencenote"></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_id301616845402409" dir="auto">This function ignores any text or empty cell within a data range. If you suspect wrong results from this function, look for text in the data ranges. To highlight text contents in a data range, use the <a target="_top" href="en-US/text/scalc/01/03080000.html">value highlighting</a> feature.</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_id3163704" class="paragraph" dir="auto"><span class="input" data-tooltip="Click on text to copy to clipboard">=SUM(2;3;4)</span> returns 9.</p>
<p id="par_id3151740" class="paragraph" dir="auto"><span class="input" data-tooltip="Click on text to copy to clipboard">=SUM(A1;A3;B5)</span> calculates the sum of the three cells.</p>
<p id="par_id931636109030406" class="paragraph" dir="auto"><span class="input" data-tooltip="Click on text to copy to clipboard">=SUM(A1:E10)</span> calculates the sum of all cells in the A1 to E10 cell range.</p>
<p id="par_id3151756" class="paragraph" dir="auto">A formula such as <span class="input" data-tooltip="Click on text to copy to clipboard">=SUM((A1:A40>=C1)*(A1:A40<C2)*B1:B40)</span> may be entered as an <a target="_top" href="en-US/text/scalc/01/04060107.html">array formula</a> by pressing the Shift<span id="swlnsyscalcfuncsum_1" class="switchinline"><span hidden="true" id="MACcalcfuncsum_1" class="MAC">+Command</span><span hidden="true" id="defaultcalcfuncsum_1">+Ctrl</span></span>+Enter keys instead of simply pressing the Enter key to finish entering the formula. The formula will then be shown in the Formula bar enclosed in braces and operates by multiplying corresponding elements of the arrays together and returning their sum.</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_id771677014538669" dir="auto"><a target="_blank" href="https://wiki.documentfoundation.org/Documentation/Calc_Functions/SUM">SUM wiki page</a>.</p></div>
</div>
<br>
<p id="par_id381636401121931" class="paragraph" dir="auto">
<a target="_top" href="en-US/text/scalc/01/04060106.html#Section15">SUMIF</a>,
<a target="_top" href="en-US/text/scalc/01/func_sumifs.html">SUMIFS</a>
</p>
</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_sum.xhp" target="_blank">/text/scalc/01/func_sum.xhp</a></p>
<p dir="auto">Title is: SUM Function</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>