Home |
Search |
Today's Posts |
|
#1
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
I've been scouring ths threads here, but can't quite find what I'm looking
for. I am making a spread sheet with list of starndard parts. The Part name looks like this: nas1101-04-08, nas1101-4-4, nas1101-04-4. I need to extract the number between the dashes. I need to be able to tell the difference between 04, and 4 |
#2
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
This seems a little cumbersome, but works.
=MID(A1,FIND("-",A1)+1,FIND("-",A1,FIND("-",A1)+1)-FIND("-",A1)-1) -- Cordell "Tith" wrote: I've been scouring ths threads here, but can't quite find what I'm looking for. I am making a spread sheet with list of starndard parts. The Part name looks like this: nas1101-04-08, nas1101-4-4, nas1101-04-4. I need to extract the number between the dashes. I need to be able to tell the difference between 04, and 4 |
#3
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
This works great the way I got it to work was very clumbersome. I like your
shorter version. Thanks a lot. "Cordell" wrote: This seems a little cumbersome, but works. =MID(A1,FIND("-",A1)+1,FIND("-",A1,FIND("-",A1)+1)-FIND("-",A1)-1) -- Cordell "Tith" wrote: I've been scouring ths threads here, but can't quite find what I'm looking for. I am making a spread sheet with list of starndard parts. The Part name looks like this: nas1101-04-08, nas1101-4-4, nas1101-04-4. I need to extract the number between the dashes. I need to be able to tell the difference between 04, and 4 |
#4
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
On Fri, 25 Jul 2008 12:15:01 -0700, Tith
wrote: I've been scouring ths threads here, but can't quite find what I'm looking for. I am making a spread sheet with list of starndard parts. The Part name looks like this: nas1101-04-08, nas1101-4-4, nas1101-04-4. I need to extract the number between the dashes. I need to be able to tell the difference between 04, and 4 If the first dash is always the fifth character of the part name you can try this formula: =LEFT(MID(A1,6,10),FIND("-",MID(A1,6,10))-1) Hope this helps / Lars-Åke |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
extract data from a string of information | Excel Discussion (Misc queries) | |||
Extract text string using MID | Excel Worksheet Functions | |||
Extract from string | Excel Discussion (Misc queries) | |||
Extract certain parts of string | Excel Worksheet Functions | |||
Extract sub string | Excel Worksheet Functions |