Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 77
Default Parse Before Line Break

I could use some help making a formula to return all characters before a
carriage return [or an alt-enter or Char (10), depending on how you referr to
it].

The Cell has a lot of text in it and can have more than 1 carriage return in
it...

Any ideas?
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 1,240
Default Parse Before Line Break

Josh O. wrote:
I could use some help making a formula to return all characters before a
carriage return [or an alt-enter or Char (10), depending on how you referr to
it].

The Cell has a lot of text in it and can have more than 1 carriage return in
it...

Any ideas?



=LEFT(A1,FIND(CHAR(10),A1)-1)
  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 5,934
Default Parse Before Line Break

If the text in A1 (or another cell if this formula is copied down) does not
have a Line Feed, your formula will error out. This is probably the simplest
fix to your formula for that possibility...

=LEFT(A1,FIND(CHAR(10),A1&CHAR(10))-1)

--
Rick (MVP - Excel)


"Glenn" wrote in message
...
Josh O. wrote:
I could use some help making a formula to return all characters before a
carriage return [or an alt-enter or Char (10), depending on how you
referr to it].

The Cell has a lot of text in it and can have more than 1 carriage return
in it...

Any ideas?



=LEFT(A1,FIND(CHAR(10),A1)-1)


  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 1,766
Default Parse Before Line Break

Hi,

You can also use Data Text to columns. Select delimited and then click
Next. On the next screen, uncheck tab and check the "Other" box. In the
box next to Other, do the following

Alt+010 (on the numeric keypad)

--
Regards,

Ashish Mathur
Microsoft Excel MVP
www.ashishmathur.com

"Josh O." wrote in message
...
I could use some help making a formula to return all characters before a
carriage return [or an alt-enter or Char (10), depending on how you referr
to
it].

The Cell has a lot of text in it and can have more than 1 carriage return
in
it...

Any ideas?


Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Line break GARY Excel Discussion (Misc queries) 1 November 6th 07 12:00 AM
Break cell into multiple lines by line break Chia Excel Discussion (Misc queries) 1 August 20th 06 06:37 AM
Parse data where break is a first uppercase character in a string? Glen Excel Worksheet Functions 5 April 16th 06 07:28 PM
Line Break Ramthebuffs Excel Discussion (Misc queries) 4 August 22nd 05 08:52 PM
Trend Line - break bob Excel Worksheet Functions 1 June 29th 05 09:24 PM


All times are GMT +1. The time now is 06:58 AM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"