Filter + Sumproduct + Countif + Wildcard!

kaiser14

New Member
Joined
May 17, 2004
Messages
20
Hi All,

I am currently using the following formula designed by Aladin Akyurek to find matches for a certain date when I am using a filter:

SUMPRODUCT(SUBTOTAL(3,OFFSET('Approved TSPs'!K1:'Approved TSPs'!K9999,ROW('Approved TSPs'!K1:'Approved TSPs'!K9999)-MIN(ROW('Approved TSPs'!K1:'Approved TSPs'!K9999)),,1))*( 'Approved TSPs'!K1:'Approved TSPs'!K9999TSPs'!K9999="01/01/0001"))

it works great, however I also need to find occurences of "part dates" such as 2009 by itself, I have tried using the following formula:

SUMPRODUCT(SUBTOTAL(3,OFFSET('Approved TSPs'!K1:'Approved TSPs'!K9999,ROW('Approved TSPs'!K1:'Approved TSPs'!K9999)-MIN(ROW('Approved TSPs'!K1:'Approved TSPs'!K9999)),,1))*( 'Approved TSPs'!K1:'Approved TSPs'!K9999TSPs'!K9999="*2009"))

The hope is I can use the filter and then use a wildcard search to track down the occurences of 2009,2010 in a massive list of dates (in the format of 01/01/2009 , 01/05/2010 etc)

Thanks in advance for all your help!
 

Excel Facts

Which Excel functions can ignore hidden rows?
The SUBTOTAL and AGGREGATE functions ignore hidden rows. AGGREGATE can also exclude error cells and more.
Hi All,

I am currently using the following formula designed by Aladin Akyurek to find matches for a certain date when I am using a filter:

SUMPRODUCT(SUBTOTAL(3,OFFSET('Approved TSPs'!K1:'Approved TSPs'!K9999,ROW('Approved TSPs'!K1:'Approved TSPs'!K9999)-MIN(ROW('Approved TSPs'!K1:'Approved TSPs'!K9999)),,1))*( 'Approved TSPs'!K1:'Approved TSPs'!K9999TSPs'!K9999="01/01/0001"))

it works great, however I also need to find occurences of "part dates" such as 2009 by itself, I have tried using the following formula:

SUMPRODUCT(SUBTOTAL(3,OFFSET('Approved TSPs'!K1:'Approved TSPs'!K9999,ROW('Approved TSPs'!K1:'Approved TSPs'!K9999)-MIN(ROW('Approved TSPs'!K1:'Approved TSPs'!K9999)),,1))*( 'Approved TSPs'!K1:'Approved TSPs'!K9999TSPs'!K9999="*2009"))

The hope is I can use the filter and then use a wildcard search to track down the occurences of 2009,2010 in a massive list of dates (in the format of 01/01/2009 , 01/05/2010 etc)

Thanks in advance for all your help!

The formula you posted looks as if it's garbled...

Did you mean something like:

Code:
=SUMPRODUCT(
   SUBTOTAL(3,OFFSET('Approved TSPs'!K1,
     ROW('Approved TSPs'!K1:K9999)-ROW('Approved TSPs'!K1),,1)),
   --(YEAR('Approved TSPs'!K1:K9999)=2009))



Note that using a coercer like -- instead of * allows us to invoke SumProduct according to its native syntax.
 
Upvote 0

Forum statistics

Threads
1,224,514
Messages
6,179,225
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