• Skip to primary navigation
  • Skip to content
  • Skip to primary sidebar
  • Skip to footer
EDUCBA

EDUCBA

MENUMENU
  • Resources
        • Excel Charts

          • Histogram Chart Excel
          • Basic Excel Formulas
          • Text to Columns in Excel
        • Excel Charts
        • Excel Tips

          • Excel Gantt Chart
          • IFERROR with VLOOKUP
          • Data Table in Excel
        • Excel Tips
        • Excel Tools in Excel

          • Stacked Column Chart
          • Cheat Sheet of Excel Formulas
          • Excel Data Validation
        • Histogram chart in excel
        • Others

          • Resources (A-Z)
          • Excel Functions
          • Financial Functions in Excel
          • Logical Functions in Excel
          • Lookup Reference Functions in Excel
          • Maths Function in Excel
          • TEXT and String Functions in Excel
          • View All
  • Free Courses
  • All Courses
        • Certification Courses

          Excel Course 1
        • All in One Bundle

          All-in-One-Excel-VBA-Bundle
        • Excel course

          Excel-Training
        • Others

          • Excel advanced course
          • VBA Course
          • Excel Data Analysis Course
          • Excel for Marketing Course
          • Excel for Finance Course
          • View All
  • 120+ Courses All in One Bundle
  • Login

Numbering in Excel

Home » Excel » Blog » Excel Tips » Numbering in Excel

Numbering in Excel

Excel Numbering (Table of Contents)

  • Numbering in Excel
  • How to Add Serial Number in Excel?

Numbering in Excel

  • While we are working in Excel, we often come across to number rows in a dataset stored in Excel.
  • The most common way to do this is by entering serial numbers manually.
  • But what if you are having thousands of rows? And you keep adding and removing rows in between the dataset. It would be very tough, error-prone and most importantly time-consuming.
  • There are numerous ways to number rows in Excel and here in this article, I will discuss some of the ways which are often used by Excel Experts while data entry.
  • I am going to explain each and every way, where to use them and how they can be implemented in different scenarios with Examples. So you can understand it in a better way.

How to Add Serial Number in Excel?

To add a serial number in Excel is very simple and easy. Let’s understand the working of adding a serial number in Excel by some methods with its example.

Start Your Free Excel Course

Excel functions, formula, charts, formatting creating excel dashboard & others

You can download this Numbering Excel Template here – Numbering Excel Template

Example #1 – Fill Handle Method

Suppose you have the following dataset. And you have to give Student ID to each entry. Student ID there will be same as a serial number of each row entry.

Example 1

You can use the fill handle method here.

For example, you want to give Student ID 1056 to the first student and after it should be numerically increasing, 1056, 1057,1058 and so on…

Steps to number rows in Excel:

  • Enter 1056 in cell A2 and 1057 in cell A3.
  • Select both cells.
  • Now you can notice a square at the bottom-right of selected cells.

Numbering in Excel Example 1-2

  • Move your cursor to this square, now it will be changed to the small plus sign.
  • Now double click this plus icon and it will automatically fill series till the end of the dataset.

Result of Example 1

Key Point:

  • It identifies a pattern from a few filled cells and quickly fills the entire selected column.
  • It would only work till the last contiguous non-blank row. Viz. if you have any blank row(s) between your dataset. It will not detect them so it’s not recommended to use the fill method.

Example #2 – Fill Series Method

Suppose now we have the following dataset (same as above, now entries are only 26.).

Example 2

Steps to use the Fill Series method:

  • Enter 1 in cell A2.

Numbering in Excel Example 2-2

  • Go to the Home tab.
  • In the Editing Group, click on the Fill drop-down.

Numbering in Excel Example 2-3

  • From the drop-down, select Series.

Numbering in Excel Example 2-4

  • In the Series dialog box, select Columns in the ” Series in ” option.

Numbering in Excel Example 2-5

  • Specify the Stop value. Here we can enter 26 and then click Ok.
  •  If you don’t enter any value, Fill Series will not work.

Numbering in Excel Example 2-6

Hotkey to use fill series: ALT key+ H+ FI+ S

You can notice, it overcomes the drawback of the previous method. But then it has its own drawback that if we have blank rows in between of the dataset, Fill Series would still fill the number for that row.

Popular Course in this category
Excel Training (18 Courses, 9+ Projects) 18 Online Courses | 9 Hands-on Projects | 95+ Hours | Verifiable Certificate of Completion | Lifetime Access
4.9 (2,671 ratings)
Course Price

View Course

Related Courses
Excel Data Analysis Training (12 Courses, 6+ Projects)Excel for Finance Training (15 Courses, 5+ Projects)

