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

    The data connection requires a file name, which is a show-stopper when the task is to query the current file. Moreover, a query cannot be used the same way a formula can, you can only use …

  2. Excel function to make SQL-like queries on worksheet data?

    Jan 6, 2012 · You can use Get External Data (despite its name), located in the 'Data' tab of Excel 2010, to set up a connection in a workbook to query data from itself. Use From Other Sources …

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

    Nov 4, 2013 · I am trying to make an excel macro that will give me the following function in Excel: =SQL("SELECT heading_1 FROM Table1 WHERE heading_2='foo'") Allowing me to search …

  4. sql server - Using Excel VBA to run SQL query - Stack Overflow

    I am fairly new to SQL and VBA. I have written a SQL query that I would like to be able to call and run from a VBA sub in an excel workbook and then bring the query results into the workbook.

  5. Excel: Use a cell value as a parameter for a SQL query

    Aug 24, 2015 · The SQL is somewhat like the syntax of MS SQL. SELECT * FROM [table$] WHERE *; It is important that the table name is ended with a $ sign and the whole thing is put …

  6. Using SQL "IN" Function in Excel - Stack Overflow

    Dec 23, 2011 · Is there an "IN" type function like the one used in sql that can be used in excel? For example, if i am writing an If statement in excel and I want it to check the contents of a cell …

  7. Generate sql insert script from excel worksheet - Stack Overflow

    May 29, 2013 · I have a large excel worksheet that I want to add to my database. Can I generate an SQL insert script from this excel worksheet?

  8. Powerquery - reference Excel cell value within SQL query?

    May 8, 2020 · 1 I am trying to modify an excel worksheet that was given to me, with a connection to a SQL database that looks as follows: select * from DB.AccountAssignments where …

  9. Running SQL query from excel and refer to specific cell

    Mar 4, 2025 · 0 When you use SQL queries in Excel you can't directly reference a cell. However, there are some ways to solve your issue, each depends on the desired automatization level. …

  10. Code to read xlsx sheet into a table in a SQL Server database

    Jun 11, 2014 · I am trying to read data from an Excel sheet (.xlsx file) into a table in SQL Server 2008. I want this to be run everyday as a batch job and hence want to write SQL code in a …