ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Worksheet Functions (https://www.excelbanter.com/excel-worksheet-functions/)
-   -   Subtotals multiple columns (https://www.excelbanter.com/excel-worksheet-functions/33852-subtotals-multiple-columns.html)

john liem

Subtotals multiple columns
 

How can I have subtotals of Col. "C" (sum of price) at each change in
Col. "A" (product) or Col. "H" (country) on 1 line? I want to have the
subtotals below the data line. Has somebody a VBA script for it? I am
using Excel 2003, thanks.


--
john liem

Gary L Brown

Create a 'Helper' column with a formula such as...
=A2 & H2
Then use this column for the 'At each change in:' of DataSubtotals to
create a subtotal in Col C.
HTH,
--
Gary Brown

If this post was helpful, please click the ''''Yes'''' button next to
''''Was this Post Helpfull to you?".


"john liem" wrote:


How can I have subtotals of Col. "C" (sum of price) at each change in
Col. "A" (product) or Col. "H" (country) on 1 line? I want to have the
subtotals below the data line. Has somebody a VBA script for it? I am
using Excel 2003, thanks.


--
john liem



All times are GMT +1. The time now is 08:29 PM.

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