+ Reply to Thread
Results 1 to 6 of 6

How to fill in the rows with repetitive values

  1. #1
    Registered User
    Join Date
    10-02-2012
    Location
    Malaysia
    MS-Off Ver
    Excel 2010
    Posts
    7

    Cool How to fill in the rows with repetitive values

    Hi,

    I'm new to macro and I would like to seek for any helps regarding my problem.

    Below is the example on how my end product will look like:

    A | B | C |
    -----------------------------
    x o 50
    x o 40
    x o 50
    x o 40
    x o 50
    x o 40

    So, as in the title says, how to fill in the rows with 2 repetitive values like shown in column C above?

    Hope you guys can help me fixing this problems.

    Thank you in advance.
    Last edited by nanas; 10-09-2012 at 06:26 AM.

  2. #2
    Valued Forum Contributor
    Join Date
    03-17-2012
    Location
    Warsaw, Poland
    MS-Off Ver
    2007/2010
    Posts
    555

    Re: How to fill in the rows with repetitive values

    Please Login or Register  to view this content.

  3. #3
    Forum Guru Andy Pope's Avatar
    Join Date
    05-10-2004
    Location
    Essex, UK
    MS-Off Ver
    O365
    Posts
    20,419

    Re: How to fill in the rows with repetitive values

    Non looping approach.

    Please Login or Register  to view this content.
    Cheers
    Andy
    www.andypope.info

  4. #4
    Registered User
    Join Date
    10-02-2012
    Location
    Malaysia
    MS-Off Ver
    Excel 2010
    Posts
    7

    Re: How to fill in the rows with repetitive values

    Hi,

    First, thank you so much for the replies.

    I tried the code and it works! But it seems like the value has replaced the header of column in the 1st row. Like this:

    A | B | 50 |
    --------------
    x o 40
    x o 50
    x o 40
    x o 50
    x o 40
    x o 50

    How to fix it so the header will remain as it is?

    And thank you so much.

  5. #5
    Forum Guru Andy Pope's Avatar
    Join Date
    05-10-2004
    Location
    Essex, UK
    MS-Off Ver
    O365
    Posts
    20,419

    Re: How to fill in the rows with repetitive values

    Please Login or Register  to view this content.
    Your original data set had headers of A|B|C, which is why we assumed that where just the default column headers of the worksheet.

  6. #6
    Registered User
    Join Date
    10-02-2012
    Location
    Malaysia
    MS-Off Ver
    Excel 2010
    Posts
    7

    Re: How to fill in the rows with repetitive values

    Thank you so much!

+ 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