Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 2
Default Adding a sequence to filtered data

I have the following data:
Bob
Mary
Bean
Scott

I want it to have a sequence when printed when it is filtered or not.
So, if I printed it all I would like to see:

1 Bob
2 Mary
3 Bean
4 Scott

If I filtered on Column B for the items that start with the letter "B"
I would like to see (notice the sequence is accurately reflecting the
number of rows displayed):
1 Bob
2 Bean

Is this possible with simple formulas? I know I can write a macro
that will populate the values each time it is run but I would prefer
to use formulas.

Regards,
-J
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 353
Default Adding a sequence to filtered data

If you want the count in column a and your names are in column b, beginning
with row 2, enter the following formula in A2 and copy down the length of
your data. The numbers will be properly sequenced when filtered.

=SUBTOTAL(103,$B$2:B2)

" wrote:

I have the following data:
Bob
Mary
Bean
Scott

I want it to have a sequence when printed when it is filtered or not.
So, if I printed it all I would like to see:

1 Bob
2 Mary
3 Bean
4 Scott

If I filtered on Column B for the items that start with the letter "B"
I would like to see (notice the sequence is accurately reflecting the
number of rows displayed):
1 Bob
2 Bean

Is this possible with simple formulas? I know I can write a macro
that will populate the values each time it is run but I would prefer
to use formulas.

Regards,
-J

  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 2
Default Adding a sequence to filtered data

Works like a charm, Thanks!

-J
On Dec 6, 4:53 pm, BoniM wrote:
If you want the count in column a and your names are in column b, beginning
with row 2, enter the following formula in A2 and copy down the length of
yourdata. The numbers will be properly sequenced whenfiltered.

=SUBTOTAL(103,$B$2:B2)



" wrote:
I have the followingdata:
Bob
Mary
Bean
Scott


I want it to have asequencewhen printed when it isfilteredor not.
So, if I printed it all I would like to see:


1 Bob
2 Mary
3 Bean
4 Scott


If Ifilteredon Column B for the items that start with the letter "B"
I would like to see (notice thesequenceis accurately reflecting the
number of rows displayed):
1 Bob
2 Bean


Is this possible with simple formulas? I know I can write a macro
that will populate the values each time it is run but I would prefer
to use formulas.


Regards,
-J- Hide quoted text -


- Show quoted text -


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
Consolidation Worksheet Data Sequence. Wondering[_2_] Excel Worksheet Functions 0 September 25th 07 03:28 AM
Expanding sequence of data Cong Nguyen Excel Discussion (Misc queries) 4 August 30th 07 03:18 PM
Adding only the filtered results spartikus411 Excel Worksheet Functions 1 May 31st 06 10:58 AM
How can I sort data in sequence by odd/even numbers TxBlackJack Excel Worksheet Functions 3 February 19th 06 05:11 PM
How do I reverse the order (sequence) of a column of data in Excel Ken Hardman Excel Worksheet Functions 5 July 9th 05 02:08 PM


All times are GMT +1. The time now is 10:32 PM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"