Result of Example 2

Example #3 – COUNTA Function

Suppose you have same data set as above, now if want to number rows in excel only which are filled Viz. overcoming the shortcomings of the above 2 methods. You can use a COUNTA function here.

Steps to use a COUNTA Function:

  • Now enter the formula in the cell A2 i.e. =IF(ISBLANK(B2),””,COUNTA($B$2:B2))

Example 3

  • Drag it down till the last row of your data set.

Result of Example 3

  • In the above formula, IF function will check if cell B2 is empty or not. If found empty, it returns a blank, but if it’s not, it returns the count of all the filled cells till that cell.

Example #4 – Increment Previous Row Number

This is a very simple method. The main method is to simply add 1 to the previous row number.

Suppose you again have the same dataset.

  • In the first row, manually enter 1 or any number from where you want to start numbering all rows in excel. In our case. Enter 1 in cell A2.

Numbering in Excel Example 4-1

  • Now in cell A3, simply enter the formula=A2+1.

Numbering in Excel Example 4-2

  • Drag this formula until the last row and it will be increased by 1 in each following row.

Numbering in Excel Example 4-3

Example #5 – Row Function

We can even use a row function to give serial numbers to rows in our columns. In above all methods, serial number inserted is fixed values. But what if a row is moved or you cut and paste data somewhere else in the worksheet?

The above problem can be resolved by using the ROW function. To number the rows in a given dataset using the ROW function.

  • Enter the formula in the first cell i.e. =IF(ISBLANK(B2),””,ROW()-1)

Numbering in Excel Example 5-1

  • Drag this formula until the last row.

Numbering in Excel Example 5-2

  • In the above formula IF function will check if the adjacent cell B is blank or not. If it’s found blank it will return space and if non-blank, then row function will come into the picture. ROW() function will give us the row number. Since the first row in Excel consists of our dataset. So we don’t need to count it. To eliminate the first row, I have subtracted 1 from the returned value of the above function.
  • But it will not still adjust the row number, and a blank row will still have a serial number assigned to it. Though it is not shown. Look at the below screenshot.

Numbering in Excel Example 5-3

  • You can overcome the above issue with this formula i.e.=ROW()-1

Numbering in Excel Example 5-4

  • Drag this formula until the last row.

Numbering in Excel Example 5-5

  • But now it will consider the blank rows in the dataset and will number it as well. Consider below screenshot.

Numbering in Excel Example 5-6

The main advantage of using this method is even if you delete one or more entries in your dataset. You don’t need to struggle with the numbering of rows each and every time and it will be corrected automatically in excel.

So by now, I have discussed 5 unique methods to give serial numbers to row in a dataset stored in Excel. Although there are numerous methods to do the same, above five are the most common and easy to use method which can be implemented in different scenarios.

Things to Remember about Numbering in Excel

  • While storing data in Excel, we often need to give serial numbers to each row in our data set.
  • Entering a serial number to each and every row in the huge dataset can be time-consuming and prone to error.

Recommended Articles

This has been a guide to Numbering in Excel. Here we discuss how to add serial Number using different methods in excel along with practical examples and downloadable excel template. You can also go through our other suggested articles –

  1. Using Fill Handle in Excel
  2. Generate Random Numbers in Excel
  3. ISERROR Excel Function | Formula and Example
  4. How to use Count Function in Excel

All in One Excel VBA Bundle (120+ Courses, 30+ Projects)

120+ Online Courses

30+ Projects

500+ Hours

Verifiable Certificates

Lifetime Access

Learn More

4 Shares
Share
Tweet
Share
Reader Interactions
Leave a Reply Cancel reply

Your email address will not be published. Required fields are marked *

