find duplocates with multiple criteria

martinblake02

New Member
Joined
Jan 13, 2016
Messages
23
type
amount
flour
1g
four
2g
rice
5g
veg
2g
meat
1g

<tbody>
</tbody>

hello,
I am still new to this forum and hope im asking in the right place.

I have a table with duplicate in column B, and values In column a.
I want to calculate how many duplicates I have in column b If column a = 1 or 2 (two options)

example is above.
so if told my formula that a could be flour or meat, the result would be 1 duplicate (1g)

therefore I need a formula like below, but I cant get anything to work:
if column a = "flour" or "meat" , count of duplicates = 1
 

Excel Facts

Control Word Wrap
Press Alt+Enter to move to a new row in a cell. Lets you control where the words wrap.
In case there is several duplicate values, how do you want to display results ??
 
Upvote 0

Forum statistics

Threads
1,216,306
Messages
6,129,990
Members
449,550
Latest member
LML2892

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