ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Worksheet Functions (https://www.excelbanter.com/excel-worksheet-functions/)
-   -   Auto number w/ different letter-number combos in same column (https://www.excelbanter.com/excel-worksheet-functions/14291-auto-number-w-different-letter-number-combos-same-column.html)

Colleen B

Auto number w/ different letter-number combos in same column
 
I have a numbering system that differs for the entry depending on if it is a
manufacturer "M", distributor "D" or retailer "R". All of the reference
numbers are in one column. For example, if column C has each company's name
in it, column B may look like:

M1
R1
R2
R3
M2

etcetera.

I would like to figure out how to autonumber these such that if R2 was
deleted, for example, then R3 would automatically become R2. Is there any
way to do this in one column, since the numbering is not sequential because
Ms, Ds, and Rs are all mixed together? Thanks!!

Colleen B

[email protected]

If you can settle for 2 Col, try this:
In the first Col enter the letter alone
In the second Col enter this formula
=A2&COUNTIF(INDIRECT("a"&ROW()&":"&"a1"),A2)
change the addresses as needed
Ilan


Colleen B

Thanks--that worked perfectly!!!


All times are GMT +1. The time now is 12:57 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com