About 6,900,000 results
Open links in new tab
  1. How to run a SQL query on an Excel table? - Stack Overflow

    In the SQL scripts Excel tables are visible as if they were regular database tables. All four SQL data operations are supported: select/update/insert/delete . The engine that executes the queries is SQLite so you can use joins, common table expressions, window functions, etc...

  2. Performing SQL queries on an Excel Table within a Workbook …

    Nov 4, 2013 · So you can use SELECT * FROM [Sheet1$] or you could use SELECT * FROM MyNamedRange. And to add on to the above, is there a reason you can't just name your range in VBA and then run your code? You said "static named ranges", but you can simply adjust your named ranges dynamically if needed.

  3. Using Microsoft Query in Excel to Retreive SQL Server Data

    Nov 23, 2016 · Excel is an easy way to retrieve external data from SQL Server or other database platforms. We are used to retrieving data from a table or a view, but sometimes we need to filter the data using parameters like using a WHERE clause in a SQL query.

  4. How to SELECT FROM WHERE in excel? Return rows from database

    Jul 11, 2019 · To customize this for your specific data, you only need to replace the text inside the quotation marks with your specific table name and named ranges, in the Set Variables section. In the example below, I used named ranges for the cells that will be used as the filter parameters. I also formatted the data to be filtered as a table.

  5. How to Use SQL Statements in MS Excel? - GeeksforGeeks

    Nov 1, 2023 · SELECT STATEMENT SQL: The SELECT statement is used to get information from a database. The information returned is saved in a result table known as the result set. WHERE CLAUSE SQL: To filter records, use the WHERE clause. It is used to extract only records that meet a predefined requirement.

  6. How to create a Microsoft Query in Excel (Excel Query) - Analyst …

    Apr 25, 2016 · Microsoft Query allows you use SQL directly in Microsoft Excel, treating Sheets as tables against which you can run Select statements with JOINs, UNIONs and more. Often Microsoft Query statements will be more efficient than Excel formulas or a VBA Macro. A Microsoft Query (aka MS Query, aka Excel Query) is in fact an SQL SELECT Statement.

  7. QUERY function for Excel – how to use SQL in Excel cells

    Sep 26, 2022 · In this blog post, I’m going to show you how to add a QUERY function to Excel and give a few examples of how to use it. Let’s start by taking a look at the function in action. The function is pretty straightforward. It accepts the SQL query as the first parameter and returns a table with the results of the query.

  8. How to run SQL queries directly on Excel tables - XLTools

    Jan 8, 2014 · SQL Queries add-in allows you to execute queries on Excel tables located in different worksheets and different workbooks. Please make sure that these workbooks are open and the necessary data are formatted as named tables. Click the Execute SQL button on the XLTools tab The editor window will open.

  9. Connect and Pull data from SQL Server in Excel using VBA

    In this article, I'll show you how to connect to an SQL Server database and extract or pull data into Excel using VBA. The image above 👆 clearly explains what the macro here will do. It will fill a combo box with few records (extracted from an SQL Server table) on button click.

  10. How to Open a SQL Query in Excel - thebricks.com

    Feb 12, 2025 · Excel offers a feature called Microsoft Query, which acts like a translator between SQL and Excel. Here’s how you can use it: Open Microsoft Query: In Excel, go to the Data tab, click on Get Data, choose From Other Sources, and then select From Microsoft Query. Select Your Data Source: Choose the DSN you set up earlier.

  11. Some results have been removed
Refresh