Primary Sidebar
Excel Functions Tutorials
  • Excel Tips
    • Excel Timesheet Template
    • Weighted Average in Excel
    • CTRL Shift-Enter in Excel
    • Excel Expense Tracker
    • INDEX MATCH Function in Excel
    • Shade Alternate Rows in Excel
    • Excel Database Template
    • Inverse Matrix in Excel
    • New Line in Excel Cell
    • Format Cells in Excel
    • Excel Text with Formula
    • Project Management Template in Excel
    • Vlookup vs Index Match
    • Embedded in Excel
    • Count Colored Cells in Excel
    • Excel Hacks
    • Column Header in Excel
    • Database Function in Excel
    • Excel Spell Check
    • Linear Interpolation in Excel
    • Convert Excel to CSV
    • Excel Not Responding
    • Delta Symbol in Excel
    • Excel Mortgage Calculator
    • Excel Show Formula
    • Break Links in Excel
    • VLOOKUP Examples in Excel
    • Alternate Row Color Excel
    • Checklist in Excel
    • Microsoft Office Tips
    • Excel vs Access
    • Excel Change Case
    • Count Characters in Excel
    • Formula Bar in Excel
    • Invoice Template in Excel
    • Find and Replace in Excel
    • PowerPivot in Excel
    • Wildcard in Excel
    • Line Break in Excel
    • NULL in Excel
    • Text Formula in Excel
    • Family Tree in Excel
    • Insert Calendar in Excel
    • Page Setup in Excel
    • Search For Text in Excel
    • Switching Columns in Excel
    • 3D Cell Reference in Excel
    • Roadmap Template in Excel
    • Cell References in Excel
    • Excel Automation
    • Matching Columns in Excel
    • Evaluate Formula in Excel
    • How to Find Mean in Excel
    • How to Add Cells in Excel
    • Project Timeline in Excel
    • TODAY Formula in Excel
    • Poisson Distribution in Excel
    • YEAR Formula in Excel
    • REPLACE Formula in Excel
    • Create Spreadsheet in Excel
    • SEARCH Formula in Excel
    • HYPERLINK Formula in Excel
    • Pivot Table with Multiple Sheets
    • COLUMNS Formula in Excel
    • DAY Formula in Excel
    • RIGHT Formula in Excel
    • INDIRECT Formula in Excel
    • Excel IRR Formula
    • Pivot Table Sort
    • OR Formula in Excel
    • Pivot Table Formula in Excel
    • How to Edit Drop Down List in Excel?
    • WEEKDAY Formula in Excel
    • Chart Wizard in Excel
    • Time Difference in Excel
    • Lookup Table in Excel
    • SUBTOTAL Formula in Excel
    • LOOKUP Formula in Excel
    • Themes in Excel
    • Group Worksheets in Excel
    • Excel ISNUMBER Formula
    • 3D Maps in Excel
    • VLOOKUP Tutorial in Excel
    • Moving Columns in Excel
    • Grouping Columns in Excel
    • Excel Formula of Percentage
    • Excel Leading Zeros
    • Timesheet in Excel
    • Nested IF Formula in Excel
    • SUMIF Formula in Excel
    • Concatenation in Excel
    • Excel Insert Page Break
    • LEN Formula in Excel
    • Insert Comment in Excel
    • Excel Print
    • Fractions in Excel
    • Excel Add a Column
    • Borders in Excel
    • Excel Sum by Color
    • Excel vs Google Sheets
    • Calculate Percentage Increase in Excel
    • Excel Format Phone Numbers
    • Excel Search Box
    • Excel vs CSV
    • Excel vs Numbers
    • Excel Concatenate Date
    • Excel Bullet Points
    • Calculate Compound Interest in Excel
    • Find External Links in Excel
    • Excel Comma Style
    • Excel Remove Leading Spaces
    • Combine First and Last Name in Excel
    • How to Calculate Ratio in Excel
    • SUMPRODUCT Function with Multiple Criteria
    • Create Excel Template
    • Excel Greater than or Equal
    • Excel Keyboard Shortcuts
    • Excel Row vs Excel Column
    • Excel Operators
    • Excel Text Compare
    • Excel Uppercase Function
    • Excel Auto Numbering
    • Watermark in Excel
    • Excel Delete Row Shortcut
    • Excel Word Count
    • Row Count in Excel
    • Excel Grade Formula
    • Excel Percentage Difference
    • Excel Rows and Columns
    • Excel Group
    • Excel Move Columns
    • Excel Row Height
    • Excel Sparklines
    • Excel Drawing a line
    • Multiple IFS in Excel
    • Excel Strikethrough
    • Numbering in Excel
    • Share Excel Workbook
    • Excel Shortcut For Merge Cells
    • Excel OneDrive
    • Excel Track changes
    • Excel Hide Formula
    • Excel Filter Shortcuts
    • Excel 3D Reference
    • Protect Excel Workbook
    • Excel Moving Averages
    • Excel Row Limit
    • Excel Absolute Value
    • Excel Print Area
    • Excel Format Painter
    • Excel Separate text
    • Excel Autofit
    • Excel Columns to Rows
    • Excel Paste Shortcut Option
    • Excel Rows to Columns
    • Excel Insert Row Shortcut
    • Excel Extensions
    • Excel Unmerge Cells
    • Divide in Excel Formula
    • Excel Compare Two Columns
    • Not Equal To Excel
    • Excel Remove Duplicates
    • Excel Remove Spaces
    • Excel Calculate Age
    • Copy Excel Sheet
    • Excel Conditional Formatting Based on Another Cell Value
    • Excel Cell Reference
    • Excel Split Cell
    • Excel Circular Reference
    • Highlight Every Other Row in Excel
    • Errors in Excel
    • Excel Delete Pivot Table
    • Excel Pivot Table
    • Subtraction in Excel
    • Count Unique Values in Excel
    • Excel Highlight Duplicates
    • Excel Data Formatting
    • Random Numbers in Excel
    • Basic Excel Formulas
    • Page Numbers in Excel
    • Excel CAGR Formula
    • Excel Combine cells
    • IFERROR with VLOOKUP in Excel
    • Column Sort in Excel
    • Print Comments in Excel
    • Cheat Sheet of Excel Formulas
    • Remove Hyperlinks in Excel
    • Excel Drop Down List
    • Remove (Delete) Blank Rows in Excel
    • Relative Reference in Excel
    • Subscript in Excel
    • Superscript in Excel
    • Excel Insert Multiple Rows
    • Excel Absolute Reference
    • Unhide Columns in Excel
  • Excel Functions (10+)
  • Excel Tools (97+)
  • Financial Functions in Excel (17+)
  • Logical Functions in Excel (12+)
  • Lookup Reference Functions in Excel (30+)
  • Maths Function in Excel (39+)
  • TEXT and String Functions in Excel (25+)
  • Date and Time Function in Excel (20+)
  • Statistical Functions in Excel (55+)
  • Information Functions in Excel (4+)
  • Excel Charts (44+)
  • VBA (180+)
  • Workplace Productivity (4+)
  • Microsoft Office Tools (14+)
  • Excel Formula and Functions (20+)
  • MS Excel Shortcuts (4+)
