简体   繁体   中英

Excel formula for increasing number

How can I write Excel formula for this:

TC-SM-001
TC-SM-002
TC-SM-003
... etc.

I would like to start it from an arbitrary position in the sheet and then to have the incrementation. Also, I would like the numbers to increment automatically if I delete or add the row somewhere in the middle.

Use one of these in a cell somewhere on the worksheet.

="TC-SM-"&text(row(1:1), "000")
=text(row(1:1), "TC-\S\M-000")

Fill down as necessary. Replace ROW(1:1) with any other starting or seeding number you prefer to start at; eg ROW(95:95) to start at TC-SM-095.

TEXT串联和序号

If the above formulas are giving you an error, your computer system's regional settings may have a semi-colon as the list delimiter .

="TC-SM-"&text(row(1:1); "000")
=text(row(1:1); "TC-\S\M-000")

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM