×

AutoFill in Excel

AutoFill in Excel

Excel is known for its credibility to operate repeated and similar tasks automatically. For this purpose, it facilitates an inbuilt feature known as Autofill that recognizes the series of numbers or characters based on some patterns and automatically fill the cell with data.

Autofill function works when we type few data based on some pattern or universal data and drag down the cursor (a solid cross representation) and the data series gets automatically filled in Excel sheet.  This feature allows you to create the Excel spreadsheet quickly and efficiently. Thus, provides a relief by speeding up your work.

In this tutorial we will learn the various different ways to automate the auto fill function:

  1. Basic Auto Fill Method
  2. AutoFill for End to End data
  3. Autofill with two or more starting values
  4. Autofill Function for Dates & Time
  5. Fill Specific Cells
  6. AutoFill Using VBA

Basic AutoFill Method

  1. The first step is to type few entries in your excel data and select those cells.
AutoFill in Excel
  • At the bottom right corner of the selected cell you will notice a mini-toolbar (a square shaped blue colored downward pointing arrow) as Excel automatically adds an AutoFill button to the currently selected cell.
AutoFill in Excel
  • Drag the AutoFill handle downwards across the blank cells in the same row or column wherein your data is filled across the data series.
AutoFill in Excel
  • You will notice that excel has systematically filed the selected cells after recognizing the gap of 2 in between the numbers.
AutoFill in Excel
  • Similarly, you can try it function with characters. In the below image, we have used the abbreviation of months names as Jan, Feb, Mar,  etc,.
AutoFill in Excel
  • Select the first three cells and drag the autofill handle down. All the further months names will be filled automatically.
AutoFill in Excel
  • In this case if you select more than 12 cells, the month values will be repeated after the 12th cell. The universal things which are pre-defined and can not be extended further repeats their value, unlike week names, months, etc,.
AutoFill in Excel
  • While selecting, at the end of the bottom right corner of the selected cells, you will notice an AutoFill option box. Double on the box.
AutoFill in Excel

AutoFill for End to End data

One of the reasons that excel is widely used in corporate sectors is its efficiency in dealing with massive data. The basic AutoFill method is easy enough to automate your data by simply dragging your mouse. But it only seems easy when you are dealing with 100 or 200 rows or columns. Imagine in big corporates wherein you manage bulk of data stored across 10,000 to 20,000 rows and columns in the spreadsheet. Dragging the mouse cursor up to that extend would be cumbersome, time-taking and wasting your manual efforts.

To prevent the above challenges Excel has offered another trick to make the cursor dragging more efficient. Let’s see the steps to execute this method:

  1. In this method, instead of dragging the mouse cursor down column, press the shift key on the keyboard. Suddenly you will notice that now when you address your cursor to bottom right corner of the cell, instead of a plus icon, it’s an icon with two horizontal, parallel lines.
AutoFill in Excel
  • Double click on the parallel lines icon and Excel will automate the workflow by filling all the column wherein the adjacent column has some data. 
AutoFill in Excel

This method saves your countless efforts and hours wasted trying to drag the cursor across thousands of rows.

AutoFill Using VBA

Sub AutoFill_Method()
 Dim FstCol As String
 Dim FstRow As String
 Dim LstRow As String
 FstCol = InputBox("Please enter the column letter.")
 FstRow = InputBox("Please enter the row number.")
 LstRow = Range(FstCol & "65536").End(xlUp).Row 
 For i = FstRow To LstRow
   If Range(FstCol & i).Value = "" Then 
     Range(FstCol & (i - 1)).Copy Range(FstCol & i) 
   End If
 Next i
 End Sub 

Related Topics

Excel ROUNDUP() Function

Excel ROUNDUP() Function The ROUNDUP() function in excel returns a number rounded up to the nearest possible value and away from zero. Syntax ROUNDUP(Number, num_digits) Parameter Number(required)- This parameter represents the number which you want to...

1 minute read.

Locate Maximum Values in Excel

Excel is a combination of numeric values and numbers. To retrieve the result, Excel provides various formulas and functions. Sometimes the user needs to find the largest value from the...

