+ Reply to Thread
Results 1 to 9 of 9

Help to Fix FIND CHAR(10) Formula

  1. #1
    Registered User
    Join Date
    10-20-2010
    Location
    costa rica
    MS-Off Ver
    Office365
    Posts
    28

    Help to Fix FIND CHAR(10) Formula

    Hi Guys,

    Could you please help me to find what I missing in the following formula :

    =IFERROR(LEFT(A2,FIND(CHAR(10),A2)-1),A2)

    The result of this is CERO and I want to have nothing

    Capture.JPG

    example.xlsx

  2. #2
    Forum Expert dosydos's Avatar
    Join Date
    12-09-2015
    Location
    Massachusetts
    MS-Off Ver
    365(PC) V:2308
    Posts
    1,472

    Re: Help to Fix FIND CHAR(10) Formula

    Change the end to "" instead of A2

    =IFERROR(LEFT(A2,FIND(CHAR(10),A2)-1),"")
    <----- If you are happy with your solution please click on the "* Add Reputation" as a way to say thank you.

  3. #3
    Registered User
    Join Date
    10-20-2010
    Location
    costa rica
    MS-Off Ver
    Office365
    Posts
    28

    Re: Help to Fix FIND CHAR(10) Formula

    Quote Originally Posted by dosydos View Post
    Change the end to "" instead of A2

    =IFERROR(LEFT(A2,FIND(CHAR(10),A2)-1),"")
    Thanks for the quick reply dosydos. Do you know what need to be added to keep the result for example :

    Capture2.JPG

    With the Original formula I have the text as result , but if A2 have text but with the new formula "" at the end is blank . There is a possibility to have the text but if A2 is blank avoid cero ?

  4. #4
    Forum Expert dosydos's Avatar
    Join Date
    12-09-2015
    Location
    Massachusetts
    MS-Off Ver
    365(PC) V:2308
    Posts
    1,472

    Re: Help to Fix FIND CHAR(10) Formula

    whoops sorry about that try this formula instead:

    =IFERROR(LEFT(A2,FIND(CHAR(10),A2)-1),IF(A2="","",A2))

  5. #5
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2403
    Posts
    44,029

    Re: Help to Fix FIND CHAR(10) Formula

    One way:

    =IFERROR(LEFT(A2,FIND(CHAR(10),A2)-1),A2)&""
    Glenn




    None of us get paid for helping you... we do this for fun. So DON'T FORGET to say "Thank You" to all who have freely given some of their time to help YOU.

    Temporary addition of accented to illustrate ongoing problem to the TT: L? fh?ile P?draig sona dhaoibh

  6. #6
    Registered User
    Join Date
    10-20-2010
    Location
    costa rica
    MS-Off Ver
    Office365
    Posts
    28

    Re: Help to Fix FIND CHAR(10) Formula

    Ohh god you are amazing thanks a lot !!

  7. #7
    Registered User
    Join Date
    10-20-2010
    Location
    costa rica
    MS-Off Ver
    Office365
    Posts
    28

    Re: Help to Fix FIND CHAR(10) Formula

    Quote Originally Posted by dosydos View Post
    whoops sorry about that try this formula instead:

    =IFERROR(LEFT(A2,FIND(CHAR(10),A2)-1),IF(A2="","",A2))
    Ohh god you are amazing thanks a lot !!

  8. #8
    Registered User
    Join Date
    10-20-2010
    Location
    costa rica
    MS-Off Ver
    Office365
    Posts
    28

    Re: Help to Fix FIND CHAR(10) Formula

    Quote Originally Posted by Glenn Kennedy View Post
    One way:

    =IFERROR(LEFT(A2,FIND(CHAR(10),A2)-1),A2)&""
    This works too thanks a lot Glenn!!

  9. #9
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2403
    Posts
    44,029

    Re: Help to Fix FIND CHAR(10) Formula

    It seems that you are no longer using Excel 2003. Please update your profile.

    You're welcome.



    It would be very nice if you were to just click the Add Reputation button at the foot of any of the posts of members who helped you reach a solution.

    Finally, if that takes care of your original question, please click on "Thread Tools" from the menu link (just above the first post in the thread) and mark this thread as SOLVED.

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Formula to find a value in a chart
    By Cairol in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 07-10-2020, 11:16 AM
  2. Replies: 3
    Last Post: 09-12-2016, 01:44 PM
  3. Replies: 2
    Last Post: 11-03-2015, 09:28 AM
  4. find a row in a chart
    By bulkodave in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 06-14-2015, 05:15 AM
  5. Replies: 3
    Last Post: 01-02-2014, 07:56 AM
  6. Trying to find corresponding value on a table/chart
    By Maverick3176 in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 09-21-2012, 08:49 AM
  7. Replies: 2
    Last Post: 11-26-2009, 03:54 PM

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1