ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   Vlookup that checks against two values (https://www.excelbanter.com/excel-programming/405413-vlookup-checks-against-two-values.html)

runsrealfast

Vlookup that checks against two values
 
I have a sheet that contains a column of Product numbers, a comlumn of
customer numbers, and a column for orders. In another sheet I have the
a similar format with the same columns. I need to check I need to move
the values of the order to the second sheet but I must check against
both the product number and the customer number. excel does not allow
you to do the following (gives the #NAME? error).

VLOOKUP(A1 AND B1, ANOTHERSHEETA1:C1,3,false)

What is the best way to do this?

John


SteveM

Vlookup that checks against two values
 
On Jan 31, 6:44 pm, runsrealfast wrote:
I have a sheet that contains a column of Product numbers, a comlumn of
customer numbers, and a column for orders. In another sheet I have the
a similar format with the same columns. I need to check I need to move
the values of the order to the second sheet but I must check against
both the product number and the customer number. excel does not allow
you to do the following (gives the #NAME? error).

VLOOKUP(A1 AND B1, ANOTHERSHEETA1:C1,3,false)

What is the best way to do this?

John


Convert your database to Access.


Really. If you are managing multi-product, multi-customer
information, Excel is probably the wrong platform. There are some
Access templates that will probably get you 80% there.


[email protected]

Vlookup that checks against two values
 
On Feb 1, 7:44*am, runsrealfast wrote:
I have a sheet that contains a column of Product numbers, a comlumn of
customer numbers, and a column for orders. In another sheet I have the
a similar format with the same columns. I need to check I need to move
the values of the order to the second sheet but I must check against
both the product number and the customer number. excel does not allow
you to do the following (gives the #NAME? error).

VLOOKUP(A1 AND B1, ANOTHERSHEETA1:C1,3,false)

What is the best way to do this?

John


Try populating a new column with the concatenated lookup fields and
use this as the lookup value instead of 2 separate fields. Repeat for
the lookup table.

Regards
Trevosef

Dave Peterson

Vlookup that checks against two values
 
Check your other posts, too.

runsrealfast wrote:

I have a sheet that contains a column of Product numbers, a comlumn of
customer numbers, and a column for orders. In another sheet I have the
a similar format with the same columns. I need to check I need to move
the values of the order to the second sheet but I must check against
both the product number and the customer number. excel does not allow
you to do the following (gives the #NAME? error).

VLOOKUP(A1 AND B1, ANOTHERSHEETA1:C1,3,false)

What is the best way to do this?

John


--

Dave Peterson

Stephen C

Vlookup that checks against two values
 
Try - VLOOKUP(A1&B1,ANOTHERSHEET!A1:C1,3,false)

This will not work if both cells contain numbers.

"runsrealfast" wrote:

I have a sheet that contains a column of Product numbers, a comlumn of
customer numbers, and a column for orders. In another sheet I have the
a similar format with the same columns. I need to check I need to move
the values of the order to the second sheet but I must check against
both the product number and the customer number. excel does not allow
you to do the following (gives the #NAME? error).

VLOOKUP(A1 AND B1, ANOTHERSHEETA1:C1,3,false)

What is the best way to do this?

John



runsrealfast

Vlookup that checks against two values
 
On Jan 31, 5:45 pm, SteveM wrote:
On Jan 31, 6:44 pm, runsrealfast wrote:

I have a sheet that contains a column of Product numbers, a comlumn of
customer numbers, and a column for orders. In another sheet I have the
a similar format with the same columns. I need to check I need to move
the values of the order to the second sheet but I must check against
both the product number and the customer number. excel does not allow
you to do the following (gives the #NAME? error).


VLOOKUP(A1 AND B1, ANOTHERSHEETA1:C1,3,false)


What is the best way to do this?


John


Convert your database to Access.

Really. If you are managing multi-product, multi-customer
information, Excel is probably the wrong platform. There are some
Access templates that will probably get you 80% there.


Actually the database is an oracle database. just have information
that needed to be undated and then we ran scripts to put the new data
in the DB.

Excel is in no way acceptable for a database.

John


All times are GMT +1. The time now is 01:36 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com