ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Discussion (Misc queries) (https://www.excelbanter.com/excel-discussion-misc-queries/)
-   -   subtotal on 2 columns (https://www.excelbanter.com/excel-discussion-misc-queries/109162-subtotal-2-columns.html)

moon11

subtotal on 2 columns
 
I have 3 fields: CustNo, CustName, Amount
I want to subtotal the Amount column by either the customer number or the
customer name but I want both of those values (CustNo and CustName) to appear
on the subtotal line. Currently only the one field that I subtotal by will
appear on the subtotal line. My workaround is to make the blank cell equal to
the one above it and then copy/paste special values but I am wondering if
there is an easier way to do this.

ChristopherTri

subtotal on 2 columns
 
If each customer name has only one number, you can add a column and use the
Concantenate function to combine CustNo and CustName into one cell which you
can use for subtotals.



"moon11" wrote:

I have 3 fields: CustNo, CustName, Amount
I want to subtotal the Amount column by either the customer number or the
customer name but I want both of those values (CustNo and CustName) to appear
on the subtotal line. Currently only the one field that I subtotal by will
appear on the subtotal line. My workaround is to make the blank cell equal to
the one above it and then copy/paste special values but I am wondering if
there is an easier way to do this.



All times are GMT +1. The time now is 06:38 AM.

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