LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #5   Report Post  
Posted to microsoft.public.excel.programming
Jay Jay is offline
external usenet poster
 
Posts: 671
Default Database summary

Hi Todd -

If you don't need a customized format for the summed list, a Pivot Table
might do the job.

Make sure you first add field names to the top of your data columns, e.g.,
Customer, ProductName, Quantity. Then:

1. Choose Data, Pivot Table... and press [Next] (to accept the default data
source in Step 1 of the Pivot Table Wizard).

2. Highlight your data list (including the field names) and press [Next].

3. Press [Finish] in Step 3 of the Wizard. This will give you a blank
Pivot Table and a PivotTable field list.

4. Drag the 'Customer' fieldname from the field list to the "Drop Row
Fields Here" section of the blank Pivot Table and drag the 'Quantity'
fieldname to the "Drop Data Items Here" section.

---
Jay


"Todd Vohs" wrote:

I have a workbook with 2 spreadsheets. In the first one, I have a column of
products that has a corresponding customer and the customer may appear more
than once. I want to query that sheet and in the second sheet, have the
customer list with the sum of quantity of products that customer purchased.
All products are equivalent in size just different genetics. I just want to
know how many each customer purchased.

Sheet 1
customer1 product1 qty
customer2 product1 qty
customer2 product2 qty
customer2 product3 qty
customer3 product1 qty
customer3 product2 qty
customer4 product1 qty
customer4 product2 qty

Sheet 2
customer1 sum
customer2 sum
customer3 sum
cusomter4 sum






 
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

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


Similar Threads
Thread Thread Starter Forum Replies Last Post
Update Excel Database via Access Main Database with a script Finnbar New Users to Excel 2 November 3rd 08 07:24 PM
database query not showing foxpro database How I import data mangat New Users to Excel 1 June 24th 07 03:31 PM
Using Excel as a database and need macro or vba to take data entered on one tab and update the database by adding to the next avail row rjr Excel Programming 5 June 11th 06 09:43 PM
multi group with summary above with 1 overall summary line below Freddy Excel Discussion (Misc queries) 2 November 7th 05 03:30 PM
multi group with summary above with 1 overall summary line below Freddy Excel Discussion (Misc queries) 1 November 1st 05 08:50 PM


All times are GMT +1. The time now is 06:52 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"