Generate serial numbers for separate sheets

vij

Board Regular
Joined
Feb 13, 2011
Messages
215
Hi All,

I have a master sheet where in Cell A9 is “Serial Number based on Cell B9 using the formula “=A9&TEXT(COUNTIF($A$9:A9,A9),"-0000000")



A 9​
B 9​
Vijay-0000001​
Vijay​
Rajiv-0000001​
Rajiv​
Suj-0000001​
Suj​
TK-0000001​
TK​
Vijay-0000002​
Vijay​
Rajiv-0000002​
Rajiv​


I have individual sheets for the names under B9 as an example under sheet Vijay the result expected is as under:

Vijay-0000001
Vijay-0000002

  • While in the sheet Rajiv the result expected is :
    • Rajiv-0000001
    Rajiv-0000002
 

Excel Facts

Excel motto
Not everything I do at work revolves around Excel. Only the fun parts.
So what exactly is your question ?

And by the way, if that formula you posted is in cell A9, then I think it must actually be
=B9&TEXT(COUNTIF($B$9:B9,B9),"-0000000")
and not as you have posted.
 
Upvote 0
So what exactly is your question ?

And by the way, if that formula you posted is in cell A9, then I think it must actually be
=B9&TEXT(COUNTIF($B$9:B9,B9),"-0000000")
and not as you have posted.
Hi Gerald,
Yes, The formula should be what you have posted. My question is
using VLOOKUP('Main Sheet'!$B9,'Main Sheet'!$B$9:$BK$15000,1,FALSE) in the sheet Vijay in Column A:A I get all S No pertaining to Vijay.

Similarly using VLOOKUP('Main Sheet'!$B9,'Main Sheet'!$B$9:$BK$15000,1,FALSE) in the sheet Rajiv in Column A:A I get all S No pertaining to Rajiv and so on for the other sheets.
 
Upvote 0

Forum statistics

Threads
1,223,903
Messages
6,175,289
Members
452,631
Latest member
a_potato

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