+ Reply to Thread
Results 1 to 2 of 2

Excel 2007 : SQL Connection How To Questions – Excel 2007

  1. #1
    Registered User
    Join Date
    10-04-2008
    Location
    California
    Posts
    3

    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

  2. #2
    Forum Expert Paul's Avatar
    Join Date
    02-05-2007
    Location
    Wisconsin
    MS-Off Ver
    2016/365
    Posts
    6,885
    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

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1