+ Reply to Thread
Results 1 to 3 of 3

Using Char(10) With CONCATENATE & IF Statements

Hybrid View

  1. #1
    Registered User
    Join Date
    07-23-2011
    Location
    Tampa, FL
    MS-Off Ver
    Excel 2016
    Posts
    20

    Question Using Char(10) With CONCATENATE & IF Statements

    Is there any way to make this work without using VBA? I'm not near as good with VBA and it takes a lot longer for me to figure out.

    Here is what I have...

    =CONCATENATE(IF(ISBLANK(R725),"",R725&CHAR(10)),IF(ISBLANK(S725),"",S725&CHAR(10)),IF(ISBLANK(N725),"
    ",N725))

    It works just fine unless one of the cells is blank. It still puts in the return. I've tried several different ways and just can't figure it out. Any guidance is greatly appreciated!

  2. #2
    Registered User
    Join Date
    07-23-2011
    Location
    Tampa, FL
    MS-Off Ver
    Excel 2016
    Posts
    20

    Re: Using Char(10) With CONCATENATE & IF Statements

    Cancel this. I simply removed the isblank and it works fine.

    This is what I have now..

    =CONCATENATE(IF(R735="","",R735&CHAR(10)),IF(IS735="","",S735&CHAR(10)),IF(N735="","
    ",N735))

  3. #3
    Valued Forum Contributor
    Join Date
    07-23-2013
    Location
    London, England
    MS-Off Ver
    Office 365
    Posts
    988

    Re: Using Char(10) With CONCATENATE & IF Statements

    I don't find CONCATENATE very useful, and tend to just use & instead. e.g.

    =(IF(R735="","",R735&CHAR(10))&IF(IS735="","",S735&CHAR(10))&IF(N735="","",N735))

    I suspect your original problem might have been due to the difference between empty cells and cells with a formula that results in a blank value (e.g. a formula that results in ""). ISBLANK returns true for the former but FALSE for the latter.

+ 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. Remove CHAR(10) blank from CONCATENATE formula
    By OLLY-7 in forum Excel Formulas & Functions
    Replies: 13
    Last Post: 08-06-2023, 01:44 AM
  2. [SOLVED] Concatenate with forced lineshift (CHAR(10)) - Not working in VBA.
    By KSveigaard in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 04-05-2021, 05:44 PM
  3. Removing line space in Concatenate and Char(10) function
    By treesieg in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 09-18-2019, 11:43 AM
  4. Concatenate and if statements
    By etaussig in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 04-15-2015, 04:05 PM
  5. [SOLVED] Concatenate with char(10) but skip blanks
    By chirag.patel22285 in forum Excel Formulas & Functions
    Replies: 9
    Last Post: 06-03-2014, 06:59 AM
  6. CHAR(10) not being recognized when using the concatenate function
    By AKM1 in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 01-15-2013, 10:14 AM
  7. [SOLVED] 8500 cells with phone number(7 char.), wishing to add area code (10 char.)
    By moparz@gmail.com in forum Excel General
    Replies: 6
    Last Post: 03-10-2006, 01:15 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