Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 30
Default serial numbers with hidden rows

I want know whether it is possible to create continuous serial numbers in
rows of column A without taking in to account of the rows that are hidden.
Again when I un hide the rows the numbers should automatically change in
sequence. I got a macro for doing this from community. But will it possible
to do that through a formula?
Will some one throw light on this?

  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 2,979
Default serial numbers with hidden rows

You can use the SUBTOTAL function to count the visible rows. For
example, assuming there will always be an entry in column B, enter the
following formula in row 2,
=SUBTOTAL(103,$B$2:B2)
Copy the formula down to the last row of data

If you're using Excel 2002 or earlier, you can use this formula instead:
=SUBTOTAL(3,$B$2:B2)
and the formula will only ignore rows that are hidden by a filter, not
those that are manually hidden.

But, don't use this technique in conjunction with the DataSubtotals
command. If you remove the Subtotals (DataSubtotals, Remove All), every
row in the table that contains a Subtotal formula is deleted, including
Subtotal formulas that were manually inserted.

And there's no Undo. You can close the file without saving the changes,
which is okay, unless you've made lots of other changes, and hadn't
saved them.

srinivasan wrote:
I want know whether it is possible to create continuous serial numbers in
rows of column A without taking in to account of the rows that are hidden.
Again when I un hide the rows the numbers should automatically change in
sequence. I got a macro for doing this from community. But will it possible
to do that through a formula?
Will some one throw light on this?



--
Debra Dalgleish
Contextures
http://www.contextures.com/tiptech.html

  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 30
Default serial numbers with hidden rows

Dear Mr Debra Dalgleish,

The formula serves a limited purpose only as it won't work if there is no
data in column b against the specified row. Is there any other method that
will work even if there is no data in column B and the row is hidden



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
How do I set rows to Alpha and columns to numbers? len Setting up and Configuration of Excel 1 October 6th 06 05:26 PM
resetting last cell jagdish.eashwar Excel Discussion (Misc queries) 11 March 31st 06 02:06 AM
Convert serial numbers to dates lrl0870 Excel Worksheet Functions 1 March 6th 06 09:02 PM
How do I NOT copy hidden rows to a new worksheet? Steve Excel Discussion (Misc queries) 3 March 3rd 06 05:47 PM
Lost rows and blue numbers! Mark New Users to Excel 3 October 12th 05 07:05 PM


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