![]() |
![]() |
|
|||||||
| Excel Questions All Excel/VBA questions - formulas, macros, pivot tables, general help, etc. Please post to this forum in English only. |
![]() |
|
|
Thread Tools | Display Modes |
|
|
#1 |
|
Board Regular
Join Date: Feb 2002
Posts: 51
|
I have large numbers in one column.
2345900-4039klj 2345900-7690lgn 2345900-3670ghl etc..... In the next column, I only need the last four numbers with an apostrophe in front. '4039 '7690 '3670 etc...... What is the formula for this? |
|
|
|
|
|
#2 |
|
Board Regular
Join Date: Feb 2002
Posts: 255
|
If the numbers are all in the same format as those examples you can use:
="'" & mid(cell with the number),9,4) this will take the number from that cell and take return 4 characters starting from the 9th one. If the number formats vary you can still do it but it will be a longer formula and likely nead to use the search() and len() functions. Dave |
|
|
|
|
|
#3 | |
|
MrExcel MVP
Join Date: Feb 2002
Location: The Hague
Posts: 50,319
|
Quote:
|
|
|
|
|
![]() |
| Bookmarks |
| Thread Tools | |
| Display Modes | |
|
|