Need to do a parent child lookup then reference a replacement value...

gersh

New Member
Joined
Jul 6, 2015
Messages
2
I have to translate a list of old client & matter numbers to new client and matter numbers.

Client and matter are related parent child, so for each client there can be many matters. And, matters can be the same for each client. For instance, below lists the old client and matter numbers along with the new client and matter numbers that correspond to each old client/matter combination (lawyers switching to a new law firm so the old client and matters numbers are changing to the format for the new firm)

Old Cli Old Mat New Cli New Mat
12345 001 56743 NH0010
12345 002 56743 NH0020
12378 001 56872 NH0010
12378 003 56872 BI00003

I need a formula that returns the correct new matter number for a given Old Cli and Old Mat. Getting a new client number for each old one is easy, thats a simple VLOOKUP. But to get the new matter I first need to look up the old client and matter, then reference the new corresponding matter. I am struggling with his. I think that maybe I can use and INDEX MATCH for this but not sure how it would be formatted. Please help!
 

Excel Facts

Excel Wisdom
Using a mouse in Excel is the work equivalent of wearing a lanyard when you first get to college
Hi and welcome to the MrExcel Message Board,

Here is an example of what you could use.

Please note that the old Matter numbers have leading zeros. You can enter those several ways. The thing to remember is that it must be entered the same way everywhere you use it.


Excel 2013
ABCD
1Old_CliOld_MatNew_CliNew_Mat
212345156743NH0010
312345256743NH0020
412378156872NH0010
512378356872BI00003
6
7Old_CliOld_MatNew_Mat
8123451NH0010
9123452NH0020
10123781NH0010
11123783BI00003
Sheet1
Cell Formulas
RangeFormula
D8{=INDEX($D$2:$D$5,MATCH(1,($A$2:$A$5=A8)*($B$2:$B$5=B8),0),1)}
D9{=INDEX($D$2:$D$5,MATCH(1,($A$2:$A$5=A9)*($B$2:$B$5=B9),0),1)}
D10{=INDEX($D$2:$D$5,MATCH(1,($A$2:$A$5=A10)*($B$2:$B$5=B10),0),1)}
D11{=INDEX($D$2:$D$5,MATCH(1,($A$2:$A$5=A11)*($B$2:$B$5=B11),0),1)}
Press CTRL+SHIFT+ENTER to enter array formulas.
 
Upvote 0
I will give this a shot and let you know how it goes. Thank you very much for your help!

-Steve
 
Upvote 0

Forum statistics

Threads
1,223,236
Messages
6,170,915
Members
452,366
Latest member
TePunaBloke

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