list missing people from a list

njenkins

New Member
Joined
Nov 24, 2012
Messages
23
I have a group of 10 people doing 5 roles in a spreadsheet. I would like a cell to contain the five people NOT doing a role. So the formula would check the five cells, compare with a reference containing all ten initials, and list the initials of people not in a role.
 

Excel Facts

Format cells as currency
Select range and press Ctrl+Shift+4 to format cells as currency. (Shift 4 is the $ sign).
Hello,

If you need to insert 5 names in a single cell .. you will have to concatenate the results of your formula ..

Hope this will help
 
Upvote 0
Not a formula.
The 10 names are in D1:D10
The 5 names of the participants are in E1:E5
Result is in F1
Change references as required.
Code:
Sub Maybe()
Dim c As Range
    For Each c In Range("D1:D10")
        If WorksheetFunction.CountIf(Range("E1:E5"), c.Value) = 0 Then Range("F1").Value = Range("F1").Value & " " & c.Value & ","
    Next c
Range("F1").Value = Mid(Range("F1").Value, 2, Len(Range("F1")) - 2)
End Sub
 
Upvote 0
If you have a later ver. of Excel with the TEXTJOIN function, you could use something like this.

This is an array function and must be entered with CTRL-SHIFT-ENTER.
Excel Workbook
ABC
1NamesRoll
2JJYesJJ, ST, ET, YR, KL
3DR
4SAH
5STYes
6FR
7ETYes
8YRYes
9WQ
10KLYes
11GH
Sheet
 
Upvote 0

Forum statistics

Threads
1,224,814
Messages
6,181,121
Members
453,021
Latest member
Justyna P

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