#1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 3
Default Formula

I have a spreadsheet that has City in column A, and customer # in column B,
and a invoice number in column C, It is sorted by column A, then column B.
I need to count the number of invoices in column C for each customer in
column B and for each City in column A.

I tried the data subtotal function to count C at each change in column B,
which Counts number of customer invoices, but I also need to know for each
city (col A) how many invoices each customer had.

Sorry to be so wordy. Any Suggestions
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 4,624
Default Formula

Use a Pivot Table:

http://peltiertech.com/Excel/Pivots/pivotstart.htm


In article ,
stephens176 wrote:

I have a spreadsheet that has City in column A, and customer # in column B,
and a invoice number in column C, It is sorted by column A, then column B.
I need to count the number of invoices in column C for each customer in
column B and for each City in column A.

I tried the data subtotal function to count C at each change in column B,
which Counts number of customer invoices, but I also need to know for each
city (col A) how many invoices each customer had.

Sorry to be so wordy. Any Suggestions

  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 10
Default Formula

Create a pivot table based on the table you already have.
Put City and Cust# in left column. Put Count of Invoice Num in data section.

City CustNo InvNo
Boston 12345 1
Boston 12345 2
Boston 12345 3
Boston 12345 4
Boston 12345 5
Boston 22222 6
Boston 22222 7
Boston 22222 8
Boston 22222 9
Denver 33333 10
Denver 33333 11
Denver 33333 12
Denver 33333 13
Denver 33333 14
Denver 33333 15



Count of InvNo
City CustNo Total
Boston 12345 5
22222 4
Boston Total 9

Denver 33333 6
Denver Total 6

Grand Total 15


"stephens176" wrote:

I have a spreadsheet that has City in column A, and customer # in column B,
and a invoice number in column C, It is sorted by column A, then column B.
I need to count the number of invoices in column C for each customer in
column B and for each City in column A.

I tried the data subtotal function to count C at each change in column B,
which Counts number of customer invoices, but I also need to know for each
city (col A) how many invoices each customer had.

Sorry to be so wordy. Any Suggestions

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



All times are GMT +1. The time now is 06:59 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"