Results 1 to 2 of 2

Thread: Excel Autofill Question
Thanks Thanks: 0 Likes Likes: 0

  1. #1
    New Member
    Join Date
    Nov 2011
    Post Thanks / Like
    0 Post(s)
    0 Thread(s)

    Default Excel Autofill Question

    I'm working on a file with over 30,000 rows. I need to fill in columns with unique ID's and employee names however not all the cells are filled out for each person. If I try to autofill, Excel overrides the data. I need Excel to stop its autofill feature as soon as a new row with content containing data is found.
    Last edited by Zero85; May 8th, 2019 at 09:46 AM.

  2. #2
    MrExcel MVP
    Fluff's Avatar
    Join Date
    Jun 2014
    Post Thanks / Like
    483 Post(s)
    49 Thread(s)

    Default Re: Excel Autofill Question

    Maybe something along the lines of
    Sub Zero85()
       With Range("B2", Range("A" & Rows.Count).End(xlUp).Offset(, 1))
          .SpecialCells(xlBlanks).FormulaR1C1 = "=r[-1]c"
          .Value = .Value
       End With
    End Sub
    This will fill blank cells in col B with the value from the row above
    - Posting Data try one of these tools
    - Posting guidelines, forum rules and terms of use
    - Read the FAQs

    Running Office 365 on Win 10

Some videos you may like

User Tag List

Tags for this Thread

Like this thread? Share it with others

Like this thread? Share it with others

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts