ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Worksheet Functions (https://www.excelbanter.com/excel-worksheet-functions/)
-   -   Auto Filter + subtotal (https://www.excelbanter.com/excel-worksheet-functions/36832-auto-filter-subtotal.html)

alex

Auto Filter + subtotal
 
How I can add a subtotal/total line below a list with auto-filter ?

KL

Hi,

Just go to the end of the list, skip one empty line and in the next line use
the function SUBTOTAL(). The 1st argument will be the operation you want to
perform (e.g. 1 for Average, 9 for Sum, etc. see Excel's Help for the
function) and the 2nd is the range you want to total including hidden and
visible rows.

Regards,
KL


"alex" wrote in message
...
How I can add a subtotal/total line below a list with auto-filter ?




alex

thanks for reply.
the problem is that when i choose some criteria in one of the columns to
filter the list, the subtotal dissapears

"KL" wrote:

Hi,

Just go to the end of the list, skip one empty line and in the next line use
the function SUBTOTAL(). The 1st argument will be the operation you want to
perform (e.g. 1 for Average, 9 for Sum, etc. see Excel's Help for the
function) and the 2nd is the range you want to total including hidden and
visible rows.

Regards,
KL


"alex" wrote in message
...
How I can add a subtotal/total line below a list with auto-filter ?





KL

that's becuase you need to ensure that there is at least one totally empty
row between your subtotals and the last row of the table being filtered.

regards,
KL

"alex" wrote in message
...
thanks for reply.
the problem is that when i choose some criteria in one of the columns to
filter the list, the subtotal dissapears

"KL" wrote:

Hi,

Just go to the end of the list, skip one empty line and in the next line
use
the function SUBTOTAL(). The 1st argument will be the operation you want
to
perform (e.g. 1 for Average, 9 for Sum, etc. see Excel's Help for the
function) and the 2nd is the range you want to total including hidden and
visible rows.

Regards,
KL


"alex" wrote in message
...
How I can add a subtotal/total line below a list with auto-filter ?







alex

thanks, it works now..

"KL" wrote:

that's becuase you need to ensure that there is at least one totally empty
row between your subtotals and the last row of the table being filtered.

regards,
KL

"alex" wrote in message
...
thanks for reply.
the problem is that when i choose some criteria in one of the columns to
filter the list, the subtotal dissapears

"KL" wrote:

Hi,

Just go to the end of the list, skip one empty line and in the next line
use
the function SUBTOTAL(). The 1st argument will be the operation you want
to
perform (e.g. 1 for Average, 9 for Sum, etc. see Excel's Help for the
function) and the 2nd is the range you want to total including hidden and
visible rows.

Regards,
KL


"alex" wrote in message
...
How I can add a subtotal/total line below a list with auto-filter ?








All times are GMT +1. The time now is 08:48 AM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
ExcelBanter.com