<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 - Subtotal function to obtain the number of particular non numeric values"
   href="https://bugs.documentfoundation.org/show_bug.cgi?id=133506">133506</a>
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>Subtotal function to obtain the number of particular non numeric values
          </td>
        </tr>

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

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

        <tr>
          <th>Hardware</th>
          <td>All
          </td>
        </tr>

        <tr>
          <th>OS</th>
          <td>All
          </td>
        </tr>

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

        <tr>
          <th>Severity</th>
          <td>enhancement
          </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>thierry.munoz@free.fr
          </td>
        </tr></table>
      <p>
        <div>
        <pre>Description:
With the subtotal function it's easy to obtain the number of filtered values
with the function SUBTOTAL(3;cells_range).
But it's not possible to obtain the number of filtered values where there is a
particular text value.

Steps to Reproduce:
1.Open the attachment file to understand the enhancement requested.
2.There is an array1 with autofilter in A1:B13
3.There is an array2 in A16:B19 to display, in yellow cells, the number of
values (P, D and A) of the filtered array1 with column A values.
4. Now, to obtain the results in array2, we need to use an other column in
array1 with a subtotal formula (for instance, in C2 the formula is
"=IF(SUBTOTAL(3,B2),B2,"").

Actual Results:
It seems not possible to obtain directly this with SUBTOTAL formula.

Expected Results:
Enhance SUBTOTAL formula to count the number of particular values after
applying a filter.
It could be "=SUBTOTAL(3;COUNTIF(range;criteria))" or
"=SUBTOTAL(3;range;criteria)".


Reproducible: Always


User Profile Reset: No



Additional Info:</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>