J
J.Love
First of all, if I use "worksheet" when I mean "workbook" or
vice-versa, just make the appropriate mental adjustment. Part of my
struggle is getting this terminology sorted out.
I have two XLS spreadsheets (workbooks?) and I'm trying to populate
the first one with a value lookup from the second one. Here's a brief
look at the relevant elements structure of the spreadsheets.
Workbook PROFILE
A ... E
3 (=Formula) ... 12346
External Workbook (C:\XL\Cust2.xls - worksheet named CUST)
.... G ... BX
2 ABC Company ... 12345
3 BCD Company ... 12346
4 EFG Company ... 12347
Desired result in PROFILE:
A ... E
3 BCD Company ... 12346
(Where "BCD Company" is the result of the formula looking up with
Profile cell E3 into CUST column BX, returning CUST column G's
corresponding entry.)
The formula I tried was:
=VLOOKUP(E3,'C:\XL\[Cust2.xls]Cust'!G2:BX99,1,FALSE)
or
=VLOOKUP(E3,''C:\XL\[Cust2.xls]Cust'!G2:BX99,1,FALSE)
with two single quote marks preceeding the external name as suggested
by another posting, but that only introduced a different error.
The result it gives is "#N/A" and I don't know why. Can I not look up
from worksheet PROFILE with E3 as the source data, to external
worksheet CUST in column BX and go left and get the corresponding row
result in G, transferring this over to cell A3? Or is VLOOKUP the
wrong formula for this? The error seems to point to E3 (it was
highlighted) but there's nothing wrong or unusual about that data. Is
the range G2:BX99 wrong? My values are actually in BX and G as
indicated.
There can be multiple/duplicate values in CUST cell BX, but the
company name is repeated if there is a second equal value, so the
first occurence would suffice. I did sort the data in CUST, using BX
as an ascending value as the example shows.
I've tried dozens of combinations of syntax with no better results.
I've read the help but all the terminology is very confusing.
Any suggestions would be VERY much appreciated.
vice-versa, just make the appropriate mental adjustment. Part of my
struggle is getting this terminology sorted out.
I have two XLS spreadsheets (workbooks?) and I'm trying to populate
the first one with a value lookup from the second one. Here's a brief
look at the relevant elements structure of the spreadsheets.
Workbook PROFILE
A ... E
3 (=Formula) ... 12346
External Workbook (C:\XL\Cust2.xls - worksheet named CUST)
.... G ... BX
2 ABC Company ... 12345
3 BCD Company ... 12346
4 EFG Company ... 12347
Desired result in PROFILE:
A ... E
3 BCD Company ... 12346
(Where "BCD Company" is the result of the formula looking up with
Profile cell E3 into CUST column BX, returning CUST column G's
corresponding entry.)
The formula I tried was:
=VLOOKUP(E3,'C:\XL\[Cust2.xls]Cust'!G2:BX99,1,FALSE)
or
=VLOOKUP(E3,''C:\XL\[Cust2.xls]Cust'!G2:BX99,1,FALSE)
with two single quote marks preceeding the external name as suggested
by another posting, but that only introduced a different error.
The result it gives is "#N/A" and I don't know why. Can I not look up
from worksheet PROFILE with E3 as the source data, to external
worksheet CUST in column BX and go left and get the corresponding row
result in G, transferring this over to cell A3? Or is VLOOKUP the
wrong formula for this? The error seems to point to E3 (it was
highlighted) but there's nothing wrong or unusual about that data. Is
the range G2:BX99 wrong? My values are actually in BX and G as
indicated.
There can be multiple/duplicate values in CUST cell BX, but the
company name is repeated if there is a second equal value, so the
first occurence would suffice. I did sort the data in CUST, using BX
as an ascending value as the example shows.
I've tried dozens of combinations of syntax with no better results.
I've read the help but all the terminology is very confusing.
Any suggestions would be VERY much appreciated.