![]() |
![]() |
|
|||||||
| 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: Mar 2002
Posts: 62
|
Hi all, a simple one for somebody!
Column A shows 100's of part codes much like the one shown: 1HAT60847BC-LB16SA I want column B to show LB16SA. Any bright ideas? Thanks Matt |
|
|
|
|
|
#2 |
|
Board Regular
Join Date: Feb 2002
Location: England
Posts: 212
|
Try this formula in B1
=right(A1,6) and then copy formula down |
|
|
|
|
|
#3 | |
|
MrExcel MVP
Join Date: Feb 2002
Location: The Hague
Posts: 50,317
|
Quote:
=RIGHT(A1,LEN(A1)-SEARCH("-",A1)) |
|
|
|
|
|
|
#4 |
|
Banned
Join Date: Feb 2002
Posts: 1,582
|
Also..
=REPLACE(A3,1,FIND("-",A3),"") |
|
|
|
|
|
#5 |
|
Board Regular
Join Date: Feb 2002
Location: England
Posts: 212
|
Or you could use text to columns on the data menu
- select delimited as your data type - for your delimiter select other and enter "-" this will also split your cells as requested |
|
|
|
![]() |
| Bookmarks |
| Thread Tools | |
| Display Modes | |
|
|