Unique Entries

cookeetree

Board Regular
Joined
Mar 2, 2015
Messages
52
G'day Excel Gods,

I have a table showing Training Courses, the Employee who completed it and the date they completed it.

On a separate worksheet, there is a formula that searches through this table to find those employees who've completed a specific course ($B$1).

{=IFERROR(INDEX('Training Completed'!$G:$L,SMALL(IF('Training Completed'!$G:$G=$B$1,ROW('Training Completed'!$G:$G)),ROW(1:1)),5),"")}

However, where an employee has completed a course multiple times, I see their name multiple times.

How can I modify (or rewrite) the formula to show only unique names?

Cheers, Jason.
 

Excel Facts

Can you sort left to right?
To sort left-to-right, use the Sort dialog box. Click Options. Choose "Sort left to right"
Sorry, been off work for a couple of day.

=IFERROR(UNIQUE(INDEX($H$11:$H$18,SMALL(IF($C$11:$C$18=$E$9,(ROW($11:$18)-ROW($11:$11)+1)),ROW($1:$8)))),"")
I reckon this is the one I need.

The list will be ever-growing, though and is on another worksheet. I know I can modify the cell reference range to suit, but how do I modify the ROW function to take this into account?
 
Upvote 0
I reckon this is the one I need.
I reckon you can do simpler than that ..

Colour here was just for my benefit for checking 'Course 1'

cookeetree 2020-08-18 1.xlsm
GHIJK
1CourseEmployee
2Course 1Emp 1
3Course 2Emp 1
4Course 1Emp 4
5Course 1Emp 2
6Course 3Emp 2
7Course 3Emp 1
8Course 2Emp 4
9Course 1Emp 2
10Course 2Emp 2
11Course 2Emp 1
12Course 3Emp 3
13Course 2Emp 4
14Course 2Emp 1
15Course 1Emp 1
16Course 1Emp 1
17Course 1Emp 2
18Course 1Emp 2
Training Completed



This formula needs to be entered in one cell only. The other results will automatically 'spill' to any other required rows. If you have made the range in the formula big enough (I've used 1000 rows) to any expected expansion of the 'Training Completed' sheet then there will be no need to adjust this formula as it will automatically pick up any new entries in that range.

cookeetree 2020-08-18 1.xlsm
B
1Course 1
2Emp 1
3Emp 4
4Emp 2
5
Sheet1
Cell Formulas
RangeFormula
B2:B4B2=UNIQUE(FILTER('Training Completed'!K2:K1000,'Training Completed'!G2:G1000=B1,""))
Dynamic array formulas.
 
Upvote 0
You're welcome. Thanks for the follow-up.

Please update your profile as described in post 2 so that next time helpers know what version you have. If you did not have Excel 365 then then my formula would not have been applicable for you.
If we had known your version from the start then you could have had your answer 2 or 3 days ago. ;)
 
Upvote 0

Forum statistics

Threads
1,215,440
Messages
6,124,882
Members
449,193
Latest member
PurplePlop

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