+ Reply to Thread
Results 1 to 6 of 6

auto fill with one column and multiple unique rows.

  1. #1
    Registered User
    Join Date
    04-11-2013
    Location
    Logan, Utah
    MS-Off Ver
    Excel 2007
    Posts
    15

    auto fill with one column and multiple unique rows.

    Attached is a small workbook with a sample of what I'm trying to do. It has both how I get my data and how I need my data to look.

    Problem: One column where every 5th row has a different Number. (Ex A6 is a 2 Then A11 has a 4)

    I am trying to get cells A6 - A10 to auto fill with the number it has in A6. Then Cells A11 - A15 to auto fill with the number it has in A11.
    Attached Files Attached Files
    Last edited by plague5050; 04-30-2013 at 02:18 PM.

  2. #2
    Forum Guru Pete_UK's Avatar
    Join Date
    12-31-2011
    Location
    Warrington, England
    MS-Off Ver
    Office 2019 (still learning)
    Posts
    24,705

    Re: auto fill with one column and multiple unique rows.

    You can use a bit of Excel magic to do this.

    First, highlight the cells that you want this to apply to (A6:A35 in your example);
    Then press the F5 key (GoTo), then click on Special;
    Click against Blanks in the pop-up then click OK;
    Begin to enter a formula by typing = and then click on the cell above (i.e. A6);
    Then do CTRL-Enter and the data will be filled.

    You might want to use Copy | Paste Special | Values | OK then <Esc> to fix those values.

    Hope this helps.

    Pete

  3. #3
    Registered User
    Join Date
    04-11-2013
    Location
    Logan, Utah
    MS-Off Ver
    Excel 2007
    Posts
    15

    Re: auto fill with one column and multiple unique rows.

    That works perfectly. Is there a way to set up a macro or function to do it automatically? I plan on distributing the workbook so that other people can copy and paste data. i'm trying to make it as user friendly as possible.

  4. #4
    Forum Guru Pete_UK's Avatar
    Join Date
    12-31-2011
    Location
    Warrington, England
    MS-Off Ver
    Office 2019 (still learning)
    Posts
    24,705

    Re: auto fill with one column and multiple unique rows.

    Just record a macro while you go through those actions - that was one of the first macros that I was introduced to many years ago.

    Hope this helps.

    Pete

  5. #5
    Registered User
    Join Date
    04-11-2013
    Location
    Logan, Utah
    MS-Off Ver
    Excel 2007
    Posts
    15

    Re: auto fill with one column and multiple unique rows.

    you have been great help

  6. #6
    Forum Expert
    Join Date
    03-28-2012
    Location
    TBA
    MS-Off Ver
    Office 365
    Posts
    12,454

    Re: auto fill with one column and multiple unique rows.

    If you want a code

    Please Login or Register  to view this content.

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Tags for this Thread

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