Home |
Search |
Today's Posts |
|
#1
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
=TRIM(IF(ISNUMBER(FIND("HW",A1)),MID(A1,FIND("HW", A1),8)&"
"&IF(ISNUMBER(FIND("HW",A1,FIND("HW",A1)+1)),MID(A 1,FIND("HW",A1,FIND("HW",A1)+1),8),""),"")) "BRB" wrote: Have a variation to a previous question: Need to copy a string of characters from one cell to another. Here is what the cell looks like: Cells: A1 = Some text, HW012345, more text, HW034567, more text A2 = Some text A3 = Some text, HW056783, more text, HW035791, more text In column B I need the following result: B1 = HW012345 HW034567 B2 = (blank) B3 = HW056783 HW035791 Thanks for any help |
#2
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
Thanks Teethless mama, almost there.
My description was probably not complete. The cell may contain several instances of HW0xxxxx, not just two. I used your command statement and it worked well for two occurrances of the string, but any more than that it did not find. Thanks for any further help. "Teethless mama" wrote: =TRIM(IF(ISNUMBER(FIND("HW",A1)),MID(A1,FIND("HW", A1),8)&" "&IF(ISNUMBER(FIND("HW",A1,FIND("HW",A1)+1)),MID(A 1,FIND("HW",A1,FIND("HW",A1)+1),8),""),"")) "BRB" wrote: Have a variation to a previous question: Need to copy a string of characters from one cell to another. Here is what the cell looks like: Cells: A1 = Some text, HW012345, more text, HW034567, more text A2 = Some text A3 = Some text, HW056783, more text, HW035791, more text In column B I need the following result: B1 = HW012345 HW034567 B2 = (blank) B3 = HW056783 HW035791 Thanks for any help |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Count characters within a string | Excel Worksheet Functions | |||
Separate characters in a string | Excel Discussion (Misc queries) | |||
summing characters in a string | Excel Worksheet Functions | |||
select a string of characters | Excel Worksheet Functions | |||
pulling characters out of a string | Excel Worksheet Functions |