Auto Number in Excel

DasOliver

New Member
Joined
Jul 4, 2012
Messages
10
I have been trying to "auto number" property ID's

I am putting a database of properties all over the world and can't find a way to autonumber based on property criteria.

For example:

MexicoTijuanaFloridoIndustrial
ArgentinaBuenos AiresBellosoComercial
EcuadorQuitoRiestraIndustrial
MexicoGuadalajaraSuresteIndustrial
USAChula VistaOtayComercial

<tbody>
</tbody>


I need a formula that places in the following field, for example:

MTFI-0001
ABBC-0001
EQRI-0001
MGSI-0001
UCOC-0001

Incremental in the number must be when a property meets the same criteria, that way the end will be "0002" in each case above.

I would like that Excel can display which is the next number following once the criteria is resumed, is this possible?

Thanks
Oliver
 

Excel Facts

How to calculate loan payments in Excel?
Use the PMT function: =PMT(5%/12,60,-25000) is for a $25,000 loan, 5% annual interest, 60 month loan.
Using an additional column to simplify the analysis...

Suppose your data are in A:D starting with row 2 (row 1 being a header row).

Then in E2 enter the formula =LEFT(A2,1)&LEFT(B2,1)&LEFT(C2,1)&LEFT(D2,1)

In F2 the formula =E2&"-"&TEXT(COUNTIF($E$2:E2,E2),"0000")

Copy E2:F2 as far down as you have data in A:D.
I have been trying to "auto number" property ID's

I am putting a database of properties all over the world and can't find a way to autonumber based on property criteria.

For example:

MexicoTijuanaFloridoIndustrial
ArgentinaBuenos AiresBellosoComercial
EcuadorQuitoRiestraIndustrial
MexicoGuadalajaraSuresteIndustrial
USAChula VistaOtayComercial

<tbody>
</tbody>


I need a formula that places in the following field, for example:

MTFI-0001
ABBC-0001
EQRI-0001
MGSI-0001
UCOC-0001

Incremental in the number must be when a property meets the same criteria, that way the end will be "0002" in each case above.

I would like that Excel can display which is the next number following once the criteria is resumed, is this possible?

Thanks
Oliver
 
Upvote 0
Thank you, is there a way to avoid continuance of numbering if the first for letters change? if fact to begin counting 0001 ?
 
Upvote 0
If any combination of the 1st letters (in the l-to-r sequence) is unique, it will get a value of 0001.

In fact, I imagine it would be easier to check the result then ask the question and wait for someone to respond. {grin}

Thank you, is there a way to avoid continuance of numbering if the first for letters change? if fact to begin counting 0001 ?
 
Upvote 0
If any combination of the 1st letters (in the l-to-r sequence) is unique, it will get a value of 0001.

In fact, I imagine it would be easier to check the result then ask the question and wait for someone to respond. {grin}

Thank you, is there a way to avoid continuance of numbering if the first for letters change? if fact to begin counting 0001 ?
 
Upvote 0

Forum statistics

Threads
1,215,475
Messages
6,125,028
Members
449,205
Latest member
Eggy66

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