<html>
    <head>
      <base href="https://bugs.documentfoundation.org/">
    </head>
    <body><table border="1" cellspacing="0" cellpadding="8">
        <tr>
          <th>Bug ID</th>
          <td><a class="bz_bug_link 
          bz_status_UNCONFIRMED "
   title="UNCONFIRMED - Calc busy loop when using VLOOKUP"
   href="https://bugs.documentfoundation.org/show_bug.cgi?id=116192">116192</a>
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>Calc busy loop when using VLOOKUP
          </td>
        </tr>

        <tr>
          <th>Product</th>
          <td>LibreOffice
          </td>
        </tr>

        <tr>
          <th>Version</th>
          <td>6.0.1.1 release
          </td>
        </tr>

        <tr>
          <th>Hardware</th>
          <td>x86-64 (AMD64)
          </td>
        </tr>

        <tr>
          <th>OS</th>
          <td>Mac OS X (All)
          </td>
        </tr>

        <tr>
          <th>Status</th>
          <td>UNCONFIRMED
          </td>
        </tr>

        <tr>
          <th>Severity</th>
          <td>normal
          </td>
        </tr>

        <tr>
          <th>Priority</th>
          <td>medium
          </td>
        </tr>

        <tr>
          <th>Component</th>
          <td>Calc
          </td>
        </tr>

        <tr>
          <th>Assignee</th>
          <td>libreoffice-bugs@lists.freedesktop.org
          </td>
        </tr>

        <tr>
          <th>Reporter</th>
          <td>tsunanet@gmail.com
          </td>
        </tr></table>
      <p>
        <div>
        <pre>Description:
Simple uses of VLOOKUP can make Calc busy loop forever

Steps to Reproduce:
1. Create a new spreadsheet
2. On Sheet1, insert the following 3 rows 2 columns:
colA colB
foo  1
bar  2

3. Add Sheet2 and insert the following 2 columns 2 rows:
colA colB
foo

in cell B2 on Sheet2 (under "colB") enter the following formula:
=VLOOKUP(A2, Sheet1.A:B, 2, 0)

Actual Results:  
Upon hitting enter Calc will start to busy loop and peg the CPU at 100%.

Expected Results:
The formula in cell B2 should evaluate to "1".


Reproducible: Always


User Profile Reset: No



Additional Info:
Sometimes the formula manages to get evaluated before Calc starts to busy loop.


User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_13_3) AppleWebKit/537.36
(KHTML, like Gecko) Chrome/66.0.3355.0 Safari/537.36</pre>
        </div>
      </p>


      <hr>
      <span>You are receiving this mail because:</span>

      <ul>
          <li>You are the assignee for the bug.</li>
      </ul>
    </body>
</html>