Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
dan dan is offline
external usenet poster
 
Posts: 113
Default Microsoft Query - how to reference a cell value in a filter

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??
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 473
Default Microsoft Query - how to reference a cell value in a filter

Dan wrote:
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

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 2003, Microsoft Query - reference to subquery alias Finnman Excel Discussion (Misc queries) 1 December 2nd 08 11:21 AM
Query from microsoft query- Excel 2007 טבלאות אקסל 2007 Excel Discussion (Misc queries) 0 December 24th 07 10:47 PM
Advance Filter can be based on cell Color in Microsoft Excel Prateek Singhal New Users to Excel 2 August 23rd 07 04:38 AM
Query about Last Cell reference. Pank Mehta Excel Discussion (Misc queries) 3 May 9th 05 10:47 AM
Microsoft Query rejects "nz" function in Access Query Vaughan Excel Discussion (Misc queries) 0 May 4th 05 05:20 PM


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

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

About Us

"It's about Microsoft Excel"