Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6013003
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T02:29:07+00:00 2026-05-23T02:29:07+00:00

I maintain a batch process that inserts summary rows into a database table that

  • 0

I maintain a batch process that inserts summary rows into a database table that is an exact copy of the source table that contains the detail. This is achieved by many Insert Into/Select from statements with various fields in the group by clause and overrides to those that aren’t. Determining these summarization requirements is always challenging, I’m speaking SQL and the users speak Accounting.

I would like to build an excel spreadsheet that allows the users to show me exactly how they want the data summarized. My idea is a single Excel spreadsheet with the source data, options for every field that allow them to state whether they want the data grouped by that field, or overridden with an override value. Then the users can hit a button, and the summarized data appears on a new sheet.

Can I write SQL directly within an excel macro on a sheet just like it’s a relational database table? Most of the info I’ve found while searching deals with importing or linking a spreadsheet to a database. I’m not looking for this. Security wise the users don’t have access and I’d like to keep it independent of any specific database.

I would like to stick with SQL for the grouping logic as I know it already and I don’t have the time to learn grouping logic in visual basic. Can anyone point me in the right direction? Thanks.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-23T02:29:09+00:00Added an answer on May 23, 2026 at 2:29 am

    You can make use ADO to connect from Excel to another data source using SQL. And you can use ADO to connect to Excel as a data source.

    And of course you can use it to connect Excel to Excel.

    Further reading on ADO:

    http://support.microsoft.com/kb/257819

    http://support.microsoft.com/kb/278973

    Or you could see how far Pivot Tables will take you.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I maintain a Django project with a database that has several model constraints that
I maintain an open source program that builds with autoconf. Right now I'm having
We maintain a website built on LAMP stack that allows members to log into
I maintain GPSD, a widely-deployed open-source service daemon that monitors GPSes and other geodetic
I maintain an applet that helps users to upload photos to our service. The
I maintain 2 identities one for open source development - which doesn't really contain
We maintain a DLL that does a lot of system-related things; traversing the file
I maintain a program that sends messages between users. The clients connect to a
I maintain a local intranet site that among other things, displays movie poster images
I maintain an application that uses a (to me) surprising PHP quirk/bug/feature. Consider this

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.