Formula needed to count repeated data based on criterias

Cheslop84

New Member
Joined
Aug 24, 2016
Messages
5
Hi

I need a formula that will count how many styles I am carrying per brand. The table array where I hold my data is shown below, cells A-D.

Cell B states the name on the style, cell A is the size breakdown for that particular style.
Cell C shows the brand attached to that style

Cell D is stock holding for the individual sizes of that style.

What I am looking to do is count how many styles I have in stock based on the brand (which will alternate as I am using a list function from validation which I can then scroll through to display data for the brand of my choosing) and also the style has to have a qty of > 0. That's a qty of >0 for the whole style, not just the individual sizes.

For example, from below, if K33076Dress32849Rasb/Cream was qty 0 for each size then I wouldnt want it to count the style, but if just one size has a qty, I would like it would count it.

Hope someone can help

Thanks

KA3076 Dress 32849 Rasberry/Cream SKA3076Dress32849Rasb/CreamGlamorous Old2
KA3076 Dress 32849 Rasberry/Cream MKA3076Dress32849Rasb/CreamGlamorous Old-1
KA3076 Dress 32849 Rasberry/Cream LKA3076Dress32849Rasb/CreamGlamorous Old0
CK0550 Dress 32029 Rust XSCK0550Dress32029RustGlamorous Old0
CK0550 Dress 32029 Rust SCK0550Dress32029RustGlamorous Old0
CK0550 Dress 32029 Rust MCK0550Dress32029RustGlamorous Old0
CK0550 Dress 32029 Rust LCK0550Dress32029RustGlamorous Old0
1393 Ladies dress-32322 Black/mustard XSAN1393dress-32322Blk/mustardGlamorous Old0
N1393 Ladies dress-32322 Black/mustard SAN1393dress-32322Blk/mustardGlamorous Old1
N1393 Ladies dress-32322 Black/mustard MAN1393dress-32322Blk/mustardGlamorous Old0
N1393 Ladies dress-32322 Black/mustard LAN1393dress-32322Blk/mustardGlamorous Old1
Fur Collar Coat Green SFurCollarCoatGreenFast Fashion Womens Old0
Fur Collar Coat Green MFurCollarCoatGreenFast Fashion Womens Old-1
Fur Collar Coat Green LFurCollarCoatGreenFast Fashion Womens Old1
Fur Collar Coat Green XLFurCollarCoatGreenFast Fashion Womens Old0
Fur Collar Coat Green XSFurCollarCoatGreenFast Fashion Womens Old0
NL2785 Ladies Parka Khaki 8NL2785ParkaKhakiFast Fashion Womens Old0
NL2785 Ladies Parka Khaki 10NL2785ParkaKhakiFast Fashion Womens Old0
NL2785 Ladies Parka Khaki 12NL2785ParkaKhakiFast Fashion Womens Old0
NL2785 Ladies Parka Khaki 14NL2785ParkaKhakiFast Fashion Womens Old2

<tbody>
</tbody>
 

Excel Facts

Excel Joke
Why can't spreadsheets drive cars? They crash too often!
Hi,

Please test the following solution:


Excel 2016 (Windows) 64 bit
ABCDEF
1KA3076 Dress 32849 Rasberry/Cream SKA3076Dress32849Rasb/CreamGlamorous Old2brand# of styles
2KA3076 Dress 32849 Rasberry/Cream MKA3076Dress32849Rasb/CreamGlamorous Old-1Fast Fashion Womens Old2
3KA3076 Dress 32849 Rasberry/Cream LKA3076Dress32849Rasb/CreamGlamorous Old0
4CK0550 Dress 32029 Rust XSCK0550Dress32029RustGlamorous Old0
5CK0550 Dress 32029 Rust SCK0550Dress32029RustGlamorous Old0
6CK0550 Dress 32029 Rust MCK0550Dress32029RustGlamorous Old0
7CK0550 Dress 32029 Rust LCK0550Dress32029RustGlamorous Old0
81393 Ladies dress-32322 Black/mustard XSAN1393dress-32322Blk/mustardGlamorous Old0
9N1393 Ladies dress-32322 Black/mustard SAN1393dress-32322Blk/mustardGlamorous Old1
10N1393 Ladies dress-32322 Black/mustard MAN1393dress-32322Blk/mustardGlamorous Old0
11N1393 Ladies dress-32322 Black/mustard LAN1393dress-32322Blk/mustardGlamorous Old1
12Fur Collar Coat Green SFurCollarCoatGreenFast Fashion Womens Old0
13Fur Collar Coat Green MFurCollarCoatGreenFast Fashion Womens Old-1
14Fur Collar Coat Green LFurCollarCoatGreenFast Fashion Womens Old2
15Fur Collar Coat Green XLFurCollarCoatGreenFast Fashion Womens Old0
16Fur Collar Coat Green XSFurCollarCoatGreenFast Fashion Womens Old0
17NL2785 Ladies Parka Khaki 8NL2785ParkaKhakiFast Fashion Womens Old0
18NL2785 Ladies Parka Khaki 10NL2785ParkaKhakiFast Fashion Womens Old0
19NL2785 Ladies Parka Khaki 12NL2785ParkaKhakiFast Fashion Womens Old0
20NL2785 Ladies Parka Khaki 14NL2785ParkaKhakiFast Fashion Womens Old2
Sheet3
Cell Formulas
RangeFormula
F2{=SUM(($D$1:$D$20>0)*IFERROR(1/COUNTIFS($C$1:$C$20,E2,$D$1:$D$20,">0",$B$1:$B$20,$B$1:$B$20),0))}
Press CTRL+SHIFT+ENTER to enter array formulas.
 
Upvote 0

Forum statistics

Threads
1,214,972
Messages
6,122,530
Members
449,088
Latest member
RandomExceller01

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