+ Reply to Thread
Results 1 to 3 of 3

How to query an Excel file in an External Data Connection

Hybrid View

  1. #1
    Forum Contributor
    Join Date
    06-22-2010
    Location
    Sydney, Australia
    MS-Off Ver
    Excel 2003
    Posts
    152

    How to query an Excel file in an External Data Connection

    Hi,

    I have a 2010 excel spreadsheet that pulls data from SQL server as a Data Connection. I also have 3 other excel files that I need to query. These files are quite large and are updated each month. I only want to present certain records based on criteria so would like to use SQL to query these excel files. I have been told it's possible to add an excel file as an external data source but that the SQL code is a little different to standard. I can connect to the files and am able to return the entire table but can't figure out what the SQL string should be in order to limit what is being returned. Has anyone does this before and know of the syntax to use?

  2. #2
    Forum Contributor
    Join Date
    12-14-2012
    Location
    United States
    MS-Off Ver
    Excel 2010
    Posts
    102

    Re: How to query an Excel file in an External Data Connection

    Maybe this will help.

    http://www.excelforum.com/excel-prog...-workbook.html

  3. #3
    Forum Contributor
    Join Date
    06-22-2010
    Location
    Sydney, Australia
    MS-Off Ver
    Excel 2003
    Posts
    152

    Re: How to query an Excel file in an External Data Connection

    That's seems to be VBA rather than an external connection but I'll give it a go. Thanks

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1