<?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: TidyGrid Studio</title>
    <description>The latest articles on DEV Community by TidyGrid Studio (@tidygrid).</description>
    <link>https://dev.to/tidygrid</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%2F4269853%2F07ffd61f-bd72-46df-acd5-88125f6d506a.png</url>
      <title>DEV Community: TidyGrid Studio</title>
      <link>https://dev.to/tidygrid</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/tidygrid"/>
    <language>en</language>
    <item>
      <title>VLOOKUP Returns N/A but the Value Is Right There: 5 Causes and Fixes</title>
      <dc:creator>TidyGrid Studio</dc:creator>
      <pubDate>Sat, 28 Nov 2026 01:50:42 +0000</pubDate>
      <link>https://dev.to/tidygrid/vlookup-returns-na-but-the-value-is-right-there-5-causes-and-fixes-off</link>
      <guid>https://dev.to/tidygrid/vlookup-returns-na-but-the-value-is-right-there-5-causes-and-fixes-off</guid>
      <description>&lt;p&gt;&lt;em&gt;This article was written with AI assistance. The formulas were tested in LibreOffice Calc; Sheets-specific messages and menus were checked against Google's help pages and common Sheets guides.&lt;/em&gt;&lt;/p&gt;

&lt;p&gt;You type a VLOOKUP, the item is clearly sitting in the other table, and Google Sheets still says &lt;code&gt;#N/A&lt;/code&gt;. Hover the cell and you get "Did not find value 'X' in VLOOKUP evaluation."&lt;/p&gt;

&lt;p&gt;Sheets is not wrong. It is telling you that the two values are not &lt;em&gt;exactly&lt;/em&gt; the same, or that it is looking in the wrong place. Here are the five causes I see most, in the order worth checking.&lt;/p&gt;

&lt;p&gt;The examples use this setup: the value you look up is in &lt;code&gt;A2&lt;/code&gt;, and the table you search is &lt;code&gt;Prices!A:C&lt;/code&gt; (item names in column A, prices in column C).&lt;/p&gt;

&lt;h2&gt;
  
  
  1. An invisible space
&lt;/h2&gt;

&lt;p&gt;&lt;code&gt;"Apple "&lt;/code&gt; and &lt;code&gt;"Apple"&lt;/code&gt; look identical on screen. To Sheets they are different text.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Check:&lt;/strong&gt; in an empty cell, type &lt;code&gt;=LEN(A2)&lt;/code&gt; and compare it with the number of characters you can see. One more than expected means a trailing space.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Fix:&lt;/strong&gt; trim the value you look up.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;=VLOOKUP(TRIM(A2), Prices!A:C, 3, FALSE)
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;If the spaces are in the table instead, clean that column once: put &lt;code&gt;=ARRAYFORMULA(TRIM(Prices!A2:A))&lt;/code&gt; in an empty column, then copy it and use Edit &amp;gt; Paste special &amp;gt; Values only over the original.&lt;/p&gt;

&lt;p&gt;Data pasted from a website sometimes carries a non-breaking space, which looks like a space but is a different character. TRIM does not remove it. If TRIM does not help, swap it out first:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;=VLOOKUP(TRIM(SUBSTITUTE(A2, UNICHAR(160), " ")), Prices!A:C, 3, FALSE)
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;&lt;code&gt;UNICHAR(160)&lt;/code&gt; is the non-breaking space in Sheets, Excel and LibreOffice alike, so the same formula works if you move the file.&lt;/p&gt;

&lt;h2&gt;
  
  
  2. A number on one side, text on the other
&lt;/h2&gt;

&lt;p&gt;Order IDs, ZIP codes and SKUs are the usual suspects. &lt;code&gt;1042&lt;/code&gt; the number and &lt;code&gt;"1042"&lt;/code&gt; the text are different values, and an exact-match lookup usually will not pair them.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Check:&lt;/strong&gt; &lt;code&gt;=ISNUMBER(A2)&lt;/code&gt; and &lt;code&gt;=ISNUMBER(Prices!A2)&lt;/code&gt;. If one says TRUE and the other FALSE, this is your problem. A quick visual hint: numbers sit on the right of the cell by default, text on the left.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Fix:&lt;/strong&gt; convert the lookup value to match the table.&lt;/p&gt;

