How to auto number a column based on cell value on another column in Excel?

Auto number a column based on values on another column
Auto number a column based on values on another column
Fortunately, there is a formula can quickly number a column based on values of anther column in Excel.
1. Type 1 into the first cell of the column you want to number. See screenshot:
2. In the second cell of the column you want to number, type this formula =IF(B1:B13="Total","",COUNTIF($A$1:A1,">0")+1), and press Enter key.
Tip: In the above formula, B1:B13 is the column range you want to number based on, and A1 is the cell you typed 1 into, and “Total” is the value you do not want to number.
3. Then drag the autofill handle to the column range you want to number. See screenshot:
Relative Articles:
Best Office Productivity Tools
Supercharge Your Excel Skills with Kutools for Excel, and Experience Efficiency Like Never Before. Kutools for Excel Offers Over 300 Advanced Features to Boost Productivity and Save Time. Click Here to Get The Feature You Need The Most...
Office Tab Brings Tabbed interface to Office, and Make Your Work Much Easier
- Enable tabbed editing and reading in Word, Excel, PowerPoint, Publisher, Access, Visio and Project.
- Open and create multiple documents in new tabs of the same window, rather than in new windows.
- Increases your productivity by 50%, and reduces hundreds of mouse clicks for you every day!