Excel Functions Courses
  • EXCEL COURSE
  • Online Excel Data Analysis Course
  • Excel for Finance Course
Footer
About Us
  • Who is EDUCBA?
  • Sign Up
  •  
Free Courses
  • Free Online Excel Course
  • Free Vba Course
Certification Courses
  • All Courses
  • Excel VBA Course - All in One Bundle
  • VBA Course
  • Excel Data Analysis Course
  • Excel for Marketing Course
  • Excel for Finance Course
  • Excel for HR Training
Resources
  • Resources (A To Z)
  • Excel Charts
  • Excel Tips
  • Excel Tools in Excel
  • Excel Functions
  • Financial Functions in Excel
  • Logical Functions in Excel
  • Lookup Reference Functions in Excel
  • Maths Function in Excel
  • TEXT and String Functions in Excel
  • Date and Time Function in Excel
  • Statistical Functions in Excel
  • Information Functions in Excel
Apps
  • iPhone & iPad
  • Android
Support
  • Contact Us
  • Verifiable Certificate
  • Reviews
  • Terms and Conditions

© 2019 - EDUCBA. ALL RIGHTS RESERVED. THE CERTIFICATION NAMES ARE THE TRADEMARKS OF THEIR RESPECTIVE OWNERS.

EDUCBA

Download Numbering Excel Template

By continuing above step, you agree to our Terms of Use and Privacy Policy.
EDUCBA
Free Excel Course

Excel functions, formula, charts, formatting creating excel dashboard & others

By continuing above step, you agree to our Terms of Use and Privacy Policy.
*Please provide your correct email id. Login details for this Free course will be emailed to you
EDUCBA
Free Excel Course

Excel functions, formula, charts, formatting creating excel dashboard & others

By continuing above step, you agree to our Terms of Use and Privacy Policy.
*Please provide your correct email id. Login details for this Free course will be emailed to you
EDUCBA
Free Excel Course

Excel functions, formula, charts, formatting creating excel dashboard & others

By continuing above step, you agree to our Terms of Use and Privacy Policy.
*Please provide your correct email id. Login details for this Free course will be emailed to you
EDUCBA
Free Excel Course

Excel functions, formula, charts, formatting creating excel dashboard & others

By continuing above step, you agree to our Terms of Use and Privacy Policy.
*Please provide your correct email id. Login details for this Free course will be emailed to you
EDUCBA

By continuing above step, you agree to our Terms of Use and Privacy Policy.
*Please provide your correct email id. Login details for this Free course will be emailed to you
EDUCBA Login

Forgot Password?

Let’s Get Started
Please provide your Email ID
Email ID is incorrect

Limited Period Offer - All in One Excel VBA Bundle (120+ Courses, 500+ hours of Videos) View More

Limited Period Offer - Limited Period Offer - All in One Excel VBA Bundle (120+ Courses, 500+ hours of Videos) View More