Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 2
Default Sequential numbering with Subtotals

I have a large number of subtotals in a spreadsheet. I need to add a column
and have sequential numbers added.

How can I sequentially number on the subtotaled rows, not the ones inbetween
which are hidden?
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 15,768
Default Sequential numbering with Subtotals

Maybe something like this:

Assume columns A and B contain the data that's subtotaled.

B6 is the first subtotal and A6 contains something like: X Total.

Enter this formula in C6 (assumes column C is empty):

=IF(ISNUMBER(SEARCH("total",A6)),MAX(C$5:C5)+1,"")

Copy down as needed.

This will also number the "Grand Total" at the bottom of the data. If you
don't want that included just delete the formula from the corresponding cell
in column C.

Biff

"charris0517" wrote in message
...
I have a large number of subtotals in a spreadsheet. I need to add a column
and have sequential numbers added.

How can I sequentially number on the subtotaled rows, not the ones
inbetween
which are hidden?



  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 35,218
Default Sequential numbering with Subtotals

I use Sum in my subtotal and my key column was column A.

I used this formula in another column (row 2) and dragged down:
=IF(COUNTIF(A2,"*total*")=0,"",COUNTIF(A$2:A2,"*to tal*"))

If you used a different function, adjust the "*total*" to match.


Adjust the column to match your subtotal column.
Adjust the row to match that first

charris0517 wrote:

I have a large number of subtotals in a spreadsheet. I need to add a column
and have sequential numbers added.

How can I sequentially number on the subtotaled rows, not the ones inbetween
which are hidden?


--

Dave Peterson
  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 2
Default Sequential numbering with Subtotals



"Dave Peterson" wrote:

I use Sum in my subtotal and my key column was column A.

I used this formula in another column (row 2) and dragged down:
=IF(COUNTIF(A2,"*total*")=0,"",COUNTIF(A$2:A2,"*to tal*"))

If you used a different function, adjust the "*total*" to match.


Adjust the column to match your subtotal column.
Adjust the row to match that first

charris0517 wrote:

I have a large number of subtotals in a spreadsheet. I need to add a column
and have sequential numbers added.

How can I sequentially number on the subtotaled rows, not the ones inbetween
which are hidden?


--

Dave Peterson


Thanks, I'll test it tomorrow at work.
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
Data tracking and auto sequential numbering rajeshparikh64 Excel Worksheet Functions 0 March 28th 06 03:08 AM
In Excel, how do I setup sequential numbering on an invoice? Kostumeroom Excel Worksheet Functions 2 August 20th 05 12:51 AM
Sequential numbering REELAXER Excel Worksheet Functions 1 June 30th 05 12:25 AM
automatic sequential numbering in excel or word greg2 Excel Discussion (Misc queries) 1 January 15th 05 05:35 PM
How do I set up sequential numbering on labels inventorybrokers Excel Worksheet Functions 3 November 19th 04 04:46 PM


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