+ Reply to Thread
Results 1 to 5 of 5

How do I fill one column with what is in another column with empty cells removed?

  1. #1
    Registered User
    Join Date
    04-08-2004
    Posts
    39

    How do I fill one column with what is in another column with empty cells removed?

    Hello everyone,

    In one column, I have comments to a survey that looks like this:

    Its great
    Its stinks
    (empty cell)
    It needs work
    (empty cell)
    I see no problem

    I would like these comments to be automatically populated in another column but with the empty cells removed so that it will look like this:

    Its great
    It stinks
    It needs work
    I see no problem

    How can I do this? And for extra credit, how can I have each comment put in quotation marks (“ “)?

    Thanks as always for sharing your expertise.

    Frank

  2. #2
    Forum Expert swatsp0p's Avatar
    Join Date
    10-07-2004
    Location
    Kentucky, USA
    MS-Off Ver
    Excel 2010
    Posts
    1,545
    In B1 enter this formula (assumes your data begins in A1)

    =IF(A1="","",""""&A1&"""")

    Empty cells remain empty, otherwise the quote is enclosed in quotation marks.

    Copy this down your entire column of data.

    Now, Sort your A:A range Ascending, all blanks in B:B get sorted to the bottom.

    Good Luck
    Bruce
    The older I get, the better I used to be.
    USA

  3. #3
    Registered User
    Join Date
    04-08-2004
    Posts
    39
    This is a good start, but I need Excel to get rid of blanks without me having to do anything manually like sorting the column. Any ideas? Thanks.

  4. #4
    Forum Expert swatsp0p's Avatar
    Join Date
    10-07-2004
    Location
    Kentucky, USA
    MS-Off Ver
    Excel 2010
    Posts
    1,545
    What you ask, then, would require a macro (VBA code). Is that the route you want to go?

  5. #5
    Registered User
    Join Date
    04-08-2004
    Posts
    39
    Hahaha! That sounds like you are asking me if I am ready to go on a dangerous adventure. I have no VBA experience, but if you give me the general idea, a couple of helpful websites and the help of great folks like yourself at this forum, I think I could muddle through.

    So yes, please let me know how. Thank you.

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

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