Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 48
Default Auto Number the Rows of Auto Filter Result

Dear all friends,

Thanks for helping me so far.

I was just thinking if it is possible to auto number the autofilter
result.

For Eg,

Sr. No Answer Name
<Blank Yes X
<Blank No X
<Blank Yes X
<Blank Yes X
<Blank No X

If I auto filter the above range on "Answer" then is it possible to
get incremental values (Default: 1) in Column "Sr. No" depending upon
the result rows displayed by autofilter

For Eg,
When I select "Yes"

Sr. No Answer Name
1 Yes X
2 Yes X
3 Yes X

And When I select "No"

Sr. No Answer Name
1 No X
2 No X

Please let me know if it is possible and if yes then any suggestions
for how.

With Regards,

Ashish

  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 15,768
Default Auto Number the Rows of Auto Filter Result

Assume:
column A = Sr. No
column B = Answer
column C = Name

Data starts in B2

Enter this formula in A2 and copy down as needed:

=SUBTOTAL(3,B$2:B2)

Note: do not include column A in the filter. Select columns B and C and
apply the filter to those columns only. The filter doesn't work properly
when column A is included.

Biff

"ashish128" wrote in message
oups.com...
Dear all friends,

Thanks for helping me so far.

I was just thinking if it is possible to auto number the autofilter
result.

For Eg,

Sr. No Answer Name
<Blank Yes X
<Blank No X
<Blank Yes X
<Blank Yes X
<Blank No X

If I auto filter the above range on "Answer" then is it possible to
get incremental values (Default: 1) in Column "Sr. No" depending upon
the result rows displayed by autofilter

For Eg,
When I select "Yes"

Sr. No Answer Name
1 Yes X
2 Yes X
3 Yes X

And When I select "No"

Sr. No Answer Name
1 No X
2 No X

Please let me know if it is possible and if yes then any suggestions
for how.

With Regards,

Ashish



  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 48
Default Auto Number the Rows of Auto Filter Result

On Apr 29, 11:44 am, "T. Valko" wrote:
Assume:
column A = Sr. No
column B = Answer
column C = Name

Data starts in B2

Enter this formula in A2 and copy down as needed:

=SUBTOTAL(3,B$2:B2)

Note: do not include column A in the filter. Select columns B and C and
apply the filter to those columns only. The filter doesn't work properly
when column A is included.

Biff

"ashish128" wrote in message

oups.com...

Dear all friends,


Thanks for helping me so far.


I was just thinking if it is possible to auto number the autofilter
result.


For Eg,


Sr. No Answer Name
<Blank Yes X
<Blank No X
<Blank Yes X
<Blank Yes X
<Blank No X


If I auto filter the above range on "Answer" then is it possible to
get incremental values (Default: 1) in Column "Sr. No" depending upon
the result rows displayed by autofilter


For Eg,
When I select "Yes"


Sr. No Answer Name
1 Yes X
2 Yes X
3 Yes X


And When I select "No"


Sr. No Answer Name
1 No X
2 No X


Please let me know if it is possible and if yes then any suggestions
for how.


With Regards,


Ashish


Thanks , It worked like a charm

  #4   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 15,768
Default Auto Number the Rows of Auto Filter Result


"ashish128" wrote in message
oups.com...
On Apr 29, 11:44 am, "T. Valko" wrote:
Assume:
column A = Sr. No
column B = Answer
column C = Name

Data starts in B2

Enter this formula in A2 and copy down as needed:

=SUBTOTAL(3,B$2:B2)

Note: do not include column A in the filter. Select columns B and C and
apply the filter to those columns only. The filter doesn't work properly
when column A is included.

Biff

"ashish128" wrote in message

oups.com...

Dear all friends,


Thanks for helping me so far.


I was just thinking if it is possible to auto number the autofilter
result.


For Eg,


Sr. No Answer Name
<Blank Yes X
<Blank No X
<Blank Yes X
<Blank Yes X
<Blank No X


If I auto filter the above range on "Answer" then is it possible to
get incremental values (Default: 1) in Column "Sr. No" depending upon
the result rows displayed by autofilter


For Eg,
When I select "Yes"


Sr. No Answer Name
1 Yes X
2 Yes X
3 Yes X


And When I select "No"


Sr. No Answer Name
1 No X
2 No X


Please let me know if it is possible and if yes then any suggestions
for how.


With Regards,


Ashish


Thanks , It worked like a charm


You're welcome. Thanks for the feedback!

Biff


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
Hidden Rows with Auto-Filter Carol Excel Worksheet Functions 2 April 28th 07 03:34 PM
Why don't all my data rows show up in auto-filter? anromath Excel Worksheet Functions 7 April 16th 07 05:46 PM
Applying auto-filter with large number of rows Hari Excel Discussion (Misc queries) 3 January 30th 06 03:06 AM
If formula result is false, how do I auto-delete that rows? jbrenner51 Excel Worksheet Functions 1 November 16th 05 05:24 PM
Auto Filter out text or blank rows D Hafer - TFE Excel Discussion (Misc queries) 8 July 1st 05 01:02 PM


All times are GMT +1. The time now is 10:57 AM.

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"