Extrcating a list from another list, based on another cell.

GazNicki

Board Regular
Joined
Nov 30, 2010
Messages
78
I have a list of items in cells C7:C41 - this list contains duplicates.
In cells D7:C41 I have a either "yes" or "no".

In cells N7:N39, I wish to have a list of products from the list in C displayed only if the corresponding cell in D states Yes.

I have the following array formula in cell N7:N39 currently:

Code:
{=IFERROR(INDEX($C$7:$C$42,SMALL(IF($D$7:$D$42="Yes",ROW($C$7:$C$42)-MIN(ROW($C$7:$C$42))+1),ROW()-2)),"")}

This works, but I get duplicates.

Is there anyway of gathering this list without duplicates?
 

Excel Facts

Format cells as time
Select range and press Ctrl+Shift+2 to format cells as time. (Shift 2 is the @ sign).
Hi,

Try this : Ctrl+Shift+Enter NOT just Enter

N7 =IFERROR(INDEX($C$7:$C$42,MATCH(0,IF($D$7:$D$42="yes",COUNTIF($N$6:N6,$C$7:$C$42)),0)),"")
 
Upvote 0
Solution
This is perfect, thank you!

It even orders them in size order, from largest to smallest, which is awesome. Thank you!!
 
Upvote 0

Forum statistics

Threads
1,215,223
Messages
6,123,715
Members
449,118
Latest member
MichealRed

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