Solved

Excel query advice

Posted on 2011-09-29
3
213 Views
Last Modified: 2012-05-12
hi all

if i have a column A in excel with stock codes how do i write a query that will do the below for me in column B - i know how to create the connection and write the query i just don't know how to reference an excel entry :@


select QtyOnHand from InvWareouse where Stockcode = "stockcode from excel" and Warehouse= 'GG'
0
Comment
Question by:malraff
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
3 Comments
 
LVL 10

Accepted Solution

by:
ukerandi earned 250 total points
ID: 36814375
See below link it will help you. i think you need to write VBA with ADO programme
http://support.microsoft.com/kb/321686
0
 
LVL 37

Expert Comment

by:Neil Russell
ID: 36814468
Where is the Warehouse field?

Can you post a sample spreadsheet file?
0
 

Author Comment

by:malraff
ID: 36815275
I GOT THIS DONE WITH VB,

sorry i thought i could just do some sort of lookup from excel!
0

Featured Post

Instantly Create Instructional Tutorials

Contextual Guidance at the moment of need helps your employees adopt to new software or processes instantly. Boost knowledge retention and employee engagement step-by-step with one easy solution.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

After seeing numerous questions for Dynamic Data Validation I notice that most have used Visual Basic to solve the problem. This suggestion is purely formula based and can be used in multiple rows.
If you need to forecast numbers -- typically for finance -- the Windows and Mac versions of Excel 2016 have a basket of tools to get the job done.
This Micro Tutorial demonstrate the bugs in Microsoft Excel for Mac with Pivot Charts.
This Micro Tutorial will demonstrate the scrolling table in Microsoft Excel using the INDEX function.

615 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question