A Microsoft Office (Excel, Word) forum. OfficeFrustration

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » OfficeFrustration forum » Microsoft Excel » Links and Linking
Site Map Home Register Authors List Search Today's Posts Mark Forums Read  

vlookup from Access db



 
 
Thread Tools Display Modes
  #1  
Old November 4th, 2008, 06:42 PM posted to microsoft.public.excel.links
PsyberFox
external usenet poster
 
Posts: 88
Default vlookup from Access db

Hey there,

I reckon the subject asks it all, but to explain further:

I have barcodes in Excel in a column. Next to each I need to put a sales
volume, which must be "vlooked"-up from an Access db. Is this possible?

E.G. in Excel

BarCode Volume
123456 20.00 (formula)

In Access

BarCode Volume
123456 20.00

Thank you for any help!
  #2  
Old November 5th, 2008, 01:20 PM posted to microsoft.public.excel.links
Bill Manville
external usenet poster
 
Posts: 258
Default vlookup from Access db

If the Access table is not large then I would use Data External Data
New Database Query to bring the table into Excel from Access.

(or equivalent; the naming has changed with different versions of Excel
- it always helps us to help you if you specify)

You can then do the VLOOKUP in Excel referencing the table.

Alternatively, if you have a large table but only need a small number
of lookups, you could make each lookup be a Query using the barcode as
a parameter.

Finally, if you have a very large table and quite a lot of lookups then
it might be better to use a macro to navigate a recordset based on the
Access table, and populate the Volume column.

If you need help with your chosen route, come back

Bill Manville
MVP - Microsoft Excel, Oxford, England
No email replies please - respond to newsgroup

  #3  
Old November 5th, 2008, 02:25 PM posted to microsoft.public.excel.links
PsyberFox
external usenet poster
 
Posts: 88
Default vlookup from Access db

Hi Bill, thank you for your response.

I have many sheets with many lookups to many access tables (all within a
single db though), so I guess the last option would be best... can you
possible elaborate a bit more on this?

Thank you again!
W

"Bill Manville" wrote:

If the Access table is not large then I would use Data External Data
New Database Query to bring the table into Excel from Access.

(or equivalent; the naming has changed with different versions of Excel
- it always helps us to help you if you specify)

You can then do the VLOOKUP in Excel referencing the table.

Alternatively, if you have a large table but only need a small number
of lookups, you could make each lookup be a Query using the barcode as
a parameter.

Finally, if you have a very large table and quite a lot of lookups then
it might be better to use a macro to navigate a recordset based on the
Access table, and populate the Volume column.

If you need help with your chosen route, come back

Bill Manville
MVP - Microsoft Excel, Oxford, England
No email replies please - respond to newsgroup


  #4  
Old November 6th, 2008, 03:14 PM posted to microsoft.public.excel.links
Bill Manville
external usenet poster
 
Posts: 258
Default vlookup from Access db

Many sheets with many lookups to many tables in a database suggests to
me that the design of your application may not be ideal for Excel, and
I would hesitate to promote the recordset idea in this case.

Try the QueryTable approach and see how you get on with it.

Have you considered doing it all in Access?

Bill Manville
MVP - Microsoft Excel, Oxford, England
No email replies please - respond to newsgroup

 




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump


All times are GMT +1. The time now is 07:30 PM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 OfficeFrustration.
The comments are property of their posters.