<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: SheetError</title>
    <description>The latest articles on DEV Community by SheetError (@sheeterror).</description>
    <link>https://dev.to/sheeterror</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F4211780%2Ff8bda1a8-7674-4680-8daa-c0622e0fd765.png</url>
      <title>DEV Community: SheetError</title>
      <link>https://dev.to/sheeterror</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/sheeterror"/>
    <language>en</language>
    <item>
      <title>Fix "Function ADD parameter 2 expects number values" (#VALUE!) in Google Sheets</title>
      <dc:creator>SheetError</dc:creator>
      <pubDate>Tue, 27 Oct 2026 22:13:03 +0000</pubDate>
      <link>https://dev.to/sheeterror/fix-function-add-parameter-2-expects-number-values-value-in-google-sheets-383f</link>
      <guid>https://dev.to/sheeterror/fix-function-add-parameter-2-expects-number-values-value-in-google-sheets-383f</guid>
      <description>&lt;p&gt;You type &lt;code&gt;=A2+B2&lt;/code&gt;, and instead of a total the cell shows &lt;strong&gt;#VALUE!&lt;/strong&gt;. Hover it and the tooltip says:&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;Function ADD parameter 2 expects number values. But 'pcs' is a text and cannot be coerced to a number.&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;The formula parsed and the function name is fine. Sheets wanted a number and got &lt;strong&gt;text it can't turn into a number&lt;/strong&gt;. Here's how to reproduce it, how to tell it apart from look-alike errors, and three fixes that don't involve IFERROR.&lt;/p&gt;

&lt;h2&gt;
  
  
  Reproduce it in 30 seconds
&lt;/h2&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;&lt;/th&gt;
&lt;th&gt;A (qty)&lt;/th&gt;
&lt;th&gt;B (unit)&lt;/th&gt;
&lt;th&gt;C&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;2&lt;/td&gt;
&lt;td&gt;10&lt;/td&gt;
&lt;td&gt;pcs&lt;/td&gt;
&lt;td&gt;
&lt;code&gt;=A2+B2&lt;/code&gt; → &lt;strong&gt;#VALUE!&lt;/strong&gt;
&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;3&lt;/td&gt;
&lt;td&gt;10&lt;/td&gt;
&lt;td&gt;2&lt;/td&gt;
&lt;td&gt;
&lt;code&gt;=A3+B3&lt;/code&gt; → 12&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;Same operator, different input type. Two more ways to hit the same error:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;code&gt;=VALUE("pcs")&lt;/code&gt; → #VALUE! (VALUE only converts text that already looks like a number, date or time)&lt;/li&gt;
&lt;li&gt;
&lt;code&gt;=DATEVALUE("Widget")&lt;/code&gt; → #VALUE!&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;And the case that surprises people: type &lt;code&gt;'10&lt;/code&gt; (apostrophe, so it's text) in G2, then enter &lt;code&gt;=G2+1&lt;/code&gt; in G3. You get &lt;strong&gt;11&lt;/strong&gt;. Arithmetic &lt;em&gt;will&lt;/em&gt; coerce a text number like &lt;code&gt;'10&lt;/code&gt;. It will not coerce &lt;code&gt;pcs&lt;/code&gt;. That is the whole difference between C2 failing and G3 working.&lt;/p&gt;

&lt;h2&gt;
  
  
  Why SUM doesn't complain but + does
&lt;/h2&gt;

&lt;p&gt;&lt;code&gt;=SUM(A2:B2)&lt;/code&gt; returns &lt;strong&gt;10&lt;/strong&gt;, not an error. SUM skips text silently. The &lt;code&gt;+&lt;/code&gt; operator doesn't. So if a total is "too low" with SUM and errors with &lt;code&gt;+&lt;/code&gt;, you have the same root cause: a text cell in a numeric column.&lt;/p&gt;

&lt;h2&gt;
  
  
  It is not one of these
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;#N/A&lt;/strong&gt; is a lookup/filter miss. Nothing is being looked up here.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;#NAME?&lt;/strong&gt; is an unknown function name (&lt;code&gt;VLOKUP&lt;/code&gt;). Nothing is misspelled here; the + operator (ADD) rejected its argument.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;#ERROR! / Formula parse error&lt;/strong&gt; means the formula couldn't be read at all (a missing bracket or quote, or commas vs semicolons for your locale). This formula parsed.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;#NUM!&lt;/strong&gt; is a number outside a function's domain (e.g. &lt;code&gt;SQRT(-1)&lt;/code&gt;). Here the type was wrong before the domain mattered.&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  Fixes
&lt;/h2&gt;

&lt;p&gt;&lt;strong&gt;1. Keep units out of the math.&lt;/strong&gt; The quantity column holds numbers only. Put the unit in the header, or add it after the calculation:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;=A2&amp;amp;" pcs"      → "10 pcs" (text, for display only)
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;&lt;strong&gt;2. Convert only real text numbers.&lt;/strong&gt;&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;=VALUE(G2)                                   → 10 when G2 is '10
=VALUE(REGEXEXTRACT("10 pcs","[0-9]+"))      → 10 when the digits are inside a string
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Don't wrap every #VALUE! in VALUE and hope; &lt;code&gt;VALUE("pcs")&lt;/code&gt; still fails.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;3. Guard the type when a column may legitimately hold text&lt;/strong&gt; (n/a, pending…):&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;=IF(ISNUMBER(B2), A2+B2, "")
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h2&gt;
  
  
  Why not IFERROR?
&lt;/h2&gt;

&lt;p&gt;&lt;code&gt;IFERROR(A2+B2, 0)&lt;/code&gt; makes the cell look fine, but it also hides #REF! and #DIV/0! if the formula breaks differently later, and it turns "someone typed pcs in the qty column" into a silent wrong total. Fix the input or test the type with ISNUMBER.&lt;/p&gt;




&lt;p&gt;&lt;em&gt;Originally published on &lt;a href="https://sheeterror.com/tutorials/value-error/" rel="noopener noreferrer"&gt;SheetError&lt;/a&gt;, a free library of Google Sheets error fixes (I run it). There's also a 76-second video walkthrough on the &lt;a href="https://www.youtube.com/@sheeterror" rel="noopener noreferrer"&gt;SheetError YouTube channel&lt;/a&gt;.&lt;/em&gt;&lt;/p&gt;

&lt;p&gt;&lt;em&gt;This article was created with the help of AI.&lt;/em&gt;&lt;/p&gt;

</description>
      <category>googlesheets</category>
      <category>spreadsheets</category>
      <category>productivity</category>
      <category>tutorial</category>
    </item>
  </channel>
</rss>
