Adding additional text to a value pulled from another sheet

T1991

New Member
Joined
Oct 7, 2015
Messages
26
Office Version
  1. 2016
Hi,

I am using the following formula to pull names from another sheet that meet a certain criteria. It will only pull a name once, before moving onto the next match. However, for each name pulled, I want to add the word " Replacement" at the end of it.

Is that possible?

The formula I am using is:
=IFERROR(INDEX(Master!$G:$G,AGGREGATE(15,6,ROW(Master!$G$3:$G$102)/(Master!$M$3:$M$102=$A$11)/(Master!$I$3:$I$102=$B$6)/(Master!$Q$3:$Q$102=$A$4)/(ISNA(MATCH(Master!$G$3:$G$102,C$10:C10,0))),1)),"")

I tried adding &" Replacement" at the end but not only does it cause the formula to start repeating names, but when dragged across a range, it fills every cell with the word Replacement. I only want the word to appear against a pulled value.
 

Excel Facts

What is the fastest way to copy a formula?
If A2:A50000 contain data. Enter a formula in B2. Select B2. Double-click the Fill Handle and Excel will shoot the formula down to B50000.
@T1991 Does this help?

Excel Formula:
=IFERROR(INDEX(Master!$G:$G,AGGREGATE(15,6,ROW(Master!$G$3:$G$102)/(Master!$M$3:$M$102=$A$11)/(Master!$I$3:$I$102=$B$6)/(Master!$Q$3:$Q$102=$A$4)/(ISNA(MATCH(Master!$G$3:$G$102,C$10:C10,0))),1))&" Replacement","")
 
Upvote 0
@T1991 Does this help?

Excel Formula:
=IFERROR(INDEX(Master!$G:$G,AGGREGATE(15,6,ROW(Master!$G$3:$G$102)/(Master!$M$3:$M$102=$A$11)/(Master!$I$3:$I$102=$B$6)/(Master!$Q$3:$Q$102=$A$4)/(ISNA(MATCH(Master!$G$3:$G$102,C$10:C10,0))),1))&" Replacement","")
Thank you for responding.

It sort of works. When I drag the formula down to fill the range, so C11 through to C20 for example, the name that was pulled into C11 repeats with the word Replacement at the end. However, I wanted the formula to only pull a name from Master - column G once before finding the next name that meets the criteria for the other cells. So every entry within the range is unique. If it can't find a name, it just leaves it blank.

When the " Replacement" part is removed, it does just that. But the moment it is added, the formula seems to lose that functionality and just repeats the first name.

Hopefully that makes sense.
 
Upvote 0
It may help If you are able to use XL2BB to post an illustration of your typical data and the result you are expecting.
 
Upvote 0
This is the Master sheet, where I want to pull values from column G:
Template v.2.xlsm
ABCDEFGHIJKLMNOPQRSTUVWX
1 < Input data
2DEPARTMENTREQUEST IDPOSITION NUMBERSOURCEBACKFILL / ADDITIONALAPPROVED FROMFORMER ROLE OCCUPANTOU SHORT-CODECONTRACT TYPEEND DATE (MM/YY)MANAGERPROPOSED OUPROPOSED OU SHORT-CODEPROPOSED POSITION TITLEPROPOSED ROLE GRADECOMMENTSRECRUITMENT FORECAST (MM/YY)STATUSRISKS IF NOT FILLED IN 2024CONFIRM RECRUITMENT PLAN FOR 2024RECRUITMENT STATUS - DEC REVIEWRECRUITMENT STATUS - APR REVIEWRECRUITED CANDIDATESTART DATE (MM/YY)
3... | P
4... | PC
5... | PL
6... | PS
7... | PSMNOBackfillPTest 2PSSExec01/24
8... | PSIJKBackfillLTest 1PSKExec01/24
9... | PSEFGBackfillHJohn DoePSIndirect01/24
10... | PSABCBackfillDJoe BloggsPSExec01/24PS01/24Test 301/24
11... | PP
12... | PM
13... | PI
14... | PV
Master


