VLookup 2 columns (one being conditional)?

helpneeded2

Board Regular
Joined
Jun 25, 2021
Messages
110
Office Version
  1. 365
Platform
  1. Windows
I have two separate worksheets that I am working with. In sheet #1, I want a field that will pull in an account number from the sheet #2.

There are 3 specific columns in the 2nd sheet that will be referenced:

Account Number
Customer Number
Status

The customer number is a unique identifier, and there can be multiple instances of the account number associated with the same customer number. The inactive accounts have "cancelled" in the Status column.

I would like a formula from Sheet #1 that will lookup the Account number from Sheet #1, and compare it against the list of Account numbers in Sheet #2, and return the associated Customer Number for the first instance it finds of the Account number, where the Status is not "Cancelled".

Is this possible to do with a lookup function, and if so could someone please let me know how this could be done?

Thank you.
 

Excel Facts

How to show all formulas in Excel?
Press Ctrl+` to show all formulas. Press it again to toggle back to numbers. The grave accent is often under the tilde on US keyboards.
Seems you are on 365. Google excel filter function.
 
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