help with matching data

arey

Board Regular
Joined
Feb 14, 2006
Messages
166
Hello all,

Does anyone know how I can match an item in a row with another row?

I have a row of data A2:J2. A persons name could be in any column in that row.

I have another two rows of data where the peoples name and department name appear Where L2:L7 = peoples names
where M2:M7 = peoples department


I want to match a name in A2:J2 with one in L2:L7 and if matched put the department name in K2. Then obiviously i will copy the formular down column K.

Any help would be great.
 

Excel Facts

When did Power Query debut in Excel?
Although it was an add-in in Excel 2010 & Excel 2013, Power Query became a part of Excel in 2016, in Data, Get & Transform Data.
try this
Excel Workbook
ABCDEFGHIJ
1NameDept
2arey
3finance
Sheet2


Excel Workbook
LM
1
2
3CarolPurchasing
4jamesSales
5areyfinance
6TomTop Dog
7
8
Sheet2


Hope I got the layout right - HTH
 
Upvote 0
thanks. THis looks like it should wokr but i get a #value! error.

Any ideas?
 
Upvote 0
I cant seem to post a screen shot of the table on the site you suggested.
Can you tell me how to do that?
 
Upvote 0
heres the image..

F)ile (E)dit (V)iew (I)nsert (O)ptions (T)ools (D)ata (W)indow (H)elp (A)bout

AE2 =


AE AF AG AH AI AJ AK AL AM AN AO AP AQ
1 Group Manager Name Manager ID 2nd Level Manager 2nd Level Mgr ID 3rd Level Manaager 3rd Level MGR ID 4th Level Manager 4th Level Mgr ID Department head ID Deapartment Head Group
2 #VALUE! John Cherian 006986 Umesh Rege 005768 Johnny Mathis 002976 George Jetson 900320 007248 George Jetson Strategic Initiatives
3 Krzysztof Supel 007481 Matthew Taylor 006985 Yogi Bear 002976 Yogi Bear 900320 009809 Yogi Bear US Futures Trading Business
4 Charles Hackett 003435 Gerald Casson 004280 Sammy Sozzoa 004158 Brian Adams 008530 009438 Boo Boo Global Human Resources
5 Andrew Richman 006277 Holly Kulka 009129 Betty Ruble 009429 Dupty Dog 008797 007753 Dupty Dog Global Affairs and Gov Relations
6 Anthony Loffredo 900666 Terry Pruitt 901464 Paul Mall 802565 Tom Jones 801846 009772 Kazoo Corporate Finance
7 Patricia Bergholc 007749 Susan Lui-Facendola 007542 Johnny Mathis 007432 James Dean 004790 009429 Willima Flintstone General Councel
8 Cynthia Melo 008438 Janice O'Neill 005578 James Dean 004790 005047 Betty Rumble Global Listings
9 Charles Hackett 003435 Gerald Casson 004280 Sammy Sozzoa 004158 Brian Adams 008530 009096 Barney Rumble US Markets and Global Technology
10 Kevin Royce 005919 Dean Laumbach 005458 Sammy Sozzoa 004158 Brian Adams 008530 007253 Bam Bam Rumble Corp Strtgy and Bus Dev
11 Walter Thomas 901143 Michael Stancampiano 005060 Speed Racer 802667 Tom Jones 801846 700040 Pebbles Flintstone Corporate Communications
12 Bernadette Russell 003839 Matthew Taylor 006985 Peter Brady 002976 Billy Idiol 900320
13 Thomas O'Neill 932651 Pasquale Antonacci 932870 Sammy Sozzoa 004158 Brian Adams 008530
people
 
Upvote 0
I think i got it this time. Here is a snapshot
test_for_match.xls
AEAFAGAHAIAJAKALAMANAOAPAQ
1GroupManager NameManager ID2nd Level Manager2nd Level Mgr ID3rd Level Manaager3rd Level MGR ID4th Level Manager4th Level Mgr IDDepartment head IDDeapartment HeadGroup
2#VALUE!John Cherian006986Umesh Rege005768Johnny Mathis002976George Jetson900320007248George JetsonStrategic Initiatives
3Krzysztof Supel007481Matthew Taylor006985Yogi Bear002976Yogi Bear900320009809Yogi BearUS Futures Trading Business
4Charles Hackett003435Gerald Casson004280Sammy Sozzoa004158Brian Adams008530009438Boo BooGlobal Human Resources
5Andrew Richman006277Holly Kulka009129Betty Ruble009429Dupty Dog008797007753Dupty DogGlobal Affairs and Gov Relations
6Anthony Loffredo900666Terry Pruitt901464Paul Mall802565Tom Jones801846009772KazooCorporate Finance
7Patricia Bergholc007749Susan Lui-Facendola007542Johnny Mathis007432James Dean004790009429Willima FlintstoneGeneral Councel
8Cynthia Melo008438Janice O'Neill005578James Dean004790005047Betty RumbleGlobal Listings
9Charles Hackett003435Gerald Casson004280Sammy Sozzoa004158Brian Adams008530009096Barney RumbleUS Markets and Global Technology
10Kevin Royce005919Dean Laumbach005458Sammy Sozzoa004158Brian Adams008530007253Bam Bam RumbleCorp Strtgy and Bus Dev
11Walter Thomas901143Michael Stancampiano005060Speed Racer802667Tom Jones801846700040Pebbles FlintstoneCorporate Communications
12Bernadette Russell003839Matthew Taylor006985Peter Brady002976Billy Idiol900320
13Thomas O'Neill932651Pasquale Antonacci932870Sammy Sozzoa004158Brian Adams008530
14Billy Idiol900320Tom Jones801846Barney Rumble009096Fred Flintsone008797
people
 
Upvote 0

Forum statistics

Threads
1,214,942
Messages
6,122,367
Members
449,080
Latest member
Armadillos

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