Formula to insert names

Glacombe

Board Regular
Joined
Oct 31, 2018
Messages
101
Office Version
  1. 2016
Platform
  1. Windows
Good afternoon, I have a worksheet that contains employees and their sectors, which we have 14 sectors, what would be the formula to extract all the names from one particular section and add them to another sheet within the workbook?

Thanks
 
How about

ZFluff.xlsm
ABCDEFGH
1BranchNameA/P/S/IClassPRIM/FDate app't to levelMarch 31/19 salary
2
3
4IBSDBBonnie
5SCIAmy
6PPBGeorge
7AEBMichael
8PPBFred
9OpsTom
10OpsCarol
11AEBPaul
12PPBMonica
13PresOPrice
14PPBChantal
15AEBMonique
16IABPierre
17OpsDenis
18
19
20
Data


ZFluff.xlsm
ABCDEFGH
1Audit and Evaluation
22019-2020
3
4NameA/AI/P/RLevelRatingMarch 31/2020 Salary% of MaxSalary IncreaseApril 1/2020 Salary
5Michael#N/A#N/A#N/A#N/A#N/A#N/A#N/A
6Paul#N/A#N/A#N/A#N/A#N/A#N/A#N/A
7Monique#N/A#N/A#N/A#N/A#N/A#N/A#N/A
8 
9 
10 
11
12
Sheet1
Cell Formulas
RangeFormula
A5:A10A5=IFERROR(INDEX(Data!$B$4:$B$17,AGGREGATE(15,6,(ROW(Data!$B$4:$B$17)-ROW(Data!$B$4)+1)/(Data!$A$4:$A$17="AEB"),ROWS(A$2:A2))),"")



Also please update your profile to show which version(s) of Excel you are using.
 
Upvote 0

Excel Facts

Remove leading & trailing spaces
Save as CSV to remove all leading and trailing spaces. It is faster than using TRIM().
15 makes the aggregate function work like the small function & the 6 tells it to ignore errors.
 
Upvote 0
This is the message I get, would it make a difference if the names are last name comma and first name

1582298346614.png
 
Upvote 0
This is my formula

=' (INDEX(List of Ex1-5!$B$2:$B$126,AGGREGATE(15,6,(ROW(List of Ex1-5!$B$2:$B$126)-ROW(List of Ex1-5!$B$2)+1)/(List of Ex1-5!$A$2:$A$126="AEB"),ROWS(A$1:A1))),"")
 
Upvote 0
The sheet names should be enclosed in single quotes (apostrophes) like
INDEX('List of Ex1-5'!$B$2:$B$126
 
Upvote 0
What is the exact formula you are using & what language are you using?
 
Upvote 0
Please ignore my previous error message, I got it to work and thank you for everything
 
Upvote 0
Glad you fixed it & thanks for the feedback
 
Upvote 0

Forum statistics

Threads
1,214,918
Messages
6,122,249
Members
449,075
Latest member
staticfluids

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