Return Distinct Values Based on Different Criteria

HeyMike

New Member
Joined
Mar 1, 2012
Messages
22
Hello,

I am looking for a formula that will return the distinct values of a list based on a criteria.

t8n4o9.jpg


For example...the formula would go into cell D4, and it would return the distinct "Item Names" in column B based on the "Group" in column A.

Any ideas?

Thanks!
Mike
 

Excel Facts

Which Excel functions can ignore hidden rows?
The SUBTOTAL and AGGREGATE functions ignore hidden rows. AGGREGATE can also exclude error cells and more.
you can try in D4...

=IFERROR(INDEX($B$4:$B$9,SMALL(IF(FREQUENCY(IF($B$4:$B$9<>"",IF(D$3=$A$4:$A$9,MATCH($B$4:$B$9,$B$4:$B$9,0))),ROW(A$4:A$9)-ROW(A$4)+1),ROW(A$4:A$9)-ROW(A$4)+1),ROWS(D$4:D4))),"") Control Shift Enter
 
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