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
 
You have a space at the beginning of the sheet name, that's what's causing the problem.
Either delete the space from the sheet name, or modify the formula to add the space
 
Upvote 0

Excel Facts

What is =ROMAN(40) in Excel?
The Roman numeral for 40 is XL. Bill "MrExcel" Jelen's 40th book was called MrExcel XL.
OMG thank you for noticing that space, maybe that is why I always had trouble with the rest of formulas in my sheet.

Thanks again it works now
 
Upvote 0
You're welcome & thanks for the feedback
 
Upvote 0
Hello, remember your famous formula that I manage to love and it worked like a charm, what would it be if I wanted to match another word besides the one that is already in the formula?
Thanks
 
Upvote 0
=IFERROR(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:A3))),"")
This is the formul, it matches "AEB" and want to also match "AS-07" is that doable?
 
Upvote 0
How about
Excel Formula:
=IFERROR(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")+('List of Ex1-5'!$A$2:$A$126="AS-07")),ROWS(A$1:A3))),"")
 
Upvote 0
Thanks Fluff, it keeps inserting the same name and in my spreadsheet I have 10 names that is with AEB and are AS-07
 
Upvote 0
Here is the sample of master list
BranchNameA/PClass
AEBLorrainePG-06
AEBChristineAS-07
AEBLaura LeeAS-07
AEBCarlaAS-07
PBJulieAS-07
AEBDouglasAFI-04
AEBShirleyAAS-07
SPBDougPE-06
SPBLucillePE-06
SPBAnneAS-07
 
Upvote 0
You never said it was a different column. ;)
try
Excel Formula:
=IFERROR(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")/('List of Ex1-5'!$D$2:$D$126="AS-07"),ROWS(A$1:A3))),"")
 
Upvote 0
And here is the worksheet for the names to be inserted

CMBDMOISBPAB
AS-07
#N/A​
to insert name here
#N/A​
#N/A​
#N/A​
#N/A​
#N/A​
#N/A​
#N/A​
#N/A​
#N/A​
#N/A​
#N/A​
#N/A​
#N/A​
#N/A​
#N/A​
#N/A​
#N/A​
 
Upvote 0

Forum statistics

Threads
1,214,644
Messages
6,120,709
Members
448,983
Latest member
Joaquim_Baptista

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