ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Discussion (Misc queries) (https://www.excelbanter.com/excel-discussion-misc-queries/)
-   -   How do I extract 3 numbers inside a longer number to another column ? (https://www.excelbanter.com/excel-discussion-misc-queries/66386-how-do-i-extract-3-numbers-inside-longer-number-another-column.html)

Dbase Beginner

How do I extract 3 numbers inside a longer number to another column ?
 

Hi,


How do I extract the 008 from e.g. CV002-008-004_001 or the 001 from
CV002-001_001 to another column ?


Thanks in advance !


--
Dbase Beginner
------------------------------------------------------------------------
Dbase Beginner's Profile: http://www.excelforum.com/member.php...o&userid=20778
View this thread: http://www.excelforum.com/showthread...hreadid=503412


Ron Coderre

How do I extract 3 numbers inside a longer number to another column ?
 

Try this:

With CV002-008-004_001 in A1:
B1: =LEFT(MID(A1,FIND("-",A1)+1,255),3)

That returns 008

Does that help?

Regards,
Ron


--
Ron Coderre
------------------------------------------------------------------------
Ron Coderre's Profile: http://www.excelforum.com/member.php...o&userid=21419
View this thread: http://www.excelforum.com/showthread...hreadid=503412


MBo

How do I extract 3 numbers inside a longer number to another colum
 
Use the following fromula
=MID(your cell,7,3)

This works only if you "008"s or "001"s are always 7 characters from the
left...

MBo


"Dbase Beginner" wrote:


Hi,


How do I extract the 008 from e.g. CV002-008-004_001 or the 001 from
CV002-001_001 to another column ?


Thanks in advance !


--
Dbase Beginner
------------------------------------------------------------------------
Dbase Beginner's Profile: http://www.excelforum.com/member.php...o&userid=20778
View this thread: http://www.excelforum.com/showthread...hreadid=503412




All times are GMT +1. The time now is 09:17 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com