Item code generation

Anas_Raza

Board Regular
Joined
Dec 18, 2013
Messages
60
i want to develop a Mechanism if i Enter a department Name in column B then in Column A Automatic generate its equivalent code.
 

Excel Facts

Excel motto
Not everything I do at work revolves around Excel. Only the fun parts.
I have a sheet i which i want to categorize my store items,Electric items, Mechanical items,Maintenance items.
i want to do code of every thing.
i add all items in one column of sheet. i want to give it code automatically electric item have separate code suffix or mechanical and other separate.
 
Upvote 0
If I have understood correctly,

you have a certain items which you have categorized like Electric Item, Mechanical Item, Maintenance Items etc.


You can Extract a part of text using LEFT function

Suppose you have a list of these items in Column A, for which category is mentioned in Column B

Example
Column A(Item) Column B (Category)
Wires Electric Items
Spanner Maintenance Items
Piston Mechanical Items


then in Column C

=LEFT(B2,4)

The result would be Elec, Main, Mech respectively.

you can combine this with Item Name as well
e.g. =A2&"-"&LEFT(B2,4)

The result would be Wires-Elec and likewise.


still how you want to give code is not clear. Is it a Number or Combination of Number and Category? I have just assumed that part for you
 
Upvote 0

Forum statistics

Threads
1,214,649
Messages
6,120,728
Members
448,987
Latest member
marion_davis

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