Countif Unique combination!!!

deadlyliquidx

New Member
Joined
Feb 6, 2015
Messages
27
Hey All,
I need ONE FORMULA to be able to solve a problem that I have to find a product and color of product, and count it once if it shows up once in a span of 3 months but not count it if it shows up in subsequent months.
Now I can do this with a helper column easily but I am trying to find a way to do it without one in one formula.
Attached:
Untitled.jpg

THANKS
 

Excel Facts

Who is Mr Spreadsheet?
Author John Walkenbach was Mr Spreadsheet until his retirement in June 2019.
Can you use something like this?


Excel 2012
ABCDEFGHI
1MonthTypeSkuTypeSkuUnique Qty
2Jan-14a1a17
3b1b1
4b2b2
5c1c1
6b3
7Feb-14a1d1
8b1c2
9b3
10d1
11
12Mar-14a1
13b1
14b2
15c2
16
Sheet1
Cell Formulas
RangeFormula
E2{=INDEX($B$2:$B$15,SMALL(IF(FREQUENCY(IF($B$2:$B$15<>"",IF($C$2:$C$15<>"",IF(MONTH($A$12-$A$2)+1<=3,MATCH($B$2:$B$15&$C$2:$C$15,$B$2:$B$15&$C$2:$C$15,0)))),ROW($B$2:$B$15)-ROW($B$2)+1),ROW($B$2:$B$15)-ROW($B$2)+1),ROWS($E$2:E2)))}
F2{=INDEX($C$2:$C$15,SMALL(IF(FREQUENCY(IF($B$2:$B$15<>"",IF($C$2:$C$15<>"",IF(MONTH($A$12-$A$2)+1<=3,MATCH($B$2:$B$15&$C$2:$C$15,$B$2:$B$15&$C$2:$C$15,0)))),ROW($C$2:$C$15)-ROW($C$2)+1),ROW($C$2:$C$15)-ROW($C$2)+1),ROWS($F$2:F2)))}
H2{=SUM(IF(FREQUENCY(IF($B$2:$B$15<>"",IF($C$2:$C$15<>"",IF(MONTH($A$12-$A$2)+1<=3,MATCH($B$2:$B$15&$C$2:$C$15,$B$2:$B$15&$C$2:$C$15,0)))),ROW($B$2:$B$15)-ROW($B$2)+1),1))}
Press CTRL+SHIFT+ENTER to enter array formulas.
 
Upvote 0

Forum statistics

Threads
1,214,653
Messages
6,120,748
Members
448,989
Latest member
mariah3

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