+ Reply to Thread
Results 1 to 4 of 4

macro to fill out a column with continuos numbers

  1. #1
    Registered User
    Join Date
    06-16-2009
    Location
    germany
    MS-Off Ver
    Excel 2003
    Posts
    2

    macro to fill out a column with continuos numbers

    hey friends,

    i want to fill out my first column with continuos numbers. in the second column are data. now i want to count the amount of data in the second column and write the number of the corresponding row in the first column. is there anywhere an easy command or do i have to use a macro. if i have to use a macro how do i have to build it. i don't have many experience with vba

    greetings

  2. #2
    Forum Expert pike's Avatar
    Join Date
    12-11-2005
    Location
    Alstonville, Australia
    MS-Off Ver
    2016
    Posts
    5,342

    Re: macro to fill out a column with continuos numbers

    HI lab
    in a1 put

    =IF(ISBLANK(B1),"",ROW(B1))

    and fill down
    If the solution helped please donate to RSPCA

    Site worth visiting: Rabbitohs

  3. #3
    Registered User
    Join Date
    06-16-2009
    Location
    germany
    MS-Off Ver
    Excel 2003
    Posts
    2

    Re: macro to fill out a column with continuos numbers

    thank you,

    that was very helpful. i had to translate in spanish so if anybody needs this command in spanish, here it is:

    =SI(CONTAR.BLANCO(B1);"";FILA(B1))

    greetings

  4. #4
    Forum Expert pike's Avatar
    Join Date
    12-11-2005
    Location
    Alstonville, Australia
    MS-Off Ver
    2016
    Posts
    5,342

    Re: macro to fill out a column with continuos numbers

    Must be good to be able to read write and speak in more that one language
    I just know butchered english

+ 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