Home |
Search |
Today's Posts |
#1
Posted to microsoft.public.excel.programming
|
|||
|
|||
SQL query in Excel - help !
I needed to build a query within an Excel spreadsheet. This query takes
parameters form cells in other spreadsheet. The problem I faced is that I don't know what value needs to be put into the cell in order to select all values for given parameter in the examlpe below this would be "Country" and "Product". I tried many things but none of them works e.g. "*" ..........WHERE (`Sheet1$`.Country=?) AND (`Sheet1$`.Product=?) Thanks a milion for someone who know a simple solution. Cheers |
#2
Posted to microsoft.public.excel.programming
|
|||
|
|||
SQL query in Excel - help !
Check out the Sumproduct() function.
This will do the trick. "facet" wrote in message ... I needed to build a query within an Excel spreadsheet. This query takes parameters form cells in other spreadsheet. The problem I faced is that I don't know what value needs to be put into the cell in order to select all values for given parameter in the examlpe below this would be "Country" and "Product". I tried many things but none of them works e.g. "*" .........WHERE (`Sheet1$`.Country=?) AND (`Sheet1$`.Product=?) Thanks a milion for someone who know a simple solution. Cheers |
#3
Posted to microsoft.public.excel.programming
|
|||
|
|||
SQL query in Excel - help !
How have you built the query? Can we see the code?
-- HTH RP (remove nothere from the email address if mailing direct) "facet" wrote in message ... I needed to build a query within an Excel spreadsheet. This query takes parameters form cells in other spreadsheet. The problem I faced is that I don't know what value needs to be put into the cell in order to select all values for given parameter in the examlpe below this would be "Country" and "Product". I tried many things but none of them works e.g. "*" .........WHERE (`Sheet1$`.Country=?) AND (`Sheet1$`.Product=?) Thanks a milion for someone who know a simple solution. Cheers |
#4
Posted to microsoft.public.excel.programming
|
|||
|
|||
SQL query in Excel - help !
How exactly should I use this function ? Could you get me some example ?
Cheers Użytkownik "Jim May" napisał w wiadomości news:e%H8f.28499$OM4.28222@dukeread06... Check out the Sumproduct() function. This will do the trick. "facet" wrote in message ... I needed to build a query within an Excel spreadsheet. This query takes parameters form cells in other spreadsheet. The problem I faced is that I don't know what value needs to be put into the cell in order to select all values for given parameter in the examlpe below this would be "Country" and "Product". I tried many things but none of them works e.g. "*" .........WHERE (`Sheet1$`.Country=?) AND (`Sheet1$`.Product=?) Thanks a milion for someone who know a simple solution. Cheers |
#5
Posted to microsoft.public.excel.programming
|
|||
|
|||
SQL query in Excel - help !
Go to:
http://www.dicks-blog.com/archives/2...with-wildcard/ for a good review.. "facet" wrote in message ... How exactly should I use this function ? Could you get me some example ? Cheers Użytkownik "Jim May" napisał w wiadomości news:e%H8f.28499$OM4.28222@dukeread06... Check out the Sumproduct() function. This will do the trick. "facet" wrote in message ... I needed to build a query within an Excel spreadsheet. This query takes parameters form cells in other spreadsheet. The problem I faced is that I don't know what value needs to be put into the cell in order to select all values for given parameter in the examlpe below this would be "Country" and "Product". I tried many things but none of them works e.g. "*" .........WHERE (`Sheet1$`.Country=?) AND (`Sheet1$`.Product=?) Thanks a milion for someone who know a simple solution. Cheers |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Forum | |||
Excel 2007 / MS Query - editing existing query to another sheet | Excel Discussion (Misc queries) | |||
Anyone Else Use Database Query to Query Another Sheet in the Same Excel Workbook? | Excel Discussion (Misc queries) | |||
Anyone Else Use Database Query to Query Another Sheet in the Same Excel Workbook? | Excel Discussion (Misc queries) | |||
Edit Query from Excel will not open query in MSQuery | Excel Programming | |||
How to use a Access Query that as a parameter into Excel database query | Excel Discussion (Misc queries) |