All,
I have a number column, but format must be:
EO-01 to EO-n
Where n is 2 or more digits.
Nothing I've tried has worked and must be able to "right corner drag" the first cell in the page and propagate the column.
Cheers!
TBNK
All,
I have a number column, but format must be:
EO-01 to EO-n
Where n is 2 or more digits.
Nothing I've tried has worked and must be able to "right corner drag" the first cell in the page and propagate the column.
Cheers!
TBNK
Hi and welcome to the forum,
Would you upload a workbook with a few examples so that we may see your request in context?
Richard Buttrey
RIP - d. 06/10/2022
If any of the responses have helped then please consider rating them by clicking the small star iconbelow the post.
Hi TBNK- enter 1 in A1, 2 in A2. Apply custom Number Format \EO-00 to both cells (Type it in). Now, WITH BOTH CELLS SELECTED, drag down to fill the series.
Untitled.png
Please click the Add Reputation star below any helpful posts, and if you have your answer, mark your thread as SOLVED (Thread Tools up top). Thanks!-Lee![]()
Last edited by leelnich; 06-07-2017 at 09:15 AM.
This will work for numbers up to 99...
="EO-"&TEXT(RIGHT(R2,2)+1,"00")
Will work on 100 and more
1. Use code tags for VBA. [code] Your Code [/code] (or use the # button)
2. If your question is resolved, mark it SOLVED using the thread tools
3. Click on the star if you think someone helped you
Regards
Ford
OK this works for 3 digits...
="EO-"&TEXT(RIGHT(R2,IF(LEN(R2)=6,3,2))+1,"00")
(with your data starting in R2)
Format the CELL with a custom Number format to keep the numbers AS NUMBERS, as in post #2:
Custom Number Format \EO-00 displays "EO-04", but the cell value = 4.
If you need them AS TEXT, use this formula (in A2 and down) (similar to Ford's post#5):
=TEXT(MID(A1,4,8)+1,"\EO-00")
Both approaches work with any number of digits. In each case, the # of zeros determines the minimum # of digits shown.
Please click the Add Reputation star below any helpful posts, and if you have your answer, mark your thread as SOLVED (Thread Tools up top). Thanks!-Lee![]()
Last edited by leelnich; 06-07-2017 at 09:56 AM.
Great, happy to help![]()
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks