name range and Vlookup

shreerajpatil16

New Member
Joined
Jun 26, 2023
Messages
1
Office Version
  1. 365
Platform
  1. MacOS
Assignment 2.xlsx
BCDEFGHIJKL
2Get Region, Department and Salary of all Employees from Sheet "Source"
3If C-Code is not present, display "Retired"
4*Use Name Range and Vlookup with Match Function
5
6C_CodeFirstNameLastNameBirthdateGenderM_StatusRegionDepartmentSalary
7150834RamAmbradkar1-Jun-85FemaleMarried
8150784SachinBangera28-Aug-77FemaleSingle
9150791RajeshBohra1-Dec-63FemaleMarried
10150940RajeeshC30-Aug-73MaleSingle
11150777MelwynCrasto30-Oct-57MaleMarried
12150805RajeshDedhia27-Aug-71MaleMarried
13150990DattatrayDesai28-Aug-99MaleMarried
14150989VishnuDesai28-Aug-90MaleMarried
15150881DineshDhanuka21-Jan-83MaleSingle
16150814HeenaDongre9-Nov-71MaleMarried
17150937DhirenHaria16-Aug-67MaleMarried
18150888GururajJoshi1-Jan-80MaleMarried
19150865RuffinaJoshi20-Aug-85FemaleMarried
20150858JagjitKahlon27-May-95MaleMarried
21150930PiyushKamdar16-May-01MaleMarried
22150894DKulkarni21-Aug-01MaleMarried
23150947RajuManek30-Jul-91FemaleMarried
24150905YogeshMansharamani17-May-84FemaleSingle
25150995SatishPasari22-Sep-96MaleMarried
26150912NitinPatki8-Jan-03FemaleMarried
27150921PremPherwani15-Apr-04MaleMarried
28150851SudeshPillai27-May-80MaleSingle
29150867BonecaRego22-Jun-79FemaleSingle
30150899SharadchandraRiswadkar24-May-02MaleMarried
31150975SimonRodrigues7-Mar-86MaleMarried
32150901AshokSamtaney14-Mar-90FemaleMarried
33150968PrafulSavla13-Nov-01MaleMarried
34150773StanSerrao15-Jul-73MaleMarried
35150840PiyushShah5-May-63FemaleMarried
36150850DhirenSheth7-Sep-87MaleMarried
37150962ShankarShetty1-Jun-03FemaleMarried
38150954KawdoorShetty6-Mar-97FemaleMarried
39150874VenithaShetty26-Sep-03FemaleMarried
40150798TulsidasShetty31-May-77FemaleMarried
41150830RajeevSingh1-Jul-79FemaleMarried
42150929BobbyTanna16-Mar-73MaleMarried
43150982JitendraThacker24-May-97MaleMarried
44150821YashrajVaidya15-Jan-82MaleSingle
45
Master Emp sheet
.


Assignment 2.xlsx
BCDEFG
3
4
5C_CodeDepartmentRegionBasic Salary
6150773FinanceNorth85000
7150777MarketingNorth22000
8150784Digital MarketingNorth35000
9150791Digital MarketingNorth67000
10150798Digital MarketingNorth81000
11150805DirectorNorth91000
12150814Inside SalesNorth50000
13150821CCDNorth26000
14150830SalesNorth52000
15150834FLMNorth48000
16150840Inside SalesEast20000
17150850CCDEast47000
18150851Inside SalesEast75000
19150865CEOEast90000
20150867FinanceEast49000
21150874MarketingEast27000
22150881Digital MarketingEast92000
23150888Learning & DevelopmentEast43000
24150894Inside SalesSouth67000
25150901SalesSouth53000
26150905FLMSouth62000
27150912OperationsSouth81000
28150921FinanceSouth19000
29150929MarketingSouth58000
30150930Digital MarketingSouth82000
31150937Learning & DevelopmentSouth37000
32150940Inside SalesSouth87000
33150947CCDSouth85000
34150962DirectorSouth87000
35150968OperationsSouth65000
36150975FinanceMid West83000
37150982MarketingMid West47000
38150989Digital MarketingMid West45000
39150990Learning & DevelopmentMid West77000
40150995Inside SalesMid West15000
41
Source
 

Excel Facts

Who is Mr Spreadsheet?
Author John Walkenbach was Mr Spreadsheet until his retirement in June 2019.
as i said here
I can help you and point in the right direction

if you have posted the question on other forums - then please let us know.....

the common key between those 2 sheets appears to be the c_code column, as mentioned in the question

so you should be able to use a lookup to do that - quite a few different functions for lookups

vlookup
using a combination of index and match
Xlookup

so you should be able to research and find how to use those
its asking you to use vlookup , so you should be able to find plenty of example on the web telling you how to do that

you should also search the web for if there is an error - ie the employee is not found and vlookup will return N/A - how to handle that , again there is a function in excel to do that

hope that helps - but I do not do the assignment here , thats for you to learn , and research , i will only point you in the right direction

I assume you have tried looking up vlookup and how to setup named ranges and got stuck
if so explain what you have tried and why stuck , results you have got so far
 
Upvote 0

Forum statistics

Threads
1,224,259
Messages
6,177,482
Members
452,782
Latest member
ZCapitao

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