This is the supporting sheet, where I want the values to pull to:
Cell Formulas
RangeFormula
B9,N9,K9,H9,E9B9=0-COUNTIF(B11:B110,"?*")
D9,P9,M9,J9,G9D9=COUNTIF(D11:D110,"?*")
D11:D30D11=IFERROR(INDEX(Master!$W:$W,AGGREGATE(15,6,ROW(Master!$W$3:$W$102)/(Master!$H$3:$H$102=$A$11)/(Master!$I$3:$I$102=$B$6)/(Master!$X$3:$X$102=$A$4)/(ISNA(MATCH(Master!$W$3:$W$102,D$10:D10,0))),1)),"")
E11:E30E11=IFERROR(INDEX(Master!$G:$G,AGGREGATE(15,6,ROW(Master!$G$3:$G$102)/(Master!$H$3:$H$102=$A$11)/(Master!$I$3:$I$102=$E$6)/(Master!$J$3:$J$102=$A$4)/(ISNA(MATCH(Master!$G$3:$G$102,E$10:E10,0))),1)),"")
G11:G30G11=IFERROR(INDEX(Master!$W:$W,AGGREGATE(15,6,ROW(Master!$W$3:$W$102)/(Master!$H$3:$H$102=$A$11)/(Master!$I$3:$I$102=$E$6)/(Master!$X$3:$X$102=$A$4)/(ISNA(MATCH(Master!$W$3:$W$102,G$10:G10,0))),1)),"")
H11:H30H11=IFERROR(INDEX(Master!$G:$G,AGGREGATE(15,6,ROW(Master!$G$3:$G$102)/(Master!$H$3:$H$102=$A$11)/(Master!$I$3:$I$102=$H$6)/(Master!$J$3:$J$102=$A$4)/(ISNA(MATCH(Master!$G$3:$G$102,H$10:H10,0))),1)),"")
J11:J30J11=IFERROR(INDEX(Master!$W:$W,AGGREGATE(15,6,ROW(Master!$W$3:$W$102)/(Master!$H$3:$H$102=$A$11)/(Master!$I$3:$I$102=$H$6)/(Master!$X$3:$X$102=$A$4)/(ISNA(MATCH(Master!$W$3:$W$102,J$10:J10,0))),1)),"")
K11:K30K11=IFERROR(INDEX(Master!$G:$G,AGGREGATE(15,6,ROW(Master!$G$3:$G$102)/(Master!$H$3:$H$102=$A$11)/(Master!$I$3:$I$102=$K$6)/(Master!$J$3:$J$102=$A$4)/(ISNA(MATCH(Master!$G$3:$G$102,K$10:K10,0))),1)),"")
M11:M30M11=IFERROR(INDEX(Master!$W:$W,AGGREGATE(15,6,ROW(Master!$W$3:$W$102)/(Master!$H$3:$H$102=$A$11)/(Master!$I$3:$I$102=$K$6)/(Master!$X$3:$X$102=$A$4)/(ISNA(MATCH(Master!$W$3:$W$102,M$10:M10,0))),1)),"")
N11:N30N11=IFERROR(INDEX(Master!$G:$G,AGGREGATE(15,6,ROW(Master!$G$3:$G$102)/(Master!$H$3:$H$102=$A$11)/(Master!$I$3:$I$102=$N$6)/(Master!$J$3:$J$102=$A$4)/(ISNA(MATCH(Master!$G$3:$G$102,N$10:N10,0))),1)),"")
B11:B30B11=IFERROR(INDEX(Master!$G:$G,AGGREGATE(15,6,ROW(Master!$G$3:$G$102)/(Master!$H$3:$H$102=$A$11)/(Master!$I$3:$I$102=$B$6)/(Master!$J$3:$J$102=$A$4)/(ISNA(MATCH(Master!$G$3:$G$102,B$10:B10,0))),1)),"")
P11:P30P11=IFERROR(INDEX(Master!$W:$W,AGGREGATE(15,6,ROW(Master!$W$3:$W$102)/(Master!$H$3:$H$102=$A$11)/(Master!$I$3:$I$102=$N$6)/(Master!$X$3:$X$102=$A$4)/(ISNA(MATCH(Master!$W$3:$W$102,P$10:P10,0))),1)),"")


The columns with a yellow "0" header is where I want to pull the names from Master - column G to. Using the formula in the column adjacent to it, the one with a -1 header, I can do just that. However, for any value in this column, I want to add " Replacement" to it. However, whereas in the -1 column, only a singular instance of a value is pulled, when I drag the formula from the last response down to cover the entire cell, it repeats the name from the first cell continuously for the entire column.
 
Upvote 0
It may help If you are able to use XL2BB to post an illustration of your typical data and the result you are expecting.
Hopefully the XL2BB illustration makes sense. Any help would be much appreciated 👍🏻
 
Upvote 0
Try
Excel Formula:
=IFERROR(INDEX(Master!$G:$G &" Replacement",AGGREGATE(15,6,ROW(Master!$G$3:$G$102)/(Master!$M$3:$M$102=$A$11)/(Master!$I$3:$I$102=$B$6)/(Master!$Q$3:$Q$102=$A$4)/(ISNA(MATCH(Master!$G$3:$G$102,C$10:C10,0))),1)),"")
 
Upvote 0
In D11
Excel Formula:
=IFERROR(INDEX(Master!$W:$WG &" Replacement",AGGREGATE(15,6,ROW(Master!$G$3:$G$102)/(Master!$M$3:$M$102=$A$11)/(Master!$I$3:$I$102=$B$6)/(Master!$Q$3:$Q$102=$A$4)/(ISNA(MATCH(Master!$G$3:$G$102,C$10:C10,0))),1)),"")
In E11
Excel Formula:
=IFERROR(INDEX(Master!$G:$G &" Replacement",AGGREGATE(15,6,ROW(Master!$G$3:$G$102)/(Master!$M$3:$M$102=$A$11)/(Master!$I$3:$I$102=$B$6)/(Master!$Q$3:$Q$102=$A$4)/(ISNA(MATCH(Master!$G$3:$G$102,C$10:C10,0))),1)),"")
Keep F11 blank.
Select D11:F11. Drag across using fill handle till P11
For B11 fill separately.
Excel Formula:
=IFERROR(INDEX(Master!$G:$G &" Replacement",AGGREGATE(15,6,ROW(Master!$G$3:$G$102)/(Master!$M$3:$M$102=$A$11)/(Master!$I$3:$I$102=$B$6)/(Master!$Q$3:$Q$102=$A$4)/(ISNA(MATCH(Master!$G$3:$G$102,C$10:C10,0))),1)),"")
Copy down entire row using fill handle suitably.
 
Upvote 1
Solution
@T1991 Maybe give the below a try in B11 and drag down.
If it works then just adapt the principle for your other columns.

Excel Formula:
=IFERROR(INDEX(Master!$G:$G&" Replacement",AGGREGATE(15,6,ROW(Master!$G$3:$G$102)/(Master!$H$3:$H$102=$A$11)/(Master!$I$3:$I$102=$B$6)/(Master!$J$3:$J$102=$A$4)/(ISNA(MATCH(Master!$G$3:$G$102&" Replacement",B$10:B10,0))),1)),"")
 
Upvote 1

Forum statistics

Threads
1,223,851
Messages
6,175,009
Members
452,600
Latest member
nicoCrous75

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