fill an array with unique values based on criteria

biubiubiu

New Member
Joined
Jul 5, 2016
Messages
43
Hi All

I need to extract unique values based on specific criteria to use for other procedure ,

for example, for the chart below (illustration only, not actual data), I would need to extract the string (A,C)



List
Criteria
A
0
A
0
A
1
B
0
B
0
C
1
C
1

<tbody>
</tbody>


Currently I have no idea how should I tell excel to do both:
1) extract only Unique values to an array (i.e. examples above I only want "A,C" not "A,C,C")

2) fill values to an array based on criteria from adjacent column


any help is appreciated

Thanks
 

Excel Facts

How to create a cell-sized chart?
Tiny charts, called Sparklines, were added to Excel 2010. Look for Sparklines on the Insert tab.
How about
=SUMPRODUCT(1/COUNTIF(A:A,A:A),--(B:B=1))

It will only return one per unique value in column (It actually splits them up and recombines them after), then it adds the column B stuff
 
Upvote 0

Forum statistics

Threads
1,214,950
Messages
6,122,428
Members
449,083
Latest member
Ava19

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