Can you use Vlookup against multiple locations?

Oakey

New Member
Joined
Jan 9, 2017
Messages
49
Office Version
  1. 365
I have a spreadsheet that shows an opertives department, Clock number and name (As per below)

Team 1Team 2Team 3Team 4
DEPARTMENTCLOCK NONAMEDEPARTMENTCLOCK NONAMEDEPARTMENTCLOCK NONAMEDEPARTMENTCLOCK NONAME
Online Processors110155Cristina DursanOnline Processors200641Adriana LutsykOnline Processors200489Abena Gyamfua SuleOnline Processors110465Iulia Cibric
Online Processors200738Ana Maria Emanuela MihaiOnline Processors300226Aleksandra ZavitovskaOnline Processors200558Anastasiia PorolloOnline Processors200566Tatiana Godoroja
Online Processors200663Alexandra Mioara BalteanuOnline Processors200454Alexandra OntaOnline Processors200510Ayomide Raimot AdebavoOnline Processors200248Elena Ganea
Stores ProcessorStores ProcessorStores ProcessorStores Processor
Brands200064Efrosinia FoteniucBrandsBrands110040Aliona RotaruBrands110634Nicoleta Butacu
Brands110009Doina MuscheiBrandsBrands110172Violeta LipanBrands110245Silvia Petrici
Zara Home110005Valentina StanilescuZara Home110111Doinita ButacuZara Home110194Diana Solodschi (+MOCA)Zara Home110236Iryna Yavorska
Runner110079Victor TriboiRunner200515Viorel Daia Collect GOHRunner200283Milica MuraruRunner200365Bobi Dumitru
Runner200564Gheorghe ArdeleanuRunner200276Gheorghi BulgaruRunner110739Oleg ReznikRunner200577Viorel Cretu


I have a 2nd spreadsheet that is a master list that has all the operatives.

AgencyClock numbersNameSHIFTTEAMAllocated Department
SM200489Abena Gyamfua SuleAMTeam 3Online Processor
SM200641Adriana LutsykAMTeam 2Online Processor
SM200442Ala CiobanuAMTeam 2Sewing
SM200647Ala LapcinscaiaAMTeam 3Online Processor
Tipngo110025Lidia UrsuAMTeam 4M location
SM300226Aleksandra ZavitovskaAMTeam 2Online Processor
Tipngo110086Adriana AlexandruPMTeam 7Online Processor

What id like to be able to do is move an operative in the 1st sheet and it updates the department allocated on the 2nd spreadsheet

What vlookup formulas would i need to write?

Thanks for your help
 

Excel Facts

Shade all formula cells
To shade all formula cells: Home, Find & Select, Formulas to select all formulas. Then apply a light fill color.
Hi, not sure which version of Excel you have, but if you can use XLOOKUP() instead of VLOOKUP it could be a little easier. Also, fairly important to have your columns in the same order on both sheets, as it makes it easier to pull out several columns of data in one go. I based this one around the "clock no." as thats most likely to be unique between workers. Its quite possible that if you used "name" then you can have 2 employees with same name, and cause problems.

Anyway, heres a suggestion for you to get started with. I have 2 sheets, sheet1 and sheet2.

Book1
ABC
1Clock NoNameDepartment
2200489Abena Gyamfua SuleOnline Processor
Sheet1
Cell Formulas
RangeFormula
B2:C2B2=XLOOKUP(A2,Sheet2!A2:A20,Sheet2!B2:C20,"")
Dynamic array formulas.


Book1
ABCDEF
1Clock NumberNameDepartmentAgencyShiftTeam
2200489Abena Gyamfua SuleOnline ProcessorSMAMTeam 3
3200442Ala CiobanaSewingSMAMTeam 2
Sheet2
 
Upvote 0
What version of Excel are you using?

I suggest that you update your Account details (or click your user name at the top right of the forum) so helpers always know what Excel version(s) & platform(s) you are using as the best solution often varies by version. (Don’t forget to scroll down & ‘Save’)
 
Upvote 0

Forum statistics

Threads
1,215,390
Messages
6,124,667
Members
449,178
Latest member
Emilou

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