If/Vlookup formula

edins425

New Member
Joined
Aug 26, 2024
Messages
5
Office Version
  1. 365
Platform
  1. Windows
Hi, I'm looking for a version of a vlookup that returns a value based on 2 matching criteria. As shown in the attached file, I've made a simple version including 3 columns. If the Department AND Budget Program in column F match the Department AND Program in Columns A and B, I'd like F4 to display the Program Purpose (column C). Seems pretty simple but I'm stuck.

Appreciate the help!

1724703718992.png
 

Excel Facts

VLOOKUP to Left?
Use =VLOOKUP(A2,CHOOSE({1,2},$Z$1:$Z$99,$Y$1:$Y$99),2,False) to lookup Y values to left of Z values.
Give this a try:
Book1
ABCDEF
1DepartmentProgramProgram Purpose
2Seattle CenterCultural SpacePurpose ADepartmentCity Budget Office
3Department of NeighborhoodsDepartmental Indirect CostsPurpose BBudget ProgramDepartmental Indirect Costs
4Office of Arts and CultureFunding Programs & PartnershipPurpose CPurposePurpose F
5Office of Arts and CulturePooled Benefits and PTOPurpose D
6City Budget OfficePublic ArtPurpose E
7City Budget OfficeDepartmental Indirect CostsPurpose F
Sheet5
Cell Formulas
RangeFormula
F4F4=XLOOKUP(F2&F3,A2:A7&B2:B7,C2:C7)
 
Upvote 2
Solution
Give this a try:
Book1
ABCDEF
1DepartmentProgramProgram Purpose
2Seattle CenterCultural SpacePurpose ADepartmentCity Budget Office
3Department of NeighborhoodsDepartmental Indirect CostsPurpose BBudget ProgramDepartmental Indirect Costs
4Office of Arts and CultureFunding Programs & PartnershipPurpose CPurposePurpose F
5Office of Arts and CulturePooled Benefits and PTOPurpose D
6City Budget OfficePublic ArtPurpose E
7City Budget OfficeDepartmental Indirect CostsPurpose F
Sheet5
Cell Formulas
RangeFormula
F4F4=XLOOKUP(F2&F3,A2:A7&B2:B7,C2:C7)
This works perfectly, thank you!!!
 
Upvote 0

Forum statistics

Threads
1,224,823
Messages
6,181,178
Members
453,021
Latest member
Justyna P

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