Simple counting of similar values in columns

nburaq

Board Regular
Joined
Apr 2, 2021
Messages
68
Office Version
  1. 365
  2. 2019
Platform
  1. Windows
Hi All,
I would like to count the combination of two values in a list but I could not figure it out that should I do it with formula, pivot table, VBA or PQ. One idea was to use concatenate values in column B and C then count the values but I am pretty sure there is easer solution available. Here is the attachment;
count.png

Basically, item 10 and material X is used 2 times in the list so in column D it should give me a value as "2" and item 10 + material Y is used only once etc...
Thanks for your help and concern!
 

Excel Facts

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

offthelip

Well-known Member
Joined
Dec 23, 2017
Messages
1,845
Office Version
  1. 2010
Platform
  1. Windows
put this in D2 and copy it donw:
Excel Formula:
=COUNTIFS(C$2:C5,C2,B$2:B5,B2)
 
Solution

Watch MrExcel Video

Forum statistics

Threads
1,132,640
Messages
5,654,539
Members
418,139
Latest member
nimesh72

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
Top