Results 1 to 7 of 7

Help with a Formula to Concatenate Cell Text in a New Line and Skipping Blanks

Threaded View

odoualex Help with a Formula to... 09-01-2015, 08:20 AM
6StringJazzer Re: Help with a Formula to... 09-01-2015, 09:06 AM
odoualex Re: Help with a Formula to... 09-01-2015, 10:37 AM
6StringJazzer Re: Help with a Formula to... 09-01-2015, 10:59 AM
odoualex Re: Help with a Formula to... 09-01-2015, 11:42 AM
6StringJazzer Re: Help with a Formula to... 09-01-2015, 12:24 PM
odoualex Re: Help with a Formula to... 09-01-2015, 12:40 PM
  1. #5
    Forum Contributor
    Join Date
    03-14-2013
    Location
    Maryland, USA
    MS-Off Ver
    Excel 365
    Posts
    105

    Re: Help with a Formula to Concatenate Cell Text in a New Line and Skipping Blanks

    6StringJazzer,

    Ok, getting close, the formula is going on sheet B which is were you can see my previous explanation, you are right the formula work perfectly, the error was mine because I need to wrap the text in cell.

    So now when I put the formula in the following piece of macro it give me the following result:

    FALSEFALSEFALSEFALSEFALSEFALSEFALSEFALSE9-Outcomes:

    and this is the macro:
    Set WS3 = Worksheets("Weekly Abstraction")
            LastRow5 = WS3.Range("A" & Rows.Count).End(xlUp).Row
            With WS3
              For i2 = 2 To LastRow5
              
              If Len(Trim(.Range("B" & i2).Value)) <> 0 Then
                .Range("N24:N" & LastRow5).Value = "=IF(E.Data!S2="","",E.Data!S2&CHAR(10)) & IF(E.Data!Y2="","",E.Data!Y2&CHAR(10)) & IF(E.Data!AK2="","",E.Data!AK2&CHAR(10)) & IF(E.Data!AV2="","",E.Data!AV2&CHAR(10)) & IF(E.Data!BB2="","",E.Data!BB2&CHAR(10)) & IF(E.Data!BJ2="","",E.Data!BJ2&CHAR(10)) & IF(E.Data!BX2="","",E.Data!BX2&CHAR(10)) & IF(E.Data!CM2="","",E.Data!CM2&CHAR(10)) & E.Data!DB2"
               .Range("N24:N" & LastRow5).Value = .Range("N24:N" & LastRow5).Value
           End If
                
              Next i2
              
            End With
    I really don't know what happen

    Could you take a look at this, maybe using a macro will be better approach?

    Thanks for yor time.

    Respectfully,

    Alex
    Attached Files Attached Files

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. [SOLVED] Concatenate text with a line break
    By AnnieMcken in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 10-22-2014, 12:44 PM
  2. Replies: 7
    Last Post: 05-28-2014, 01:20 AM
  3. Replies: 1
    Last Post: 05-21-2014, 04:30 PM
  4. Line chart, skipping 0 or text entries
    By Lithium78 in forum Excel General
    Replies: 4
    Last Post: 04-23-2010, 01:27 PM
  5. Replies: 8
    Last Post: 05-18-2006, 04:40 AM
  6. Subtraction formula for consecutive cells in a column, skipping blanks
    By elton@rogers.com in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 09-15-2005, 08:05 PM
  7. Replies: 0
    Last Post: 02-22-2005, 12:06 AM

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