OK, i've downloaded adds-in. Which function I need to use? There is n
charcode for separator (I don't know) which is generated by pressin
Alt+Enter...
Ron Rosenfeld Wrote:
> >Hi, All
> >I have a datafile that was generated by accounting software. M
[quoted text clipped - 24 lines]
>
> --ro
Pete_UK - 09 Jun 2006 14:29 GMT
The separator which forces a new line within a cell (equivalent to
Alt-Enter) is actually character code 10 - you can type this from the
keyboard as ALT-010 on the numeric keypad.
Ron seems to be the expert on morefunc, so I'll let him come back on
that.
Hope this helps.
Pete
> OK, i've downloaded adds-in. Which function I need to use? There is no
> charcode for separator (I don't know) which is generated by pressing
[quoted text clipped - 36 lines]
> StanUkr's Profile: http://www.excelforum.com/member.php?action=getinfo&userid=27232
> View this thread: http://www.excelforum.com/showthread.php?threadid=550295
StanUkr - 09 Jun 2006 14:55 GMT
Thank for that, but all I need is to put separatly substrigs from a cel
that are separated by Alt+Enter into 1 row to a different columns....
When i tried to use function like this =SUBSTITUTE(C6;CHAR(10);"$") i
has no effect. Then i suppose to use "text to a columns" afte
separator will be substituted with $ sнymbol...
StanUkr - 09 Jun 2006 14:55 GMT
Thank for that, but all I need is to put separatly substrigs from a cel
that are separated by Alt+Enter into 1 row to a different columns....
When i tried to use function like this =SUBSTITUTE(C6;CHAR(10);"$") i
has no effect. Then i suppose to use "text to a columns" afte
separator will be substituted with $ sнymbol...
jkend69315@aol.com - 09 Jun 2006 15:57 GMT
Since I've run into this before, I'll barge in. I'll presume the text
you want to separate is in column G and you want to put the separated
text into the columns following G. Put this macro in a regular module,
then return to the worksheet and run the macro.
Sub SeparateText()
Dim j As Integer, k As Long
Dim ctCR As Integer
For k = 2 To Cells(65536, "g").End(xlUp).Row
ctCR = 1
With Cells(k, "g")
.Offset(, 1) = ""
For j = 1 To Len(.Value)
If Asc(Mid(.Value, j, 1)) = 10 Then
ctCR = ctCR + 1
.Offset(, ctCR) = ""
Else
.Offset(, ctCR) = .Offset(, ctCR) & Mid(.Value, j, 1)
End If
Next j
End With
Next k
End Sub
> Thank for that, but all I need is to put separatly substrigs from a cell
> that are separated by Alt+Enter into 1 row to a different columns....
[quoted text clipped - 7 lines]
> StanUkr's Profile: http://www.excelforum.com/member.php?action=getinfo&userid=27232
> View this thread: http://www.excelforum.com/showthread.php?threadid=550295
RagDyeR - 09 Jun 2006 16:13 GMT
Use TTC (Text to Columns) !
Select column of text, then:
<Data> <TextToColumns> <Delimited> <Next>,
Click in <Other>,
Then, hold down the <Alt> key, and type
010
Using the numbers from the Num keypad, *not* the numbers under the function
keys.
Nothing will be visible in the box, but you should now see your data
properly separated in the Data Preview window.
Then <Finish>.

Signature
HTH,
RD
=====================================================
Please keep all correspondence within the Group, so all may benefit!
=====================================================
Thank for that, but all I need is to put separatly substrigs from a cell
that are separated by Alt+Enter into 1 row to a different columns....
When i tried to use function like this =SUBSTITUTE(C6;CHAR(10);"$") it
has no effect. Then i suppose to use "text to a columns" after
separator will be substituted with $ sнymbol....

Signature
StanUkr
------------------------------------------------------------------------
StanUkr's Profile:
http://www.excelforum.com/member.php?action=getinfo&userid=27232
View this thread: http://www.excelforum.com/showthread.php?threadid=550295
StanUkr - 14 Jun 2006 10:00 GMT
Thanks, that was really simple and the most right solution!
RagDyeR Wrote:
> Use TTC (Text to Columns) !
>
[quoted text clipped - 34 lines]
> View this thread
> http://www.excelforum.com/showthread.php?threadid=55029
RagDyeR - 14 Jun 2006 12:04 GMT
Appreciate the feed-back.

Signature
Regards,
RD
----------------------------------------------------------------------------
-------------------
Please keep all correspondence within the Group, so all may benefit !
----------------------------------------------------------------------------
-------------------
Thanks, that was really simple and the most right solution!
RagDyeR Wrote:
> Use TTC (Text to Columns) !
>
[quoted text clipped - 38 lines]
> View this thread:
> http://www.excelforum.com/showthread.php?threadid=550295

Signature
StanUkr
------------------------------------------------------------------------
StanUkr's Profile:
http://www.excelforum.com/member.php?action=getinfo&userid=27232
View this thread: http://www.excelforum.com/showthread.php?threadid=550295
Ron Rosenfeld - 09 Jun 2006 21:13 GMT
>OK, i've downloaded adds-in. Which function I need to use? There is no
>charcode for separator (I don't know) which is generated by pressing
>Alt+Enter...
The character is a new line, ASCII code 10, and you could use a \n to represent
it in a regex.
But this may not even be necessary.
The functions you would use are the REGEX... functions. How you construct the
expression and exactly which function to use will depend on more specifics than
you've shared with us to date.
--ron
Ron Rosenfeld - 10 Jun 2006 11:30 GMT
>OK, i've downloaded adds-in. Which function I need to use? There is no
>charcode for separator (I don't know) which is generated by pressing
>Alt+Enter...
The character is a new line, ASCII code 10, and you could use a \n to represent
it in a regex.
But this may not even be necessary.
The functions you would use are the REGEX... functions. How you construct the
expression and exactly which function to use will depend on more specifics than
you've shared with us to date.
Expanding on that statement, we need the specifications for what substrings you
wish to extract. How are they characterized? By position? By format? etc.
For example, if the substring is a date, we would construct a regex to look for
a pattern that looks like a valid date. If the substring is a yield and always
has a % sign at the end, we would construct a regex to look for a number that
ends with a % sign.
If the substring is the first word in the third line, we would construct a
regex to look for the second instance of a word preceded by a newline
character.
etc.
--ron