Subtotal with more than one Function

  • Thread starter Thread starter Abdul
  • Start date Start date
A

Abdul

Hello!,

Is there a way in Excel (2007) that I can use more than one function
in a Subtotal?

For eg:

I want my Column A to use COUNTA and Column B:F to use SUM Function

Thanks
 
You could apply SUM to both columns and then go and change the subtotal
formula on one from =SUBTOTAL(9,... to =SUBTOTAL(3,... on each subtotal
(this could be done with Replace Ctrl-H).

--
---
HTH

Bob


(there's no email, no snail mail, but somewhere should be gmail in my addy)
 
Thanks for your suggestion Mr. Bob,

I am doing the subtotal on a large dynamic range data using VBA.

It is a multi column data with several Locations and based on each
chnage of Location I am having a Subtotal (SUM) for many columns and I
need a COUNT of Data in one Column.

Is it possible to achieve this using VBA?

Thanks,
 
Just do the equivalent edit|replace in code.

with worksheets("somesheetnamehere")
.range("x1").entirecolumn.replace what:="=subtotal(9,", _
replacement:="=subtotal(3,", ....
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads

Calculating subtotals 22
Color fill based on multiple conditions 1
Subtotal Formatting 2
Subtotal function 2
Issue with nested data subtotals 3
Subtotal function 7
labels for subtotals 1
Excel Subtotals 2

Back
Top