+ Reply to Thread
Results 1 to 15 of 15

Creating List to Copy and ignore formula blanks

  1. #1
    Registered User
    Join Date
    04-28-2012
    Location
    eng
    MS-Off Ver
    Office 365
    Posts
    47

    Creating List to Copy and ignore formula blanks

    Hi all

    See attachment Example 1

    In Cell I8 (merged Cell) im trying to populate a list that can be copied and pasted - ideally a list with line breaks for formatting reasons,

    the sheet works that when someone tickets the relevant boxes in Column D it will populate the text in I8 - i have created the checks in columns U-W, W has the check formula if the box is ticked and returns the relevant value we would add, but this also gives blanks to be ignored, but the blanks are based on "" - i would also at the end like to add the "Notes" if entered in C18

    I can use forumla's to enter into the box, but it creates terrible formatting - any idea's?
    Attached Files Attached Files

  2. #2
    Forum Expert Pepe Le Mokko's Avatar
    Join Date
    05-14-2009
    Location
    Belgium
    MS-Off Ver
    O365 v 2402
    Posts
    13,448

    Re: Creating List to Copy and ignore formula blanks

    Could you please add expected results manually
    Using merged cells is a bad idea, they are nothing but trouble;

  3. #3
    Registered User
    Join Date
    04-28-2012
    Location
    eng
    MS-Off Ver
    Office 365
    Posts
    47

    Re: Creating List to Copy and ignore formula blanks

    Merged cell was for visibility

    but i've attached a "work around" that allows it to show how i'd like and populate
    Attached Files Attached Files

  4. #4
    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,053

    Re: Creating List to Copy and ignore formula blanks

    Agree withPepe. However, you have two options.

    1. A helper column (which can, of course, be hidden).

    2. VBA.

    You choose.
    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

  5. #5
    Valued Forum Contributor Sadath31's Avatar
    Join Date
    03-02-2011
    Location
    Dammam, Saudi Arabia
    MS-Off Ver
    Office 365
    Posts
    452

    Re: Creating List to Copy and ignore formula blanks

    Hi
    to populate I8 with line break =TEXTJOIN(CHAR(10),TRUE,$W$5:$W$15)

    or =TEXTJOIN(",",TRUE,$W$5:$W$15) to populate with coma separated.

  6. #6
    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,053

    Re: Creating List to Copy and ignore formula blanks

    No TEXTJOIN in Excel 2010.

  7. #7
    Registered User
    Join Date
    04-28-2012
    Location
    eng
    MS-Off Ver
    Office 365
    Posts
    47

    Re: Creating List to Copy and ignore formula blanks

    Quote Originally Posted by Glenn Kennedy View Post
    No TEXTJOIN in Excel 2010.
    i should add I also use Office 365 =/

  8. #8
    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,053

    Re: Creating List to Copy and ignore formula blanks

    Then update your profile, which shows Excel 2010.

  9. #9
    Registered User
    Join Date
    04-28-2012
    Location
    eng
    MS-Off Ver
    Office 365
    Posts
    47

    Re: Creating List to Copy and ignore formula blanks

    Quote Originally Posted by Sadath31 View Post
    Hi
    to populate I8 with line break =TEXTJOIN(CHAR(10),TRUE,$W$5:$W$15)

    or =TEXTJOIN(",",TRUE,$W$5:$W$15) to populate with coma separated.
    this works well for excel - but formatting disappears on copy and paste - maybe trying to do too much from excel?

  10. #10
    Registered User
    Join Date
    04-28-2012
    Location
    eng
    MS-Off Ver
    Office 365
    Posts
    47

    Re: Creating List to Copy and ignore formula blanks

    Quote Originally Posted by Glenn Kennedy View Post
    Then update your profile, which shows Excel 2010.
    Done - apologies only switched to 365 a few weeks back, forgot the old profile :D

  11. #11
    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,053

    Re: Creating List to Copy and ignore formula blanks

    Can you answer the q at post 4.

  12. #12
    Registered User
    Join Date
    04-28-2012
    Location
    eng
    MS-Off Ver
    Office 365
    Posts
    47

    Re: Creating List to Copy and ignore formula blanks

    Quote Originally Posted by Glenn Kennedy View Post
    Agree withPepe. However, you have two options.

    1. A helper column (which can, of course, be hidden).

    2. VBA.

    You choose.
    I don't mind either, but i try to avoid VBA if at all possible due to people disabling Macro's - so helper column would be preferable?

  13. #13
    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,053

    Re: Creating List to Copy and ignore formula blanks

    OK. In W5, copied down:
    =IF(U5="","",TRIM(W4&IF(U5=TRUE," "&V5&CHAR(10),"")))

    and in I8 (enable text wrapping):
    =TRIM(LOOKUP(2,1/($W$5:$W$20<>""),$W$5:$W$20))
    Attached Files Attached Files

  14. #14
    Registered User
    Join Date
    04-28-2012
    Location
    eng
    MS-Off Ver
    Office 365
    Posts
    47

    Re: Creating List to Copy and ignore formula blanks

    Quote Originally Posted by Glenn Kennedy View Post
    OK. In W5, copied down:
    =IF(U5="","",TRIM(W4&IF(U5=TRUE," "&V5&CHAR(10),"")))

    and in I8 (enable text wrapping):
    =TRIM(LOOKUP(2,1/($W$5:$W$20<>""),$W$5:$W$20))
    Thanks - I think i can get this to work in a formatting stand point!

  15. #15
    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,053

    Re: Creating List to Copy and ignore formula blanks

    You're welcome.



    If that takes care of your original question, please select "Thread Tools" from the menu link above and mark this thread as SOLVED.

    It'd also be appreciated if you were to click the Add Reputation button at the foot of any of the posts of all members who helped you reach a solution.

+ 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. Data Validation List - how to ignore blanks?
    By Blancorn in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 11-25-2019, 07:02 PM
  2. [SOLVED] Formula to return items from a list with a value greater than 0 and ignore blanks
    By ZEROCOOL UK in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 03-26-2018, 11:13 AM
  3. Unique list - ignore blanks and text
    By pauldaddyadams in forum Excel General
    Replies: 6
    Last Post: 02-18-2015, 05:57 AM
  4. Replies: 3
    Last Post: 05-08-2013, 07:16 AM
  5. Ignore blanks when sorting a list
    By JamesT1 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 05-22-2010, 09:29 AM
  6. Validation List ignore blanks (formula)
    By portmontreal in forum Excel General
    Replies: 2
    Last Post: 07-16-2009, 02:52 PM
  7. list first instances only & ignore blanks in ROWS
    By dant in forum Excel General
    Replies: 2
    Last Post: 12-12-2008, 05:45 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