5 minutes read.

Dependent Drop-down List in Excel

Excel forms are used to fetch data from the end user. When we have to give choices, we often use the drop-down feature of Excel. In this tutorial, we won’t...

7 minutes read.

Row Difference in Excel

Microsoft Excel is used for multiple purposes in various organizations. It is a combination of numeric values, alphabets etc. To calculate data, the user organizes the data according to their...

5 minutes read.

How to use Index and Match in Excel?

The Index and Match function is a familiar and frequently used function in Excel. It is one of the most powerful functions and is easy to use. By default, Excel...

6 minutes read.

Excel Ribbon Toolbar

Excel Ribbon/Toolbar How does a toolbar look like? The top section of an excel file is called a Ribbon or a toolbar. It has various commands which can be useful for us in our daily work....

6 minutes read.

How to apply Advanced Filter in Excel

It was known that the advanced filter in Microsoft Excel is termed to be the next level filter option that is available in the particular "Data Menu Tab", which is...

7 minutes read.

Quarter Dates in Excel

Excel is a combination of numeric values and alphabets. The user's project consists of the date depending upon their accounting and financial analysis. Sometimes there is a need to find...

4 minutes read.

Excel MINUTE() Function

Excel MINUTE() Function The MINUTE() function in excel converts a serial number to minute (0 - 59). Syntax MINUTE (SERIAL_NUMBER) Parameter SERIAL_NUMBER (required)- This parameter represents the date or time from which you want to extract...

1 minute read.

Excel FIND() Function

The FIND() function in excel finds one text value within another. It is a case-sensitive function. Syntax FIND (find_text, within_text, [start_num]) Parameter find_text (required)- This parameter represents the text to find. within_text (required)- This parameter represents...

1 minute read.

Goal Seek in Excel

Goal Seek in Excel The Goal Seek Excel function in Excel facilitates an automatic solving approach by adjusting a few pointers to reach a required output. Goal seeking is used when you have a value in...

3 minutes read.

Excel MAX() Function

Excel MAX() Function The MAX() function in excel returns the largest or maximum number from a range of cells. It ignores logical values and text. Syntax MAX(Number1,Number2, ...) Parameter Number1(required)- This parameter represents the string for which you...

1 minute read.

Formats in Excel

What are the formats? Formats are different options that one uses to change the appearance of data (maybe text, number, etc..) in an excel file. They do not change the value of the...

3 minutes read.

Excel LEFT() Function

The LEFT () function in excel returns the leftmost characters from a text value. This function is used for data manipulation. Syntax LEFT(Text, [num_chars]) Parameter Text (required)- This parameter represents the string from which you want to...

1 minute read.

Excel MIN() Function

Excel MIN() Function The MIN() function in excel returns the smallest or minimum value from the provided numbers, named range or array. It ignores logical values and text. Syntax MIN(Number1,Number2, ...) Parameter Number1(required)- This parameter represents the...

1 minute read.

Notes in Excel

Notes in Excel Notes are used to include additional information to the cell and explain formulas calculation, any modification made to the cell, providing necessary information on data that is entered or to provide any...

3 minutes read.

Excel RIGHT() Function

The RIGHT() function in excel returns the rightmost characters from a text value. This function is used for data manipulation. Syntax RIGHT(Text, [num_chars]) Parameter Text (required)- This parameter represents the string from which you want to find...

1 minute read.

Division in Excel

Excel worksheet are widely used for calculation purposes. Mathematics calculations include addition, subtraction, multiplication, division etc. Performing this calculation manually takes time and sometimes leads to error. To get the...

5 minutes read.

Thermometer Chart in the Microsoft Excel

It was known that the thermometer chart is basically based on a single data point and that in turn could be used to show the achievement percentage. It primarily depends...

7 minutes read.

Excel EDATE() Function

Excel EDATE() Function The EDATE() function in excel returns the serial number of the date that is the indicated number of months before or after the start date. Syntax EDATE(Start_Date, Month) Parameter Start_Date(required)- This parameter represents...

1 minute read.