+ Reply to Thread
Results 1 to 4 of 4

Displaying results from Database

  1. #1
    Registered User
    Join Date
    01-19-2011
    Location
    Vaal, South Africa
    MS-Off Ver
    Excel 2007
    Posts
    1

    Displaying results from Database

    Hi,


    I'm new here and am happy to be part of this forum.

    I'm extracting data from the SQL Server database and displaying result on Excel for reporting purposes. There's 2 things that I would like assistance for and they are

    1. There are couple of rows displayed from a specific department and I would like to see the department name showing only once in a column and not repeating itself. The only time when the department name should display again is when the sql reads a different department.

    2. I would like to automatically sum values of each department and produce the totals at the bottom. The main trick for me is that number of departments varies with every run as some departments might not be processing on certain dates so I need to calculate values for each department that has processed for a specific day and display the totals.

    Thank you in advance.


    regards,
    Pule

  2. #2
    Forum Moderator alansidman's Avatar
    Join Date
    02-02-2010
    Location
    Steamboat Springs, CO
    MS-Off Ver
    MS Office 365 Version 2404 Win 11 Home 64 Bit
    Posts
    23,851

    Re: Displaying results from Database

    Please post your SQL statement. Please indicate the fields that you would like to aggregate.
    Alan עַם יִשְׂרָאֵל חַי


    Change an Ugly Report with Power Query
    Database Normalization
    Complete Guide to Power Query
    Man's Mind Stretched to New Dimensions Never Returns to Its Original Form

  3. #3
    Registered User
    Join Date
    12-18-2010
    Location
    UK
    MS-Off Ver
    2003, 2007, 2010
    Posts
    79

    Re: Displaying results from Database

    Hello Pule

    One way is to progress is to make a very simple Access report for departments, with a total for each. Then use the report as the basis for export to Excel.

    Keep your report very simple. In my experience, exporting complex reports can produce some weird results.
    David
    Access and Excel Developer | UK

  4. #4
    Registered User
    Join Date
    01-19-2011
    Location
    Houston, TX
    MS-Off Ver
    Excel 2007
    Posts
    22

    Re: Displaying results from Database

    Yes, this is a job for access reporting.
    best thing is to create a query (sounds like you have that already) and then base the report off of that.
    You can set it to only display certain items when they break, and a summary line by using grouping. The report wizard should walk you through it.

+ 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