Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.newusers
external usenet poster
 
Posts: 2
Default Vlookup problem with Access Query import into Excel 2000

I have exported from an Order Entry program to comma delimited text file
customer purchases. The file has more entries than Excel can handle on one
worksheet. So, I imported the file data into Access (107,000+entries). I
then used Excel's "Query Database" feature to import customer level
purchases into 4 worksheets. The Order Entry program didn't export customer
names, only customer numbers. So, I exported the customer info to another
text file and imported it into the Excel Workbook, only 451 entries . The
problem is when I did a vlookup function to retrieve the customer name into
the worksheet with the customer number, it works when I go into a customer
number cell with "F2" and exit. Otherwise, I get the #N/A error because I
have it set to false. My formula is
=VLOOKUP(A2,Customers!$A$2:$C$415,3,FALSE) in the invoice worksheets. I am
using Office 2000.
What do I need to do to make things work? I know this hard to follow and
trying to explain it is not easy but any help is greatly appreciated. I know
more about Excel than Access and that isn't saying much!
Thank you very much.
Lee


  #2   Report Post  
Posted to microsoft.public.excel.newusers
CLR CLR is offline
external usenet poster
 
Posts: 594
Default Vlookup problem with Access Query import into Excel 2000

Maybe the two items, the value you are looking up and the lookup table are
not actually of the same data type.........one may look like numbers but
actually be text so the lookup will not find it.........I've had this
problem many times before......

hth
Vaya con Dios,
Chuck, CABGx3




"Neophyte" wrote in message
...
I have exported from an Order Entry program to comma delimited text file
customer purchases. The file has more entries than Excel can handle on one
worksheet. So, I imported the file data into Access (107,000+entries). I
then used Excel's "Query Database" feature to import customer level
purchases into 4 worksheets. The Order Entry program didn't export

customer
names, only customer numbers. So, I exported the customer info to another
text file and imported it into the Excel Workbook, only 451 entries . The
problem is when I did a vlookup function to retrieve the customer name

into
the worksheet with the customer number, it works when I go into a customer
number cell with "F2" and exit. Otherwise, I get the #N/A error because I
have it set to false. My formula is
=VLOOKUP(A2,Customers!$A$2:$C$415,3,FALSE) in the invoice worksheets. I am
using Office 2000.
What do I need to do to make things work? I know this hard to follow and
trying to explain it is not easy but any help is greatly appreciated. I

know
more about Excel than Access and that isn't saying much!
Thank you very much.
Lee




  #3   Report Post  
Posted to microsoft.public.excel.newusers
Max Max is offline
external usenet poster
 
Posts: 9,221
Default Vlookup problem with Access Query import into Excel 2000

... it works when I go into a customer number cell with "F2" and exit.
Otherwise, I get the #N/A error because I
have it set to false. My formula is
=VLOOKUP(A2,Customers!$A$2:$C$415,3,FALSE)
What do I need to do to make things work?


As a first guess, try adding a zero to the lookup value, viz use instead:
=VLOOKUP(A2+0,Customers!$A$2:$C$415,3,FALSE)

Adding a zero is just one way of coercing the text numbers in col A to a
real numbers to enable correct matching with the lookup col A in Customers
--
Max
Singapore
http://savefile.com/projects/236895
xdemechanik
---
"Neophyte" wrote:
I have exported from an Order Entry program to comma delimited text file
customer purchases. The file has more entries than Excel can handle on one
worksheet. So, I imported the file data into Access (107,000+entries). I
then used Excel's "Query Database" feature to import customer level
purchases into 4 worksheets. The Order Entry program didn't export customer
names, only customer numbers. So, I exported the customer info to another
text file and imported it into the Excel Workbook, only 451 entries . The
problem is when I did a vlookup function to retrieve the customer name into
the worksheet with the customer number, it works when I go into a customer
number cell with "F2" and exit. Otherwise, I get the #N/A error because I
have it set to false. My formula is
=VLOOKUP(A2,Customers!$A$2:$C$415,3,FALSE) in the invoice worksheets. I am
using Office 2000.
What do I need to do to make things work? I know this hard to follow and
trying to explain it is not easy but any help is greatly appreciated. I know
more about Excel than Access and that isn't saying much!
Thank you very much.
Lee

  #4   Report Post  
Posted to microsoft.public.excel.newusers
external usenet poster
 
Posts: 2
Default Vlookup problem with Access Query import into Excel 2000

That did the trick! I forgot to mention about trying Trim, then Clean, then
Cell Format to number and none of them working. I wish that I could be
updated with new info as easily as the programs but then I wouldn't have the
chance to say thank you very much.
Lee
"Max" wrote in message
...
... it works when I go into a customer number cell with "F2" and exit.
Otherwise, I get the #N/A error because I
have it set to false. My formula is
=VLOOKUP(A2,Customers!$A$2:$C$415,3,FALSE)
What do I need to do to make things work?


As a first guess, try adding a zero to the lookup value, viz use instead:
=VLOOKUP(A2+0,Customers!$A$2:$C$415,3,FALSE)

Adding a zero is just one way of coercing the text numbers in col A to a
real numbers to enable correct matching with the lookup col A in Customers
--
Max
Singapore
http://savefile.com/projects/236895
xdemechanik
---
"Neophyte" wrote:
I have exported from an Order Entry program to comma delimited text file
customer purchases. The file has more entries than Excel can handle on
one
worksheet. So, I imported the file data into Access (107,000+entries). I
then used Excel's "Query Database" feature to import customer level
purchases into 4 worksheets. The Order Entry program didn't export
customer
names, only customer numbers. So, I exported the customer info to another
text file and imported it into the Excel Workbook, only 451 entries . The
problem is when I did a vlookup function to retrieve the customer name
into
the worksheet with the customer number, it works when I go into a
customer
number cell with "F2" and exit. Otherwise, I get the #N/A error because I
have it set to false. My formula is
=VLOOKUP(A2,Customers!$A$2:$C$415,3,FALSE) in the invoice worksheets. I
am
using Office 2000.
What do I need to do to make things work? I know this hard to follow and
trying to explain it is not easy but any help is greatly appreciated. I
know
more about Excel than Access and that isn't saying much!
Thank you very much.
Lee



  #5   Report Post  
Posted to microsoft.public.excel.newusers
Max Max is offline
external usenet poster
 
Posts: 9,221
Default Vlookup problem with Access Query import into Excel 2000

Lee, you're welcome !
Glad it worked for you. Thanks for the feedback ..
--
Max
Singapore
http://savefile.com/projects/236895
xdemechanik
---
"Neophyte" wrote:
That did the trick! I forgot to mention about trying Trim, then Clean, then
Cell Format to number and none of them working. I wish that I could be
updated with new info as easily as the programs but then I wouldn't have the
chance to say thank you very much.
Lee



Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Excel to Access Problem ostate2007 Excel Discussion (Misc queries) 1 June 28th 06 09:21 PM
Excel 2000 ActiveX Control Problem Andy Excel Discussion (Misc queries) 1 March 23rd 06 08:16 PM
VLookup to merge Access Query data into Excel Report Vira-SJH Excel Discussion (Misc queries) 0 January 10th 06 07:18 PM
Link Access query to refresh an EXCEL file Dancer4u New Users to Excel 1 January 13th 05 05:24 PM
How to use a Access Query that as a parameter into Excel database query Karen Middleton Excel Discussion (Misc queries) 1 December 13th 04 07:54 PM


All times are GMT +1. The time now is 09:15 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"