Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2
Default summing groups in a column

I have a report that I can get out of my accounting that I need to
manipulate to get the data I want.

the report is a sales report listed by customer, and I want to see the
top 20 purchasers of a product that I run this on.

the report looks like this

Customer name, - blank cells all the way across
invoice #, , date,customerid-name, po#, productcat/name, quantity,
unit, price, unit, dollars
as many lines of this as are in the date range the report was run on.
, , , customer name, , , , total $, ,
then it starts over

I need to sum the product for each customer - so I can get the total
of this product.
so how do I do this.


the product quantity is column h there will be for 1 - 30 numbers and
then 2 blank cells
where the last row of this customers report is and the first row the
the next customer report begins.

can I somehow make a macro that scans down column h for 2 and no more
blank cells then from the first one scan up till the next blank cell -
then insert a =sum() with the cell range that it found

If you need a picture of the layout to better understand what the
spreadsheet looks I uploaded a screen shot here http://www.litwiller.net/images/excel.gif

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 6,953
Default summing groups in a column

You can pretty much build that layout with Data=Subtotals applied against a
sorted table of data.

You might have to add code to put in the extra line.

--
Regaqrds,
Tom Ogilvy


" wrote:

I have a report that I can get out of my accounting that I need to
manipulate to get the data I want.

the report is a sales report listed by customer, and I want to see the
top 20 purchasers of a product that I run this on.

the report looks like this

Customer name, - blank cells all the way across
invoice #, , date,customerid-name, po#, productcat/name, quantity,
unit, price, unit, dollars
as many lines of this as are in the date range the report was run on.
, , , customer name, , , , total $, ,
then it starts over

I need to sum the product for each customer - so I can get the total
of this product.
so how do I do this.


the product quantity is column h there will be for 1 - 30 numbers and
then 2 blank cells
where the last row of this customers report is and the first row the
the next customer report begins.

can I somehow make a macro that scans down column h for 2 and no more
blank cells then from the first one scan up till the next blank cell -
then insert a =sum() with the cell range that it found

If you need a picture of the layout to better understand what the
spreadsheet looks I uploaded a screen shot here http://www.litwiller.net/images/excel.gif


  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2
Default summing groups in a column

Ok, I tried Data=Subtotals - I'll have to play with that a bunch -to
see if I can get anything I can use out of it.



On Jun 15, 1:19 pm, Tom Ogilvy
wrote:
You can pretty much build that layout with Data=Subtotals applied against a
sorted table of data.

You might have to add code to put in the extra line.

--
Regaqrds,
Tom Ogilvy

" wrote:
I have a report that I can get out of my accounting that I need to
manipulate to get the data I want.


the report is a sales report listed by customer, and I want to see the
top 20 purchasers of a product that I run this on.


the report looks like this


Customer name, - blank cells all the way across
invoice #, , date,customerid-name, po#, productcat/name, quantity,
unit, price, unit, dollars
as many lines of this as are in the date range the report was run on.
, , , customer name, , , , total $, ,
then it starts over


I need to sum the product for each customer - so I can get the total
of this product.
so how do I do this.


the product quantity is column h there will be for 1 - 30 numbers and
then 2 blank cells
where the last row of this customers report is and the first row the
the next customer report begins.


can I somehow make a macro that scans down column h for 2 and no more
blank cells then from the first one scan up till the next blank cell -
then insert a =sum() with the cell range that it found


If you need a picture of the layout to better understand what the
spreadsheet looks I uploaded a screen shot herehttp://www.litwiller.net/images/excel.gif




Reply
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
COUNTING GROUPS IN ONE COLUMN SANDY Excel Discussion (Misc queries) 2 November 4th 09 03:54 PM
Breakout groups from one column of data Maarkr Excel Discussion (Misc queries) 2 October 8th 09 01:34 PM
Ranking different groups in one column Marie Bayes Excel Discussion (Misc queries) 13 August 6th 09 06:55 AM
Summing values for split groups Ross Excel Worksheet Functions 3 March 6th 09 02:14 PM
summing according to groups Yossi Excel Discussion (Misc queries) 4 February 5th 06 01:20 PM


All times are GMT +1. The time now is 04:33 PM.

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"