&lt;p&gt;Table holds text, you have a number:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;=VLOOKUP(A2&amp;amp;"", Prices!A:C, 3, FALSE)
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Table holds numbers, you have text:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;=VLOOKUP(VALUE(A2), Prices!A:C, 3, FALSE)
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h2&gt;
  
  
  3. The value is not in the first column of the range
&lt;/h2&gt;

&lt;p&gt;VLOOKUP only searches the &lt;strong&gt;first&lt;/strong&gt; column of the range you give it. If you wrote &lt;code&gt;Prices!B:D&lt;/code&gt; but the names live in column A, it searches the wrong column and finds nothing.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Fix:&lt;/strong&gt; start the range at the column that holds what you are searching for. If the result you want sits to the &lt;em&gt;left&lt;/em&gt; of that column, VLOOKUP cannot reach it. Use XLOOKUP instead. Say A2 holds a price and you want the item name: search column C, return column A.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;=XLOOKUP(A2, Prices!C:C, Prices!A:A, "Not found")
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h2&gt;
  
  
  4. The fourth argument is missing or TRUE
&lt;/h2&gt;

&lt;p&gt;&lt;code&gt;=VLOOKUP(A2, Prices!A:C, 3)&lt;/code&gt; leaves out the last argument. Sheets then assumes the first column is sorted and does an approximate search. On an unsorted list this can return &lt;code&gt;#N/A&lt;/code&gt; even though the value exists, or worse, a wrong row with no error at all.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Fix:&lt;/strong&gt; always end with &lt;code&gt;FALSE&lt;/code&gt; for an exact match.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;=VLOOKUP(A2, Prices!A:C, 3, FALSE)
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h2&gt;
  
  
  5. The range moved when you copied the formula down
&lt;/h2&gt;

&lt;p&gt;You wrote &lt;code&gt;=VLOOKUP(A2, Prices!A2:C50, 3, FALSE)&lt;/code&gt; in row 2 and dragged it down. By row 10 it has become &lt;code&gt;Prices!A10:C58&lt;/code&gt;, so items in rows 2 to 9 of the table are no longer searched. The same happens when the table grows past row 50.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Check:&lt;/strong&gt; click a failing cell lower down and read the range in the formula bar.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Fix:&lt;/strong&gt; lock the range with &lt;code&gt;$&lt;/code&gt;, or use whole columns so new rows are included too.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;=VLOOKUP(A2, Prices!$A$2:$C$500, 3, FALSE)
=VLOOKUP(A2, Prices!A:C, 3, FALSE)
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h2&gt;
  
  
  When the value really is missing
&lt;/h2&gt;

&lt;p&gt;Sometimes &lt;code&gt;#N/A&lt;/code&gt; is the right answer: the item is not in the table. Show a clear message instead of an error, but use &lt;code&gt;IFNA&lt;/code&gt;, not &lt;code&gt;IFERROR&lt;/code&gt;. &lt;code&gt;IFNA&lt;/code&gt; only hides "not found". &lt;code&gt;IFERROR&lt;/code&gt; also hides real mistakes like a broken range, so you never find out.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;=IFNA(VLOOKUP(TRIM(A2), Prices!A:C, 3, FALSE), "Not found")
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h2&gt;
  
  
  Quick checklist
&lt;/h2&gt;

&lt;ol&gt;
&lt;li&gt;
&lt;code&gt;=LEN(A2)&lt;/code&gt; longer than it looks? Use TRIM.&lt;/li&gt;
&lt;li&gt;
&lt;code&gt;ISNUMBER&lt;/code&gt; differs between the two sides? Convert with &lt;code&gt;&amp;amp;""&lt;/code&gt; or &lt;code&gt;VALUE&lt;/code&gt;.&lt;/li&gt;
&lt;li&gt;Does the range start at the column you search?&lt;/li&gt;
&lt;li&gt;Does the formula end with &lt;code&gt;FALSE&lt;/code&gt;?&lt;/li&gt;
&lt;li&gt;Did the range shift when copied down? Lock it with &lt;code&gt;$&lt;/code&gt;.&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;If you want a few ready-made formulas for everyday sheet chores (totals by category, duplicate IDs, cleaning pasted prices), we put five of them in a free template pack: &lt;a href="https://tidygridstudio.gumroad.com/l/formula-fix-kit" rel="noopener noreferrer"&gt;Formula Fix Kit&lt;/a&gt;.&lt;/p&gt;

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