Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 35
Default Help with altering a formula

I am using the following formula as part of my data source for a chart and it
works perfectly. It sums column D, rows 2 through 20K where the value in
column A, rows 2 through 20K = cell G2 and where the value in column E, rows
2 through 20K = 1. The SUBTOTAL allows for any filtering on my source tab
(AAT_Raw_Data) to dynamically get factored in.

=SUMPRODUCT(SUBTOTAL(9,OFFSET(AAT_Raw_Data!$D$2:AA T_Raw_Data!$D$20000,ROW(AAT_Raw_Data!$D$2:AAT_Raw_ Data!$D$20000)-ROW(AAT_Raw_Data!$D$2),0,1)),--(AAT_Raw_Data!$A$2:AAT_Raw_Data!$A$20000=G2),--(AAT_Raw_Data!$E$2:AAT_Raw_Data!$E$20000=1))

I need to alter this a bit. I need a count of cells in column B, rows 2
through 20K where the value in column A, rows 2 through 20K = cell G2 and
where the value in column D, rows 2 through 20K = 180. I still need to
factor in any filtering that might happen on tab (AAT_Raw_Data).

It seems the only real difference is that I need a count instead of a sum. A
couple of the column references are changing, but that's not what I'm stuck
on.

Can someone help me with this?
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 15,768
Default Help with altering a formula

Try this:

=SUMPRODUCT(SUBTOTAL(3,OFFSET(AAT_Raw_Data!B2:B200 00,ROW(AAT_Raw_Data!B2:B20000)-ROW(AAT_Raw_Data!B2),0,1)),--(AAT_Raw_Data!A2:A20000=G2),--(AAT_Raw_Data!D2:D20000=180))

--
Biff
Microsoft Excel MVP


"cherman" wrote in message
...
I am using the following formula as part of my data source for a chart and
it
works perfectly. It sums column D, rows 2 through 20K where the value in
column A, rows 2 through 20K = cell G2 and where the value in column E,
rows
2 through 20K = 1. The SUBTOTAL allows for any filtering on my source tab
(AAT_Raw_Data) to dynamically get factored in.

=SUMPRODUCT(SUBTOTAL(9,OFFSET(AAT_Raw_Data!$D$2:AA T_Raw_Data!$D$20000,ROW(AAT_Raw_Data!$D$2:AAT_Raw_ Data!$D$20000)-ROW(AAT_Raw_Data!$D$2),0,1)),--(AAT_Raw_Data!$A$2:AAT_Raw_Data!$A$20000=G2),--(AAT_Raw_Data!$E$2:AAT_Raw_Data!$E$20000=1))

I need to alter this a bit. I need a count of cells in column B, rows 2
through 20K where the value in column A, rows 2 through 20K = cell G2 and
where the value in column D, rows 2 through 20K = 180. I still need to
factor in any filtering that might happen on tab (AAT_Raw_Data).

It seems the only real difference is that I need a count instead of a sum.
A
couple of the column references are changing, but that's not what I'm
stuck
on.

Can someone help me with this?



  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 35
Default Help with altering a formula

Worked like a c-h-a-r-m!

Much thanks!


"T. Valko" wrote:

Try this:

=SUMPRODUCT(SUBTOTAL(3,OFFSET(AAT_Raw_Data!B2:B200 00,ROW(AAT_Raw_Data!B2:B20000)-ROW(AAT_Raw_Data!B2),0,1)),--(AAT_Raw_Data!A2:A20000=G2),--(AAT_Raw_Data!D2:D20000=180))

--
Biff
Microsoft Excel MVP


"cherman" wrote in message
...
I am using the following formula as part of my data source for a chart and
it
works perfectly. It sums column D, rows 2 through 20K where the value in
column A, rows 2 through 20K = cell G2 and where the value in column E,
rows
2 through 20K = 1. The SUBTOTAL allows for any filtering on my source tab
(AAT_Raw_Data) to dynamically get factored in.

=SUMPRODUCT(SUBTOTAL(9,OFFSET(AAT_Raw_Data!$D$2:AA T_Raw_Data!$D$20000,ROW(AAT_Raw_Data!$D$2:AAT_Raw_ Data!$D$20000)-ROW(AAT_Raw_Data!$D$2),0,1)),--(AAT_Raw_Data!$A$2:AAT_Raw_Data!$A$20000=G2),--(AAT_Raw_Data!$E$2:AAT_Raw_Data!$E$20000=1))

I need to alter this a bit. I need a count of cells in column B, rows 2
through 20K where the value in column A, rows 2 through 20K = cell G2 and
where the value in column D, rows 2 through 20K = 180. I still need to
factor in any filtering that might happen on tab (AAT_Raw_Data).

It seems the only real difference is that I need a count instead of a sum.
A
couple of the column references are changing, but that's not what I'm
stuck
on.

Can someone help me with this?



.

  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 15,768
Default Help with altering a formula

You're welcome. Thanks for the feedback!

--
Biff
Microsoft Excel MVP


"cherman" wrote in message
...
Worked like a c-h-a-r-m!

Much thanks!


"T. Valko" wrote:

Try this:

=SUMPRODUCT(SUBTOTAL(3,OFFSET(AAT_Raw_Data!B2:B200 00,ROW(AAT_Raw_Data!B2:B20000)-ROW(AAT_Raw_Data!B2),0,1)),--(AAT_Raw_Data!A2:A20000=G2),--(AAT_Raw_Data!D2:D20000=180))

--
Biff
Microsoft Excel MVP


"cherman" wrote in message
...
I am using the following formula as part of my data source for a chart
and
it
works perfectly. It sums column D, rows 2 through 20K where the value
in
column A, rows 2 through 20K = cell G2 and where the value in column E,
rows
2 through 20K = 1. The SUBTOTAL allows for any filtering on my source
tab
(AAT_Raw_Data) to dynamically get factored in.

=SUMPRODUCT(SUBTOTAL(9,OFFSET(AAT_Raw_Data!$D$2:AA T_Raw_Data!$D$20000,ROW(AAT_Raw_Data!$D$2:AAT_Raw_ Data!$D$20000)-ROW(AAT_Raw_Data!$D$2),0,1)),--(AAT_Raw_Data!$A$2:AAT_Raw_Data!$A$20000=G2),--(AAT_Raw_Data!$E$2:AAT_Raw_Data!$E$20000=1))

I need to alter this a bit. I need a count of cells in column B, rows 2
through 20K where the value in column A, rows 2 through 20K = cell G2
and
where the value in column D, rows 2 through 20K = 180. I still need to
factor in any filtering that might happen on tab (AAT_Raw_Data).

It seems the only real difference is that I need a count instead of a
sum.
A
couple of the column references are changing, but that's not what I'm
stuck
on.

Can someone help me with this?



.



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
Altering text colours using a formula barry24uk Excel Discussion (Misc queries) 1 October 2nd 07 12:48 PM
Move source without altering formula barnabel Excel Discussion (Misc queries) 2 February 10th 07 02:01 PM
Altering VLookup Formula addie Excel Worksheet Functions 1 February 16th 06 01:04 AM
Values won't display after altering a formula. Mike O Excel Worksheet Functions 1 March 13th 05 11:21 PM
Formula keeps altering by itself! Julie P. Excel Worksheet Functions 3 February 2nd 05 10:20 AM


All times are GMT +1. The time now is 09:40 AM.

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

About Us

"It's about Microsoft Excel"