Need help in making Serial No

Santosh080

Board Regular
Joined
Jul 15, 2016
Messages
75
Office Version
  1. 2021
Platform
  1. Windows
Hello Friends,

I need some help in the below table. I have an excel file like this. Now i want to put serial no 1,2,3 like this but according to ID Type Column whichmeans first serial number for AA ID Type starts from 1 to 4 then for ID Type BB it starts from 1 not continuing from serial number of AA. Can it possible ?

Thanks



Sl. No
ID Type
NameA/C No.
AAxlkopswp135645
AAdskzxzz545345
AAcxzcc65636
AAczxczdsd5345252
BBcxcdfd454646
BBcxcxcf645656

CCwgtgy4535
CCsdsds5645
CCfzdcfxfdf345435
DD
sefrtsdfs4545
DDfdfstgy65576
DDfsdterwe
757567
DDgsetsetrse545

<colgroup><col><col span="3"></colgroup><tbody>
</tbody>


I want serial number like this which change according to ID Type,

Sl. No
ID TypeNameA/C No.
1
AAxlkopswp135645
2
AAdskzxzz545345
3
AAcxzcc65636
4
AAczxczdsd5345252
1
BBcxcdfd454646
2
BBcxcxcf645656
1
CCwgtgy4535
2
CCsdsds5645
3
CCfzdcfxfdf345435

DDsefrtsdfs4545
DD
fdfstgy65576
DDfsdterwe
757567
DDgsetsetrse545

<colgroup><col><col span="3"></colgroup><tbody>
</tbody>
 

Excel Facts

Lock one reference in a formula
Need 1 part of a formula to always point to the same range? use $ signs: $V$2:$Z$99 will always point to V2:Z99, even after copying
Assuming the data is sorted on ID Type and ID Type is in Column B and SI No is in Column A, enter this formula in Cell A2.
=IF(B2=B1,A1+1,1)
 
Upvote 0
If the SI number starts from cellA2 down and the Type ID is in column B, type the following formula in A2:

=IF(B2=B1,A1+1,1)

Then copy the formula down along column A

That should work.
 
Upvote 0

Forum statistics

Threads
1,215,149
Messages
6,123,311
Members
449,095
Latest member
Chestertim

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