+ Reply to Thread
Results 1 to 16 of 16

serial (ordinal) numbers after filtering

Hybrid View

  1. #1
    Registered User
    Join Date
    09-03-2008
    Location
    Croatia
    Posts
    8

    serial (ordinal) numbers after filtering

    HI.

    I need your help!

    if I have a column A (serial number), B (name), C (last name) and so on, it doesnt matter, and I auto filter, lets say column B, so that show only people with the name "John". Is it possible to automatic add serial numbers (1,2,3,4....) in column A to only that filtered result....Because if I type 1, 2, 3 and then drag it down it does not work as normally. and as I have a lot of results, I will spend a lot of time to manually type numbers!

    Please, help me...hope that u understand me...

    Cheers..

  2. #2
    Forum Expert NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003:2010
    Posts
    34,898
    Try in A2:

    =COUNTIF($B$2:B2,B2)

    copied down.
    Where there is a will there are many ways.

    If you are happy with the results, please add to the contributor's reputation by clicking the reputation icon (star icon) below left corner

    Please also mark the thread as Solved once it is solved. Check the FAQ's to see how.

  3. #3
    Registered User
    Join Date
    09-03-2008
    Location
    Croatia
    Posts
    8
    not working...it gives me all Ones (1)...

  4. #4
    Forum Expert NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003:2010
    Posts
    34,898
    See attached...

    Choose "John" from the list in column B....then choose "Steve", etc....
    Attached Files Attached Files

  5. #5
    Registered User
    Join Date
    09-03-2008
    Location
    Croatia
    Posts
    8
    hm, yeah this works, but the problem starts when I have more columns to filter, and I do actually in my real problem. And I must print various filter results....of course all results must have serial number in first column....

  6. #6
    Forum Expert NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003:2010
    Posts
    34,898
    How about:

    =SUBTOTAL(3,$B$1:B2)-1

    in A2 copied down...

    See attached...
    Attached Files Attached Files

  7. #7
    Registered User
    Join Date
    12-21-2013
    Location
    chennai
    MS-Off Ver
    Excel 2013
    Posts
    19

    Re: serial (ordinal) numbers after filtering

    Quote Originally Posted by NBVC View Post
    How about:

    =SUBTOTAL(3,$B$1:B2)-1

    in A2 copied down...

    See attached...
    Thanks bro it helped me lot, searching for this for a long time

  8. #8
    Registered User
    Join Date
    06-12-2016
    Location
    Kolkata
    MS-Off Ver
    2013
    Posts
    1

    Re: serial (ordinal) numbers after filtering

    Thanks for the trick...

  9. #9
    Registered User
    Join Date
    09-03-2008
    Location
    Croatia
    Posts
    8
    Ouu yeah...thats it man...THANK you very much....saved me from pain

  10. #10
    Registered User
    Join Date
    09-03-2008
    Location
    Croatia
    Posts
    8
    ah one more thing....if I have at the end row TOTAL and one column with some numbers...how to force that total row to sum only filtered results?

  11. #11
    Registered User
    Join Date
    09-03-2008
    Location
    Croatia
    Posts
    8
    I found it.

    =SUBTOTAL(109;range)

    is it?

  12. #12
    Registered User
    Join Date
    11-07-2012
    Location
    India
    MS-Off Ver
    Excel 2007
    Posts
    1

    Re: serial (ordinal) numbers after filtering

    Hi,
    I need a help
    I have a excel sheet of debtors, in which i have Debtor name in column A, address in Column B, Balance in Column C, now i need to Filter List with balance more than 0.Is it possible to automatic add serial numbers (1,2,3,4....) in column A to only that filtered result....Because I have used the formula =COUNTIF($B$2:B2,B2) but it doesn't help as every debtors have diff balance so it gives a new serial number on each diff balance. I need serial number (1,2,3,4....) for whole list.

    Please, help me...hope that u understand me...
    Thanks

  13. #13
    Registered User
    Join Date
    11-07-2012
    Location
    Irvine, California
    MS-Off Ver
    Excel 2010
    Posts
    10

    Re: serial (ordinal) numbers after filtering

    Jaikaram,

    It would help if you posted an example. You can easily do this with VBA, but an example is really necessary.

    KDB

  14. #14
    Forum Expert dredwolf's Avatar
    Join Date
    10-27-2012
    Location
    Clearwater,Canada
    MS-Off Ver
    Excel 2007
    Posts
    2,649

    Re: serial (ordinal) numbers after filtering

    @ jiakaram
    also, you should also start your own thread, with a descriptive title of your problem, this will make it easier for others with a problem simiiar yours to find with a search...
    A picture may be worth a thousand words, BUT, a sample Workbook is worth a thousand screenshots!
    -Add a File - click advanced (next to quick post), scroll to manage attachments, click, select add files, click select files, select file, click upload, when file shows up at bottom left, click done (bottom right), click submit
    -To mark thread Solved- go top of thread,click Thread Tools,click Mark as Solved
    If you received helpful response, please remember to hit the * of that post

  15. #15
    Registered User
    Join Date
    02-18-2015
    Location
    Karachi
    MS-Off Ver
    MS Office 2007
    Posts
    1

    Re: serial (ordinal) numbers after filtering

    Suppose There are 200 different employee names in column 2 and some are hides in between and we want to give serial number the filter one in (1,2,3,4,......). Please reply

  16. #16
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2406
    Posts
    44,662

    Re: serial (ordinal) numbers after filtering

    THis is a very old thread. Please start your own thread and, preferably, attach a worksheet showing clearly what the problem is.
    Glenn




    None of us get paid for helping you... we do this for fun. So DON'T FORGET to say "Thank You" to all who have freely given some of their time to help YOU

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Using Excel to help select Lotto numbers.....
    By farmerTom in forum Excel - New Users/Basics
    Replies: 6
    Last Post: 10-15-2018, 05:09 AM
  2. dates converting to serial numbers
    By henro8 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 06-24-2008, 03:38 PM
  3. Form Serial Numbers
    By AlphadOmega in forum Excel General
    Replies: 3
    Last Post: 02-28-2007, 06:26 PM
  4. Ordinal Numbers in Dates
    By OfficeBitty in forum Excel General
    Replies: 13
    Last Post: 11-21-2006, 05:34 AM
  5. Filtering based on first 2 numbers in sequence
    By alistairj in forum Excel General
    Replies: 1
    Last Post: 11-08-2006, 06:49 AM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1