+ Reply to Thread
Results 1 to 5 of 5

Creating data tables from a database without using pivot tables

  1. #1
    Registered User
    Join Date
    11-24-2010
    Location
    London, England
    MS-Off Ver
    Excel 2007
    Posts
    1

    Creating data tables from a database without using pivot tables

    Hi Team,

    I will try and explain this as best as I can. Essentially I have a table of data (database) (in excel) that I would normally use to produce pivot tables to display particular breakdowns of the data - as we all would. However, my problem is that a specific person who receives these tables cannot deal with them and does not wish to receive them, however they want the same information. So I need to recreate tables that summarise the data manually.

    An example is that I have countries as one variable and budget as another variable. Some additional variables are month and brand (there are others but not relevant right now). So what I want to do is create a table and then in the first data cell look for all rows in the database that are from country=Australia and brand=BrandX and sum the budget for all of these cells. Essentially I want to include a formula in each individual cell to recreate what a pivot table does in a jiffy.

    My real question is how to start. My strategy if you will. Should I be looking at using lookups and ifs and a combination of all these things, or should I be learning to do this in VBA. Basically I'm looking for the path of least resistence while producing something that works even when new data is added to the database. The table is named CPtable so I can reference it directly.

    Any strategy ideas or help would be greatly appreciated! I realise this is a question with a large answer!

    Thanks

    Gareth

  2. #2
    Forum Contributor
    Join Date
    05-27-2008
    Location
    Newcastle Upon Tyne UK
    MS-Off Ver
    XP Excel 2003
    Posts
    105

    Re: Creating data tables from a database without using pivot tables

    Hi Gareth

    I have a similar problem with my principles - I use filters and subtotals to get the relevant data.

    You could use drop down lists for the elements that they want and then run a sumproduct from the drop downs to deliver say budget.

    It depend how much data that you have, it could be unwieldy

    edvwvw

  3. #3
    Forum Expert royUK's Avatar
    Join Date
    11-18-2003
    Location
    Derbyshire,UK
    MS-Off Ver
    Xp; 2007; 2010
    Posts
    26,200

    Re: Creating data tables from a database without using pivot tables

    Seems a big job, surely it would be easier to suggest a beginners' PivotTable tutorial
    Hope that helps.

    RoyUK
    --------
    For Excel Tips & Solutions, free examples and tutorials why not check out my web site

    Free DataBaseForm example

  4. #4
    Forum Expert sweep's Avatar
    Join Date
    04-03-2007
    Location
    Great Sankey, Warrington, UK
    MS-Off Ver
    2003 / 2007 / 2010 / 2016 / 365
    Posts
    3,444

    Re: Creating data tables from a database without using pivot tables

    Hi,

    A short answer is the =SUMPRODUCT() function. If you take a look on this forum (and elsewhere on the internet) you will find that most of what you need to accomplish can be achieved using it.

    In order to help, an example of your data and the result you're trying to achieve would be invaluable.
    Rule 1: Never merge cells
    Rule 2: See rule 1

    "Tomorrow I'm going to be famous. All I need is a tennis racket and a hat".

  5. #5
    Forum Contributor
    Join Date
    11-02-2007
    Location
    Bryne, Norway
    MS-Off Ver
    Microsoft Office Excel 2010
    Posts
    230

    Re: Creating data tables from a database without using pivot tables

    I recommend SUMIF or SUMPRODUCT. They are good alterrnatives

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

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