Thread: SELECT Query
View Single Post
  #2   Report Post  
Posted to microsoft.public.excel.programming,microsoft.public.excel.worksheet.functions
RichardSchollar[_2_] RichardSchollar[_2_] is offline
external usenet poster
 
Posts: 76
Default SELECT Query

Hi TJ

You can do this via MSQuery (DataImport External DataNew Database
Query and follow the wizard, using the Excel driver). For this to
work easily, the data needs to be in a named range (or to start in row
1 (Headers) with data immediately below (row2 onwards)). You hit
problems if it isn't. The named range must be a static named range
too - it can't be a dynamically defined one (using Offset or Index).

Post back if you get stuck with this.

Best regards

Richard


On 5 Mar, 10:13, "TJ" wrote:
Hi
I am looking for a way of simulates a Access SELECT query in Excel. I have a
worksheet that contains multiple instances of different peoples names. This
worksheet is generated on a weekly basis and the names change, new ones
added, other not appearing etc. What I am looking for is something along
the lines of

"SELECT DISTINCT name FROM worksheet" and add these name to a seperate work
sheet. I have not got access to MS Access which would have made this easier
to do. I would like to try and do this if possible without the need to use
Excel VBA, but if it is the only way so be it. Any help appreciated.

Thanks TJ