Automatically generate serial no. if it is add more

AFZAL SOHAIL

Board Regular
Joined
May 31, 2023
Messages
159
Office Version
  1. 2021
  2. 2016
Platform
  1. Windows
Dear Team, I hope you will be fine and well,
I attached an image in which show the Sr.No. in Column-B, it will be 1 in column-A1 when it is started, so when I add the next adjustment it will be automatically give me 2 in Col-A adjacent of Sr.No. in b-column and so on the same for the next Sr.no.
Please help me I shall be very thankful to you.
 

Attachments

  • ADJUSTMENT OF FORMAT FOR MR. EXCEL.JPG
    ADJUSTMENT OF FORMAT FOR MR. EXCEL.JPG
    91.7 KB · Views: 10

Excel Facts

Save Often
If you start asking yourself if now is a good time to save your Excel workbook, the answer is Yes
it looks like you ave merged cells which maybe an issue

how about in first row assuming row 1

=if(C1="name of employee", Countif($A$1:A1,"Name of employee"), "" )
and drag down

But not sure how that will work with merged cells
 
Upvote 0
Thanks a lot Sir,
I put this formula in cell A1 but it give me Circular Reference error, and I also removed merge.
Kindly help me...

1737029270788.jpeg
 
Upvote 0
sorry should have been
=IF(C1="name of employee", COUNTIF($C$1:C1,"Name of employee"), "" )

Book3
ABCD
11name of employee
2 
3 
42name of employee
5 
6 
7 
8 
93name of employee
10 \
11 
12 
134name of employee
14 
155name of employee
16 
176name of employee
Sheet1
Cell Formulas
RangeFormula
A1:A17A1=IF(C1="name of employee", COUNTIF($C$1:C1,"Name of employee"), "" )
 
Upvote 0

Forum statistics

Threads
1,226,104
Messages
6,188,947
Members
453,513
Latest member
biovio

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top