Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
Hi,
I have a text string and would like all the characters before the | symbol to be returned. The text before the | is varying lengths. EG Pears|Apples.........would return Pears Bananas|Oranges...........would return Bananas TIA, AW |
#2
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
=LEFT(A1,FIND("|",A1)-1)
-- Gary''s Student - gsnu200901 |
#3
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
Hi try this
Assuming that your data are in A2 onward with the first row being the header. In B2, place this formula and copy down =LEFT(A2,SEARCH("|",A2)-1) -- Hope this is helpful Pls click the Yes button below if this post provide answer you have asked Thank You cheers, francis Am not a greek but an ordinary user trying to assist another "ArcticWolf" wrote: Hi, I have a text string and would like all the characters before the | symbol to be returned. The text before the | is varying lengths. EG Pears|Apples.........would return Pears Bananas|Oranges...........would return Bananas TIA, AW |
#4
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
Just to add on.. Why dont you try Text to columns option. If you havent tried
select the range/column needs to be changed. --From menu DataText to Columns will populate the 'Convert Text to Columns Wizard'. By default the selection is 'Delimited'. Keep the selection and hit 'Next'. --From the Step2 of the Wizard from the options in Other Specify the pipe symbol and hit Next. --Hit Finish If this post helps click Yes --------------- Jacob Skaria "ArcticWolf" wrote: Hi, I have a text string and would like all the characters before the | symbol to be returned. The text before the | is varying lengths. EG Pears|Apples.........would return Pears Bananas|Oranges...........would return Bananas TIA, AW |
#5
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
Is it possible for there to be blank cells in the column with your pipe(|)
delimited text? If so, use this... =LEFT(A1,FIND("|",A1&"|")-1) One side effect to this... if you have a piece of text without the pipe symbol in it, the entire text from the cell will be returned. -- Rick (MVP - Excel) "ArcticWolf" wrote in message ... Hi, I have a text string and would like all the characters before the | symbol to be returned. The text before the | is varying lengths. EG Pears|Apples.........would return Pears Bananas|Oranges...........would return Bananas TIA, AW |
#6
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
Good tip Jacob. The original is on another worksheet so I've done a little
formula to bring it in. Thanks for the heads up. AW "Jacob Skaria" wrote: Just to add on.. Why dont you try Text to columns option. If you havent tried select the range/column needs to be changed. --From menu DataText to Columns will populate the 'Convert Text to Columns Wizard'. By default the selection is 'Delimited'. Keep the selection and hit 'Next'. --From the Step2 of the Wizard from the options in Other Specify the pipe symbol and hit Next. --Hit Finish If this post helps click Yes --------------- Jacob Skaria "ArcticWolf" wrote: Hi, I have a text string and would like all the characters before the | symbol to be returned. The text before the | is varying lengths. EG Pears|Apples.........would return Pears Bananas|Oranges...........would return Bananas TIA, AW |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
How do I return a text string when a calculation returns a non who | Excel Worksheet Functions | |||
Nested formula to search a text string and return specific text | Excel Worksheet Functions | |||
Formula to return part of a text string | Excel Discussion (Misc queries) | |||
Find $ in a string of text and return numbers | Excel Discussion (Misc queries) | |||
Return a formula as text string to a cell | Excel Worksheet Functions |