QUERY(data, query, [headers]) data - The range of cells to perform the query on. Each column of data can only hold boolean, numeric (including date/time types) or string values. In case of mixed data types in a single column, the majority data type determines the data type of the column for query purposes. Excel SQL Query Using Microsoft Query This option is likely the most complex option, but it has the added advantage of being compatible with some versions of Mac OSX. I won’t pretend to be an expert at creating Mac OSX compatible tools for Excel, but I have successfully used this implementation to create an embedded Excel SQL query for Macs ... How to use/reference value from previous worksheet in Excel? How to reference a specific cell value from previous worksheet when creating a copy in Excel? For example, when creating a copy of Sheet2, you may want to automatically reference cell A1 of Sheet2 into the new copied worksheet (says Sheet3). A cell reference refers to a cell or a range of cells on a worksheet and can be used in a formula so that Microsoft Office Excel can find the values or data that you want that formula to calculate. In one or several formulas, you can use a cell reference to refer to: Data from one or more contiguous cells on the worksheet. 1) Create Microsoft Data Query 2) In the Query Editor, enter a criteria field 3) In the value type any reference in  e.g. [parameter 1] 4) Click the SQL button in the editor and enter through 5) Place the table in excel then in the paramter box that pops up, select the cell with the criteria in Create a query that selects all rows and columns from the Excel file. SELECT * FROM [SALES$]; In this example, the query fetches all rows and columns in the SALES sheet. Note the syntax for the table name in the FROM clause is: [SHEETNAME$] (using enclosing square brackets and a dollar sign after the sheet name).