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

Ambidextrous Undo
Undo last command with Ctrl+Z or Alt+Backspace. If you use the Undo icon in the QAT, open the drop-down arrow to undo up to 100 steps.

WarfritLive

Board Regular
Joined
Sep 27, 2016
Messages
149
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,191,395
Messages
5,986,357
Members
440,020
Latest member
IfsandSums

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