+ Reply to Thread
Results 1 to 3 of 3

automatically numbering rows

  1. #1
    cox ng \(1\)
    Guest

    automatically numbering rows

    I wish to have rows automatically numbered in column "A" according to the
    content in column "B". If column "B" has text or numbers in a cell I do not
    want to number that row in column "A". If column "B" is blank in a cell I
    want to number that row in column "A". I found the following formula that
    works the opposite of what I want "=IF(B1<>"",COUNTA($B$1:B1)&".","")" .
    What would the formula be if I wanted to numerically count the blank cells
    in "B" and skip the context cells in "B"? Thanks for you consideration.
    Regards



  2. #2
    Biff
    Guest

    Re: automatically numbering rows

    See reply in .Functions

    Biff

    "cox ng (1)" <[email protected]> wrote in message
    news:GvSyf.114916$oG.103684@dukeread02...
    >I wish to have rows automatically numbered in column "A" according to the
    >content in column "B". If column "B" has text or numbers in a cell I do
    >not want to number that row in column "A". If column "B" is blank in a
    >cell I want to number that row in column "A". I found the following
    >formula that works the opposite of what I want
    >"=IF(B1<>"",COUNTA($B$1:B1)&".","")" . What would the formula be if I
    >wanted to numerically count the blank cells in "B" and skip the context
    >cells in "B"? Thanks for you consideration. Regards
    >
    >




  3. #3
    Mark Lincoln
    Guest

    Re: automatically numbering rows

    Here's my method:

    In cell A1:

    =IF(isblank(B1),1,"")

    In cell A2:

    =IF(ISBLANK(B2),MAX($A$1:A1)+1,"")

    Drag the formula in A2 down as far as you need.


+ Reply to Thread

Thread Information

Users Browsing this Thread

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

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