Home |
Search |
Today's Posts |
#1
Posted to microsoft.public.excel.programming
|
|||
|
|||
Identify second line
I have a strange issue, in a cell I have two lines which is entered by the
user using alt+enter. Now I need to segregate only the second from each cell & manipulate teh data furhter. This data is full of text. for eg: NCO Yagna Text to columns delimit or fixed width is not sovling the issue, the data I require. Any help on this. thanks, Yagna. |
#2
Posted to microsoft.public.excel.programming
|
|||
|
|||
Identify second line
This worksheet function should do it
=MID(D1,FIND(CHAR(10),D1)+1,99) -- HTH Bob (there's no email, no snail mail, but somewhere should be gmail in my addy) "yagna" wrote in message ... I have a strange issue, in a cell I have two lines which is entered by the user using alt+enter. Now I need to segregate only the second from each cell & manipulate teh data furhter. This data is full of text. for eg: NCO Yagna Text to columns delimit or fixed width is not sovling the issue, the data I require. Any help on this. thanks, Yagna. |
#3
Posted to microsoft.public.excel.programming
|
|||
|
|||
Identify second line
You could try the following code, Works for me when trying it.
You'll have to change the sheet name and which cells to look at (obviously). Hope this helps. Dim splitArray() As String splitArray = Split(Sheets("SheetName").Cells(1, 1).Value, vbLf) MsgBox splitArray(1) 'Displays the second word from the sheet. "yagna" wrote: I have a strange issue, in a cell I have two lines which is entered by the user using alt+enter. Now I need to segregate only the second from each cell & manipulate teh data furhter. This data is full of text. for eg: NCO Yagna Text to columns delimit or fixed width is not sovling the issue, the data I require. Any help on this. thanks, Yagna. |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Forum | |||
How to convert a dotted line to a solid line in a line graph | Charts and Charting in Excel | |||
Make a line in a bar chart, and change color of any bars that exceed the line | Excel Discussion (Misc queries) | |||
coloring overy other line without doing so line by line | Excel Worksheet Functions | |||
Macro problem on, Yellowed line - previous line or next line. | Excel Programming | |||
Reads entire *.txt file into string opposed to a desired line by line input. | Excel Programming |