IFERROR formula help

Pottie8

New Member
Joined
Jun 1, 2017
Messages
42
Hi All

I have a column (in sheet called worksheet column E - starting in row 2) with all names, including duplicates.

I wish to make a list in a seperate sheet in column A with only the unique values (each name once in this list - starting in row 6). This list must also look at the value in worksheet column F (starting in row 2) and only build this list if this value is matched to the A1 of the new worksheet.

This is my current attempt at it:

=IFERROR(INDEX(Worksheet!$E$2:$E$16;MATCH(0;COUNTIF(Worksheet!$F$1:F1;Worksheet!$E$2:$E$16);0));"")

Quick Demo:

Worksheet
[TABLE="width: 192"]
<tbody>[TR]
[TD="width: 64"][/TD]
[TD="width: 64"]E[/TD]
[TD="width: 64"]F[/TD]
[/TR]
[TR]
[TD][/TD]
[TD]NAME[/TD]
[TD]GROUP[/TD]
[/TR]
[TR]
[TD="align: right"]2[/TD]
[TD]John[/TD]
[TD]Apple[/TD]
[/TR]
[TR]
[TD="align: right"]3[/TD]
[TD]John[/TD]
[TD]Apple[/TD]
[/TR]
[TR]
[TD="align: right"]4[/TD]
[TD]Mary[/TD]
[TD]Apple[/TD]
[/TR]
[TR]
[TD="align: right"]5[/TD]
[TD]Luke[/TD]
[TD]Apple[/TD]
[/TR]
[TR]
[TD="align: right"]6[/TD]
[TD]Luke[/TD]
[TD]Apple[/TD]
[/TR]
[TR]
[TD="align: right"]7[/TD]
[TD]Luke[/TD]
[TD]Apple[/TD]
[/TR]
[TR]
[TD="align: right"]8[/TD]
[TD]James[/TD]
[TD]Apple[/TD]
[/TR]
[TR]
[TD="align: right"]9[/TD]
[TD]James[/TD]
[TD]Apple[/TD]
[/TR]
[TR]
[TD="align: right"]10[/TD]
[TD]Paul[/TD]
[TD]Apple[/TD]
[/TR]
[TR]
[TD="align: right"]11[/TD]
[TD]Jason[/TD]
[TD]Pear[/TD]
[/TR]
[TR]
[TD="align: right"]12[/TD]
[TD]Jason[/TD]
[TD]Pear[/TD]
[/TR]
[TR]
[TD="align: right"]13[/TD]
[TD]Jason[/TD]
[TD]Pear[/TD]
[/TR]
[TR]
[TD="align: right"]14[/TD]
[TD]Jason[/TD]
[TD]Pear[/TD]
[/TR]
[TR]
[TD="align: right"]15[/TD]
[TD]Peter[/TD]
[TD]Pear[/TD]
[/TR]
[TR]
[TD="align: right"]16[/TD]
[TD]Peter[/TD]
[TD]Pear[/TD]
[/TR]
</tbody>[/TABLE]

Seperate Sheet
[TABLE="width: 128"]
<tbody>[TR]
[TD="width: 64"][/TD]
[TD="width: 64"]A[/TD]
[/TR]
[TR]
[TD="align: right"]1[/TD]
[TD]APPLE[/TD]
[/TR]
[TR]
[TD="align: right"]2[/TD]
[TD][/TD]
[/TR]
[TR]
[TD="align: right"]3[/TD]
[TD][/TD]
[/TR]
[TR]
[TD="align: right"]4[/TD]
[TD][/TD]
[/TR]
[TR]
[TD="align: right"]5[/TD]
[TD][/TD]
[/TR]
[TR]
[TD="align: right"]6[/TD]
[TD]John[/TD]
[/TR]
[TR]
[TD="align: right"]7[/TD]
[TD]Mary[/TD]
[/TR]
[TR]
[TD="align: right"]8[/TD]
[TD]Luke[/TD]
[/TR]
[TR]
[TD="align: right"]9[/TD]
[TD]James[/TD]
[/TR]
[TR]
[TD="align: right"]10[/TD]
[TD]Paul[/TD]
[/TR]
[TR]
[TD="align: right"]11[/TD]
[TD][/TD]
[/TR]
[TR]
[TD="align: right"]12[/TD]
[TD][/TD]
[/TR]
[TR]
[TD="align: right"]13[/TD]
[TD][/TD]
[/TR]
[TR]
[TD="align: right"]14[/TD]
[TD][/TD]
[/TR]
[TR]
[TD="align: right"]15[/TD]
[TD][/TD]
[/TR]
[TR]
[TD="align: right"]16[/TD]
[TD][/TD]
[/TR]
[TR]
[TD="align: right"]17[/TD]
[TD][/TD]
[/TR]
</tbody>[/TABLE]

Hope this makes sense and someone has got some input for me :)


Thank you in advance.


Regards,
Pottie8
 
Last edited:

Excel Facts

Format cells as time
Select range and press Ctrl+Shift+2 to format cells as time. (Shift 2 is the @ sign).
Try this array formula in A6 copied down
=IFERROR(INDEX(Worksheet!$E$2:$E$16,MATCH(0,(Worksheet!$F$2:$F$16<>A$1)+COUNTIF(A$5:A5,Worksheet!E$2:E$16),0)),"")
Ctrl+Shift+Enter

Hope this helps

M.
 
Upvote 0

Forum statistics

Threads
1,223,908
Messages
6,175,305
Members
452,633
Latest member
DougMo

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