PC Review


Reply
Thread Tools Rate Thread

Adding a sequence to filtered data

 
 
knowthediff@gmail.com
Guest
Posts: n/a
 
      6th Dec 2007
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
 
Reply With Quote
 
 
 
 
BoniM
Guest
Posts: n/a
 
      6th Dec 2007
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)

"(E-Mail Removed)" 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
>

 
Reply With Quote
 
knowthediff@gmail.com
Guest
Posts: n/a
 
      7th Dec 2007
Works like a charm, Thanks!

-J
On Dec 6, 4:53 pm, BoniM <Bo...@discussions.microsoft.com> 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)
>
>
>
> "knowthed...@gmail.com" 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 With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Adding a sequence number Jacinda Microsoft Access VBA Modules 2 9th Nov 2009 09:15 PM
Return filtered values into report worksheet based on filtered valueon the data worksheet dicko1 Microsoft Excel Worksheet Functions 1 21st Apr 2009 12:27 AM
Adding only the filtered results spartikus411 Microsoft Excel Programming 1 31st May 2006 11:14 AM
Adding only the filtered results spartikus411 Microsoft Excel Worksheet Functions 1 31st May 2006 10:58 AM
adding only filtered values salihyil Microsoft Excel Worksheet Functions 4 26th Feb 2004 09:11 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 04:45 AM.