×

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 TEXT() Function

The TEXT () function in excel converts a supplied numerical value into the text of a specific format. Syntax TEXT(Value, Format_text) Parameter Value (required)- This parameter represents the value for which we need to...

1 minute read.

SumIF Formula in Microsoft Excel

SUMIF Formula in Microsoft Excel is considered the primary and vital formula individuals can use to remove their workload. In this tutorial, we will discuss and learn about the SUMIF Formula...

7 minutes read.

What if Analysis Data Table in Excel

What is What-If Analysis? Suppose you have a cell A15 which is formula driven i.e. has a formula and the formula is based on values in different cells (A1, A2, A3, A4), what-if...

4 minutes read.

Excel SECOND() Function

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

1 minute read.

How to remove duplicate values from excel?

Remove duplicate values from excel Duplicate values occur when the same date or set of values is repeated in your Excel sheet. While working with Excel sheets many a time, the...

5 minutes read.

Shortcut Keys in Excel

Shortcut Keys in Excel Shortcut keys in Excel are used to simplify the work and save time by pressing a few keys.  These keys are used for navigating and working with Excel spreadsheets quickly and easily. Basic Selection:...

9 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 Function and Formulas

Excel Today() Function The today() function returns the serial number of today’s date as per system number of today’s date as per system’s regional settings. Syntax Today() Parameter NA Category Date & Time Returns This function returns today's date...

4 minutes read.

How to Make Use of the F-Test in Excel

Intro to F-Test in Microsoft Excel F-Test is primarily considered to be the essential tool of statistical in Microsoft Excel that, in turn, is used to do the hypothesis test with...

7 minutes 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.

Gauge Chart in Excel

A Gauge Chart in Microsoft Excel is considered the meter type chart of a group dial chart, which is eventually similar to the speedometer that has the pointer towards the...

7 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.

Cells and Ranges in Excel

Cells and Ranges Each cell is identified by its cell address, which is a combination of the column and row on which that cell is situated. A group of cells together are called ‘Range’. When...

5 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.

Data Analysis in Excel

Data Analysis in Excel Data analysis is a powerful tool that helps the users to make better decisions by comparing different information. Microsoft Excel extends its credibility to enforce the data analysis tool...

6 minutes read.

Excel IF() Function

Excel IF() Function: The IF() function in excel checks whether a condition is true or not and returns one value if the condition is TRUE and another value if it's...

2 minutes 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.

Excel EOMONTH() Function

Excel EOMONTH() Function The EOMONTH() function in excel returns the serial number of the last day of the month before or after a specified number of months. Syntax EOMONTH (Start_Date, Month) Parameter Start_Date(required)- This parameter...

1 minute read.

Operators in Excel

In MS Excel, operators are used to defining the operation you want to perform on the used elements or between variables. There are four types of operators: Arithmetic operators, Comparison...

4 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.