View Single Post
  #3   Report Post  
Posted to microsoft.public.excel.misc
Elizabeth Elizabeth is offline
external usenet poster
 
Posts: 71
Default How can I get a subtotal to appear in a column within a spread

It worked! Thank you so much for your help!

"Jim May" wrote:

In Cell A2 enter:
=IF(C2=C3,"",SUMPRODUCT(--(C$2:C2=C2)))

and copy down...

HTH


"Elizabeth" wrote:

I am trying to total the number of line items per ID# in a particular column
within a spreadsheet, as pictured below. I do not want to create subtotal
rows, nor do I want to work with levels. I've tried various things with the
IF, SUMIF and COUNTIF functions, to no avail. I am fairly new to all this
and would greatly appreciate any and all suggestions.

Thanks!


Number of Line Items per ID# Count ID#
1 1000
1 1000
3 1 1000
1 1 1001
1 1 1002
1 1 1003
1 1004
1 1004
1 1004
1 1004
1 1004
6 1 1004