help with drawing data from filtered results

mungojeerie

New Member
Joined
Feb 21, 2011
Messages
17
I have a formula that tells me the number of instances a record appears based on several variables.

the data that this formula draws from is in several columns and each columns header is autofiltered.

Header examples are as follows A- Date, B- Client, C- Model, E- Color etc.

The data can be easily filtered in place to show all instances of a particular date or model number or Color etc.

The table that contains the formula tells me for example how many instances model xyz occours in the color red. This formula draws data from all entries.

I would like to change it to draw data from the filtered results so that I can filter the data by date or customer etc and therefore specify that the formula show me the number instances model xyz occours in red within the filtered results.

The formula Im using to gather the data is as follows:
=SUMPRODUCT(--(ISNUMBER(SEARCH("15.5",$C$44:$C$542))),--($E$44:$E$542="Red"),--($D$44:$D$542="Sport"))

Thank you for looking in advance.

Ryan
 

Excel Facts

Format cells as time
Select range and press Ctrl+Shift+2 to format cells as time. (Shift 2 is the @ sign).
Thank you glenn, I also use this formula in that worksheet for something else: =SUBTOTAL(3,$C$52:C1000) which is the same that you posted for me to look at.

In fact this is the reason I thought, hey... I know it can be done, but how...

how do I work that formula in with my current formula. I basically want to combine the following:

=SUBTOTAL(3,$A$52:A1000) with =SUMPRODUCT(--(ISNUMBER(SEARCH("15.5",$C$44:$C$542))),--($E$44:$E$542="Red"),--($D$44:$D$542="Sport"))
 
Upvote 0
Code:
=SUMPRODUCT(SUBTOTAL(3,OFFSET(A44:A542,ROW(A44:A542)-MIN(ROW(A44:A542)),,1)),--(ISNUMBER(SEARCH("15.5",$C$44:$C$542))),--($E$44:$E$542="Red"),--($D$44:$D$542="Sport"))
as a guess. You'll have to test it. I'm about to log off, and can't test it myself.
 
Upvote 0

Forum statistics

Threads
1,224,514
Messages
6,179,223
Members
452,896
Latest member
IGT

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top