Formula or code?

TGGarmoEX

New Member
Joined
Jun 14, 2019
Messages
12
Platform
  1. MacOS
Hi guys n gals, I’m struggling and could use a bit of help please. I’m not sure if it can be done through Vlookup() etc, or needs to be a bit of code.

Sheet 1 I have a list of CLIENTS; their GEOGRAPHICAL LOCATION; STAFF ALLOCATED TO THE CLIENT and an empty column where I want the AREA THE STAFF WORK FROM filled.
To do this I want SHEET 1 to look at SHEET 2 and where the 'staff name' are a match, fill the corresponding AREA THE STAFF WORK FROM in column E.
We have a lot of ‘comings and goings’ so the idea here is that it saves me time when it comes to allocating staff to clients.
I hope i’ve explained it okay.
 

Attachments

  • 450A4B00-3ABB-4E87-B382-F86E55DD236E.jpeg
    450A4B00-3ABB-4E87-B382-F86E55DD236E.jpeg
    159.2 KB · Views: 12
  • 9F606B69-C808-4C88-A4BF-06614C25CD8C_4_5005_c.jpeg
    9F606B69-C808-4C88-A4BF-06614C25CD8C_4_5005_c.jpeg
    63 KB · Views: 12

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.
you can try Power Query
Rich (BB code):
let
    Source = Table.NestedJoin(Table1,{"STAFF ALLOCATED TO THE CLIENT"},Table2,{"STAFF ALLOCATED TO THE CLIENT"},"Table2",JoinKind.LeftOuter),
    Expand = Table.ExpandTableColumn(Source, "Table2", {"AREA THE STAFF WORK FROM"}, {"AREA THE STAFF WORK FROM"})
in
    Expand
merge.png
 
Upvote 0
Welcome to the forum.
Try:

=VLOOKUP(D2,Sheet2!$A$2:$A$26,2,0)
 
Upvote 0
what is your excel version? (update your profile about that, Account details)
 
Upvote 0
I am using Excel for Mac version 16.16.20 however I use a number of different versions on different computers.
 
Upvote 0
The VLOOKUP works for me using the data that sandy666 put in for you (thank you Sandy666 - I wasn't about to type in all that data).
If you are getting an #REF error make sure the the names in both sheets are an exact match.

Sheet1
Book1
ABCDE
1CLIENTS NAMECLIENTS CUSTOMER NUMBERGEOGRAPHICAL LOCATION CODESTAFF ALLOCATED TO THE CLIENTArea
2BetasoloinA1300CAS-01-031Tricia LaneCS
3BetatechA1296EEE-01-027Kurt SmithD
4BioholdingA1293EEC-01-024Sophie MasonA
5BioplexA1275S-01-031Terry FrancisB
6BlackzimA1285CS-01-041Tricia LaneCS
7CancityA1282STE-01-038Jeannette PowellS.C
8CodehowA1265C-01-046Reginald HollandC
9CondaxA21678CHD-01-025Marilyn MooreD
10ConecomA1268C-01-024Brett RamirezF
11DalttechnologyA1278B-01-034Kurt SmithD
12dambaseA1263CTCS-01-044Darrel SummersA
13DomzoomA1297DDS-01-028Brett RamirezF
14DonconA1315CAC-01-046Dorothy FrazierHCC
15DonquadtechA12S2CAA-01-033Sophie MasonA
16DontechiA1286D-01-042Dorothy FrazierHCC
17Don wareA12S4CAB-01-035Judith LarsonC
18FasehaticeA1288CS-01-044Myron MccoyB
19FaxquoteA125SBTC-01-036Kurt SmithD
20FinhighA1283B-01-039Delbert HarrisonB
21FinjobA1306EEF-01-037Lorenzo Huntercs
22FunholdingA1309DDHCC-01-040June ThompsonF
23GanjaflexA1295EED-01-026Lorenzo Huntercs
24GogozoomA1249CAG-01-030Lorenzo Huntercs
25GolddexA124SBTE-01-027June ThompsonF
26Goods il ronA4295CHC-01-024Orville MorrisC
27Green-PlusA1272S-01-028Jeannette PowellS.C
28GroovestreetA1273CAHCC-01-029Sophie MasonA
29HatfanA1289SC-01-045Kurt SmithD
30HottechiA1294EED-01-025Terry FrancisB
31inityA1291CAA-01-022Olga WelchST
Sheet1
Cell Formulas
RangeFormula
E2:E31E2=VLOOKUP(D2,Sheet2!$A$2:$B$26,2,0)


Sheet2
Book1
AB
1STAFF ALLOCATED TO THE CLIENTAREA THE STAFF WORK FROM
2Boyd FernandezSTE
38rendan HudsonST
4Brett RamirezF
5Darrel SummersA
6Delbert HarrisonB
7Dora SingletonSTE
8Dorothy FrazierHCC
9Erma HaynesE
10Fred BradleyHCC
11Jeannette PowellS.C
12Jonathon WoodsA
13Judith LarsonC
14June ThompsonF
15Kurt SmithD
16Lillie MeyerS.C
17Lorenzo Huntercs
18Marilyn MooreD
19Myron MccoyB
20Olga WelchST
21Orville MorrisC
22Reginald HollandC
23Ronnie AdkinsE
24Sophie MasonA
25Terry FrancisB
26Tricia LaneCS
Sheet2
 
Upvote 0
I don’t know what i did before but it works a treat! Thank you both so much, I appreciate your help!
 
Upvote 0

Forum statistics

Threads
1,224,823
Messages
6,181,177
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