count if based on specific criteria

nikhil0311

Board Regular
Joined
May 3, 2013
Messages
200
Office Version
  1. 2013
Platform
  1. Windows

Book1
ABCDEFGHIJKLM
1IDTechnologyPowerEnergyIDSegment 1Segment 2Segment 3Segment 4Segment 5
21234559412345TechnologyPowerPowerPowerPower
33456775212345TechnologyTechnology-TechnologyTechnology
466789312412345PowerEnergyEnergyEnergyEnergy
512345Power-PowerPowerPower
634567TechnologyPowerTechnologyTechnologyTechnology
734567EnergyTechnology-PowerPower
834567EnergyTechnologyTechnologyPowerPower
966789Technology-PowerPowerPower
1066789EnergyPowerTechnologyPowerPower
1166789EnergyPowerTechnologyPowerPower
1266789EnergyPowerEnergyPowerPower
Sheet1



Column A have IDs and Column B,C & D have segments
H1:M12 is the raw data
B2:D4 = Count required of ID + Segment (for example if ID = 12345 Segment = Technology then total count for this combination from range H1:M13 is 5)
based on combination of ID & Segment, I want to count the ID & Segments from range H1:M13

please let me know if you have any questions!
 

Excel Facts

Control Word Wrap
Press Alt+Enter to move to a new row in a cell. Lets you control where the words wrap.
Try =SUMPRODUCT(($H$2:$H$12=$A2)*($I$2:$M$12=B$6))
 
Upvote 0
thanks for your help and quick reply. This works like a charm.

I just did a small change instead of B$6 i changed it to B$1

Again, Thanks for your help :)
 
Upvote 0

Forum statistics

Threads
1,223,903
Messages
6,175,289
Members
452,631
Latest member
a_potato

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