Vlookup with multiple criteria

coreyjames

Board Regular
Joined
Apr 19, 2011
Messages
71
I am currently working on a project for a hospital where I have data with case numbers, procedures, cost, etc. I have a vlookup looking at a pivot table that is matching the case number with the procedure. The problem is I have instances where the case number may be 789987 and a bowel resection was the procedure. However, there may have been multiple procedures for one case so the same case number "789987" may appear again with a different procedure like a hernia repair. I want to make sure if my vlookup picks up "bowel resection" the first time it sees the case number then it will pick up the other case "hernia repair" the second time it sees the number. Is this possible? Thank you!
 

Excel Facts

Excel motto
Not everything I do at work revolves around Excel. Only the fun parts.
I looked at the thread but I dont think thats what I am looking for.

case #: 12345 Bowel Resection
case #: 5678 Surgery
case#:12345 Hernia repair

I need the vlookup to return just the procedure name but when it sees the case "12345" it will say bowel resection both times instead of bowel resection and then hernia repair next time it sees it.
 
Upvote 0

Forum statistics

Threads
1,224,524
Messages
6,179,304
Members
452,904
Latest member
CodeMasterX

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