<html>
    <head>
      <base href="https://bugs.documentfoundation.org/">
    </head>
    <body><span class="vcard"><a class="email" href="mailto:erack@redhat.com" title="Eike Rathke <erack@redhat.com>"> <span class="fn">Eike Rathke</span></a>
</span> changed
          <a class="bz_bug_link 
          bz_status_NEW "
   title="NEW - INDEX function insufficiently documented (see comment 8)"
   href="https://bugs.documentfoundation.org/show_bug.cgi?id=128800">bug 128800</a>
          <br>
             <table border="1" cellspacing="0" cellpadding="8">
          <tr>
            <th>What</th>
            <th>Removed</th>
            <th>Added</th>
          </tr>

         <tr>
           <td style="text-align:right;">Version</td>
           <td>6.2.8.2 release
           </td>
           <td>Inherited From OOo
           </td>
         </tr>

         <tr>
           <td style="text-align:right;">CC</td>
           <td>
                
           </td>
           <td>olivier.hallot@libreoffice.org
           </td>
         </tr>

         <tr>
           <td style="text-align:right;">OS</td>
           <td>Linux (All)
           </td>
           <td>All
           </td>
         </tr>

         <tr>
           <td style="text-align:right;">Component</td>
           <td>Calc
           </td>
           <td>Documentation
           </td>
         </tr>

         <tr>
           <td style="text-align:right;">Ever confirmed</td>
           <td>
                
           </td>
           <td>1
           </td>
         </tr>

         <tr>
           <td style="text-align:right;">Status</td>
           <td>UNCONFIRMED
           </td>
           <td>NEW
           </td>
         </tr>

         <tr>
           <td style="text-align:right;">Hardware</td>
           <td>x86-64 (AMD64)
           </td>
           <td>All
           </td>
         </tr>

         <tr>
           <td style="text-align:right;">Summary</td>
           <td>INDEX function behaviour inconsistent with function wizard and 'tooltip'
           </td>
           <td>INDEX function insufficiently documented (see comment 8)
           </td>
         </tr></table>
      <p>
        <div>
            <b><a class="bz_bug_link 
          bz_status_NEW "
   title="NEW - INDEX function insufficiently documented (see comment 8)"
   href="https://bugs.documentfoundation.org/show_bug.cgi?id=128800#c8">Comment # 8</a>
              on <a class="bz_bug_link 
          bz_status_NEW "
   title="NEW - INDEX function insufficiently documented (see comment 8)"
   href="https://bugs.documentfoundation.org/show_bug.cgi?id=128800">bug 128800</a>
              from <span class="vcard"><a class="email" href="mailto:erack@redhat.com" title="Eike Rathke <erack@redhat.com>"> <span class="fn">Eike Rathke</span></a>
</span></b>
        <pre>The INDEX() function is always good for some confusion.. ;-)

What happens here with  {=INDEX(range2;1)}  is that range2 is a one-dimensional
row vector F4:H4, in which case if the Column argument is entirely omitted the
Row argument acts as a column offset into the vector. The function then returns
a reference to a single cell, here F4, which for the array result is repeated
as often as necessary.

Specifying the Column argument as empty like in  {=INDEX(range2;1;)}  lets the
function return a row vector of the width of the given range, here the first of
(the only) F4:H4. Same with Column 0 as in  {=INDEX(range2;1;0)}

That Excel does not handle  {=INDEX(range1;1)}  as the first row vector of
B4:D6 to return B4:D4 and gives #REF! in that case seems to be their
implementation detail. There is no actual reason not to do so.

I agree that our help is lacking details, compare with
<a href="https://docs.oasis-open.org/office/v1.2/os/OpenDocument-v1.2-os-part2.html#INDEX">https://docs.oasis-open.org/office/v1.2/os/OpenDocument-v1.2-os-part2.html#INDEX</a>
and also note the more detailed syntax there

  INDEX( ReferenceList|Array DataSource ; [ Integer Row ] [ ; [ Integer Column
] ] [ ; Integer AreaNumber = 1 ] )

regarding optional and omitted parameters.

Forwarding to documentation.</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>