Microsoft Query - how to reference a cell value in a filter

  • Thread starter Thread starter Dan
  • Start date Start date
D

Dan

I want to write a query where the field a has a criteria
of being equal to the value of cell "a1". How do I enter
that reference or function call into the valuefield of
the query manager??
 
Dan said:
I want to write a query where the field a has a criteria
of being equal to the value of cell "a1". How do I enter
that reference or function call into the valuefield of
the query manager??

Initially put a ?
When you run the query to test it you will be asked for a value.
After the results have been returned to Excel, select a cell in the
results table and use Data / get External Data / Parameters

You should get a dialog which enables you to associate A1 with the
parameter. In recent versions of Excel you can make the query update
automatically when the relevant cell is changed.

Bill Manville
MVP - Microsoft Excel, Oxford, England
No email replies please - reply in newsgroup
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top