ExcelTip.com
Account Icon Account Icon Account Icon
ExcelTip.com

Go Back   Excel Help Forum > Microsoft Office Application Help - Excel Help forum > Excel 2007 Help

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old 11-14-2008, 03:39 PM
ckoster ckoster is offline
Registered User
 
Join Date: 04 Oct 2008
Location: California
Posts: 3
ckoster is an unknown quantity at this point
Post SQL Connection How To Questions – Excel 2007

Greetings Excel Experts (Excelperts)!

I have what is most likely a fundamental how-to Excel question that I’ve been unable to answer myself – even after a few hours of trial and error poking around.

I have a SQL data source that contains sales data. I would like to build a matrix within excel where each cell in the matrix pulls unique data from the SQL Server and presents the resultant value. In all cases I will be counting the number of records that meet a specific condition using SQL.

I was able to accomplish this for a single cell in my matrix by configuring clicking on a cell and creating a connection to the data source (Data -> Connections…etc). I then specify the query and click ok. I get the result I want in the cell I want – perfect.

So, using this strategy I would have to create a connection for each of the 200+ cells in my matrix. My question is this….is there a simplified way to share the connection to the data source and then specify a unique query for each cell in order to get the results I want?

Can anyone point me in the right direction here?

Thank you in advance.

-Carl
Reply With Quote
  #2  
Old 11-14-2008, 06:45 PM
pjoaquin's Avatar
pjoaquin pjoaquin is offline
Forum Moderator
 
Join Date: 05 Feb 2007
Location: Wisconsin, U.S.A.
Posts: 2,331
pjoaquin is a jewel in the rough
Hi Carl,

I don't work with SQL in Excel much, but to me that seems like an awful lot of work that could much more easily be accomplished by either:

1. Using a professional reporting tool like Crystal; or
2. Using one query to grab all the data you need into Excel then summarizing it the way you need on another sheet or in another workbook; or
3. Using Access
__________________
- Paul

Click here to read the Forum Rules

Reply With Quote
Reply

Bookmarks

Tags
data connection , query , sql

New topics in Excel 2007 Help


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off
Forum Jump


All times are GMT -4. The time now is 12:16 AM.


Powered by vBulletin® Version 3.7.4
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0