2 Reference Lookup

hyunajensen

New Member
Joined
Nov 30, 2006
Messages
2
This should be fairly easy...I have this huge spreadsheet that I want to reference from. I want a formula that will return a "name" if "organization" and "job code" specifics are met. Ex. If Organization = Accounting and Job Code = AC4 then the response would be "Matt"

Name Organization Job Code
Bill Accounting AC1
Anne Sales SA1
Bob GA GA1
Sven Accounting AC2
Jake HR HR1
Matt Accounting AC4
 
Hi hyunajensen,

Welcome to MrExcel!!
Book1
ABCDEFG
1NameOrganizationJob CodeOrganizationJob CodeName
2BillAccountingAC1AccountingAC4Matt
3AnneSalesSA1
4BobGAGA1
5SvenAccountingAC2
6JakeHRHR1
7MattAccountingAC4
Sheet1


Formula in G2,

=DGET(A1:C7,G1,E1:F2)

HTH
 
Upvote 0
A couple of other possibilities using Kris' table:

Code:
=INDEX(A2:A7,MATCH(1,INDEX((B2:B7=E2)*(C2:C7=F2),0),0))

or

Code:
=LOOKUP(2,1/((B2:B7=E2)*(C2:C7=F2)),A2:A7)
 
Upvote 0

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