+ Reply to Thread
Results 1 to 20 of 20

row numbering

  1. #1
    Registered User
    Join Date
    09-02-2019
    Location
    Kutina, Croatia
    MS-Off Ver
    Office 365
    Posts
    24

    row numbering

    How to adjust automatic row numbering in a way that when the all row cells are zero (hidden, not showing) ?

    This is my formula =IF(ISBLANK(B8);"";COUNTA(B8:$B$8)) - sheet Searh, cell A8.
    How to add "if you find zero, do not put row number !"

    Thank you.
    Attached Files Attached Files

  2. #2
    Forum Expert Sam Capricci's Avatar
    Join Date
    06-14-2012
    Location
    Palm Harbor, Florida
    MS-Off Ver
    16.84 for Mac MS 365
    Posts
    8,496

    Re: row numbering

    maybe adjust it to =IF(B8="";"";COUNTA(B8:$B$8))
    Make contributors happy, click on the "* Add Reputation" as a way to say thank you.
    Sam Capricci

  3. #3
    Registered User
    Join Date
    09-02-2019
    Location
    Kutina, Croatia
    MS-Off Ver
    Office 365
    Posts
    24

    Re: row numbering

    it still numbers the row, because it sees zero as a value !

  4. #4
    Forum Expert Sam Capricci's Avatar
    Join Date
    06-14-2012
    Location
    Palm Harbor, Florida
    MS-Off Ver
    16.84 for Mac MS 365
    Posts
    8,496

    Re: row numbering

    It works for me because as soon as I hit enable editing all your content in B through K goes away because it is externally linked.
    So I copied and pasted over the output in those cells and now they are all blank and if I use that formula the numbering goes away.
    When I put a formula in B8 that looks for anything in another cell and returns a blank if it is empty the numbering is still gone from col A.
    So I'm unable to repeat your results.

  5. #5
    Registered User
    Join Date
    09-02-2019
    Location
    Kutina, Croatia
    MS-Off Ver
    Office 365
    Posts
    24

    Re: row numbering

    I don't understand.
    The problem is linked cells ?

  6. #6
    Forum Expert Sam Capricci's Avatar
    Join Date
    06-14-2012
    Location
    Palm Harbor, Florida
    MS-Off Ver
    16.84 for Mac MS 365
    Posts
    8,496

    Re: row numbering

    I can't open your workbook from either work or home without the linked cells going blank. If you could take the data in those cells in B8 through K12 and copy >> paste special >> values then I (or others) might be able to see why that formula isn't working. Because even for my iMac version of excel that formula works for me.

  7. #7
    Registered User
    Join Date
    09-02-2019
    Location
    Kutina, Croatia
    MS-Off Ver
    Office 365
    Posts
    24

    Re: row numbering

    the riginal use of this file is to search some data from data base sheet.
    formula used for this is FILTER.
    FILTER formula is new and it's available through Office Insider and it's not a default part of excel (yet, maybe in future edition).

  8. #8
    Forum Expert KOKOSEK's Avatar
    Join Date
    08-03-2018
    Location
    Pole in Yorkshire, UK
    MS-Off Ver
    365/2013
    Posts
    2,742

    Re: row numbering

    Quote Originally Posted by drogar View Post
    it still numbers the row, because it sees zero as a value !
    Sambo kid's formula works fine, I don't see any problem:

    A
    B
    C
    5
    Search result
    6
    7
    Nr.
    Surname and name
    Welder nr.
    8
    9



    A
    B
    C
    5
    Search result
    6
    7
    Nr.
    Surname and name
    Welder nr.
    8
    =IF(B8="","",COUNTA(B8:$B$8))
    =IFERROR(_xlfn._xlws.FILTER('Data input'!B2:K21,('Data input'!B2:B21=Search!B2)+('Data input'!C2:C21=Search!C2)+('Data input'!D2:D21=Search!D2)+('Data input'!E2:E21=Search!E2)+('Data input'!F2:F21=Search!F2)+('Data input'!G2:G21=Search!G2)+('Data input'!H2:H21=Search!H2)),"")
    =IFERROR(_xlfn._xlws.FILTER('Data input'!B2:K21,('Data input'!B2:B21=Search!B2)+('Data input'!C2:C21=Search!C2)+('Data input'!D2:D21=Search!D2)+('Data input'!E2:E21=Search!E2)+('Data input'!F2:F21=Search!F2)+('Data input'!G2:G21=Search!G2)+('Data input'!H2:H21=Search!H2)),"")
    9
    =IF(B9="","",COUNTA(B$8:$B9))
    =IFERROR(_xlfn._xlws.FILTER('Data input'!B2:K21,('Data input'!B2:B21=Search!B2)+('Data input'!C2:C21=Search!C2)+('Data input'!D2:D21=Search!D2)+('Data input'!E2:E21=Search!E2)+('Data input'!F2:F21=Search!F2)+('Data input'!G2:G21=Search!G2)+('Data input'!H2:H21=Search!H2)),"")
    =IFERROR(_xlfn._xlws.FILTER('Data input'!B2:K21,('Data input'!B2:B21=Search!B2)+('Data input'!C2:C21=Search!C2)+('Data input'!D2:D21=Search!D2)+('Data input'!E2:E21=Search!E2)+('Data input'!F2:F21=Search!F2)+('Data input'!G2:G21=Search!G2)+('Data input'!H2:H21=Search!H2)),"")
    Sheet: Search
    Happy with my answer * Add Reputation.
    If You are happy with solution, please use Thread tools and mark thread as SOLVED.

  9. #9
    Registered User
    Join Date
    09-02-2019
    Location
    Kutina, Croatia
    MS-Off Ver
    Office 365
    Posts
    24

  10. #10
    Forum Expert Sam Capricci's Avatar
    Join Date
    06-14-2012
    Location
    Palm Harbor, Florida
    MS-Off Ver
    16.84 for Mac MS 365
    Posts
    8,496

    Re: row numbering

    clicking on both of your attachments I get the message that they are invalid links.

  11. #11
    Registered User
    Join Date
    09-02-2019
    Location
    Kutina, Croatia
    MS-Off Ver
    Office 365
    Posts
    24
    Last edited by drogar; 09-26-2019 at 03:23 PM.

  12. #12
    Forum Expert Sam Capricci's Avatar
    Join Date
    06-14-2012
    Location
    Palm Harbor, Florida
    MS-Off Ver
    16.84 for Mac MS 365
    Posts
    8,496

    Re: row numbering

    Could you explain what it is exactly that you are trying to do? Your two snapshots are not helpful.

  13. #13
    Forum Moderator - RIP Richard Buttrey's Avatar
    Join Date
    01-14-2008
    Location
    Stockton Heath, Cheshire, UK
    MS-Off Ver
    Office 365, Excel for Windows 2010 & Excel for Mac
    Posts
    29,464

    Re: row numbering

    According to Microsoft See here..... the Filter function is a new one still under beta testing. Personally I'd wait until it's been signed off.

    What you seem to want is to extract stuff from the Data Input sheet onto the Search sheet for the various names. In which case surely a simple VLOOKUP() would suffice?

    If not then the new Filter() function seems to be similar to the 'D' Database series of functions, e.g. =DGET(), =DSUM() ..etc.

    If you would manually add some results and indicate where they are then maybe this will become clearer.
    Richard Buttrey

    RIP - d. 06/10/2022

    If any of the responses have helped then please consider rating them by clicking the small star icon below the post.

  14. #14
    Registered User
    Join Date
    09-02-2019
    Location
    Kutina, Croatia
    MS-Off Ver
    Office 365
    Posts
    24

    Re: row numbering

    Sheet Data input
    - B2:K21, different data entered in cells.

    Sheet Search
    - input multiple search criteria B2:K2 (acc to information in sheet Data input cells B2:K21)
    - search results output B8:K23
    - if nothing is found, search result is zero (disabled in options/advance : "Show a zero in cells that have zero value", so they are hidden)
    - this search works fine, but what I need
    - A8:A23 automatic row numbering, if something is in row 8, cells B8:K8, put 1 in cell A8
    - if something is in row 9, cells B9:K9, put 2 in cell A9
    - if something is in row 10, cells B10:K10, put 3 in cell A10, etc....
    - if zero (hidden) in a row 11, do not put the number 4 in the following row, etc...
    Last edited by drogar; 09-30-2019 at 01:32 PM.

  15. #15
    Registered User
    Join Date
    09-02-2019
    Location
    Kutina, Croatia
    MS-Off Ver
    Office 365
    Posts
    24

    Re: row numbering

    Thank you for your suggestion for using VLOOKUP. I've google it, but I think it is not what I need.
    Problem is that I want to output data left and right from the searched criteria.
    VLOOKUP searches according to one criteria in a range, FILTER is multiple criteria.

    My problem is row numbering

  16. #16
    Forum Expert Sam Capricci's Avatar
    Join Date
    06-14-2012
    Location
    Palm Harbor, Florida
    MS-Off Ver
    16.84 for Mac MS 365
    Posts
    8,496

    Re: row numbering

    Have you considered my suggestion in post #6 where you upload another example workbook where the columns with your linked formulas that don't come through, copy those and paste special the values (including those that are blank) so we can test out other formulas to see what will work?

  17. #17
    Registered User
    Join Date
    09-02-2019
    Location
    Kutina, Croatia
    MS-Off Ver
    Office 365
    Posts
    24

    Re: row numbering

    ok. I'll try.
    Tnx.

  18. #18
    Forum Moderator - RIP Richard Buttrey's Avatar
    Join Date
    01-14-2008
    Location
    Stockton Heath, Cheshire, UK
    MS-Off Ver
    Office 365, Excel for Windows 2010 & Excel for Mac
    Posts
    29,464

    Re: row numbering

    Quote Originally Posted by drogar View Post
    Thank you for your suggestion for using VLOOKUP. I've google it, but I think it is not what I need.
    Problem is that I want to output data left and right from the searched criteria.
    VLOOKUP searches according to one criteria in a range, FILTER is multiple criteria.

    My problem is row numbering
    The usual solution to a LOOKUP where VLOOKUP won't work because of columns being left & right of the searcged column field is to use an =INDEX(MATCH()) compound formula.

  19. #19
    Registered User
    Join Date
    09-02-2019
    Location
    Kutina, Croatia
    MS-Off Ver
    Office 365
    Posts
    24

    Re: row numbering

    Hello

    I have tried copying values, still numbering rows.
    Zeroes are still the problem. If I delete them manually, then it works.
    I want to tell row numbering formula if you see zero in cell or find blank cell, do not put a row number.

  20. #20
    Forum Expert Sam Capricci's Avatar
    Join Date
    06-14-2012
    Location
    Palm Harbor, Florida
    MS-Off Ver
    16.84 for Mac MS 365
    Posts
    8,496

    Re: row numbering

    the workbook you uploaded in post #1, when I open it I get the warning at the top (which I assume most members here get) that says protected view, be careful... and it gives me an "Enable Editing" button I can click to allow me to try to write formulas as a test in it. When I click on enable editing all the values I see in cells B8 through K11 disappear so any formula I have tried to write for you works for me. That is why I asked you to copy the values in All those rows and columns (even the blank ones) then paste special >> values so I can better see how to write a formula that might work. I cannot do that because as I noted, as soon as I click enable editing the values disappear.

+ 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. Multi level reference id - auto numbering - similar to legal numbering
    By smsko in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 12-11-2017, 06:05 AM
  2. [SOLVED] How to put x and numbering every other 2 row.
    By Rafa100 in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 10-22-2015, 08:11 AM
  3. Replies: 2
    Last Post: 06-27-2014, 06:40 AM
  4. weird (auto numbering) numbering ....
    By freestone in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 10-20-2010, 07:46 PM
  5. WBS numbering help, auto numbering with indenture
    By hisham2929 in forum Excel General
    Replies: 2
    Last Post: 02-18-2007, 06:59 PM
  6. numbering add-in
    By Tristy in forum Excel General
    Replies: 1
    Last Post: 02-06-2006, 10:25 AM
  7. [SOLVED] Numbering add in
    By Paul in forum Excel General
    Replies: 2
    Last Post: 03-23-2005, 11:06 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