Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 137
Default Subtotal with more than one Function

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

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 10,593
Default Subtotal with more than one Function

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)



"Abdul" wrote in message
...
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



  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 137
Default Subtotal with more than one Function

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,



Bob Phillips wrote:
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)



"Abdul" wrote in message
...
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

  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 35,218
Default Subtotal with more than one Function

Just do the equivalent edit|replace in code.

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



Abdul wrote:

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,

Bob Phillips wrote:
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)



"Abdul" wrote in message
...
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


--

Dave Peterson
Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
SubTotal Function [email protected] Excel Discussion (Misc queries) 3 January 20th 07 04:06 AM
Embed a countif function in subtotal function? Stuck at work Excel Worksheet Functions 1 February 14th 06 03:19 AM
How do I nesting subtotal function within average function in Exc Amy Yeh Excel Worksheet Functions 4 January 19th 05 06:23 PM
Subtotal Function... Jesterhoz[_2_] Excel Programming 3 January 19th 05 05:57 PM
subtotal function arevans Excel Programming 1 August 20th 03 09:32 PM


All times are GMT +1. The time now is 02:57 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"