+ Reply to Thread
Results 1 to 5 of 5

Copying a list without blanks

  1. #1
    Registered User
    Join Date
    03-26-2020
    Location
    Lansing, MI
    MS-Off Ver
    365
    Posts
    3

    Copying a list without blanks

    Hello,

    I've been so close to figuring this out several times, but can't quite get it to work as I envision. Here's the premise:
    Column A has labels, Column B has data
    Not all rows have data so it would look like this:

    Label A : Data A
    Label B:
    Label C: Data C
    Label D: Data D
    Label E:

    Etc...

    I need a copy of column A and B together (Label A: Data A) available for copy/paste, but omitting blank rows resulting in:
    Label A: Data A
    Label C: Data C
    Label D: Data D

    I've built an indexed array, but because I have a formula joining Label and Data, it doesn't recognize the blank lines.
    Nor could I find the correct script to ONLY copy until the first blank value.
    I've tried advanced filters without success.
    Ideally I need this tied to a macro or a button to just copy the valid range to keep it simple for my audience that will be using this consistently.

    Any help is appreciated!

  2. #2
    Banned User!
    Join Date
    02-26-2020
    Location
    US
    MS-Off Ver
    2010
    Posts
    157

    Re: Copying a list without blanks

    Hi try:

    Formula: copy to clipboard
    Please Login or Register  to view this content.


    Formula: copy to clipboard
    Please Login or Register  to view this content.

  3. #3
    Forum Expert
    Join Date
    10-06-2008
    Location
    Canada
    MS-Off Ver
    2007 / 2013
    Posts
    5,525

    Re: Copying a list without blanks

    It assumes that the empty cells in Column B are indeed blank.
    Change references as required.
    Please Login or Register  to view this content.

  4. #4
    Forum Expert sintek's Avatar
    Join Date
    12-04-2015
    Location
    Cape Town
    MS-Off Ver
    2013 | 2016 | 2019
    Posts
    13,234

    Re: Copying a list without blanks

    Why not simply...Or are we missing something?
    Please Login or Register  to view this content.
    Good Luck
    I don't presume to know what I am doing, however, just like you, I too started somewhere...
    One-day, One-problem at a time!!!
    If you feel I have helped, please click on the star to left of post [Add Reputation]
    Also....add a comment if you like!!!!
    And remember...Mark Thread as Solved.
    Excel Forum Rocks!!!

  5. #5
    Registered User
    Join Date
    03-26-2020
    Location
    Lansing, MI
    MS-Off Ver
    365
    Posts
    3

    Re: Copying a list without blanks

    That worked! Thanks RChad!

+ 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. Replies: 8
    Last Post: 09-15-2016, 05:11 PM
  2. Replies: 8
    Last Post: 06-15-2016, 09:53 AM
  3. [SOLVED] Copying values without blanks
    By ddaann182 in forum Excel General
    Replies: 2
    Last Post: 09-29-2014, 03:38 PM
  4. [SOLVED] Copying cells but not blanks
    By Cmorgan in forum Excel - New Users/Basics
    Replies: 2
    Last Post: 05-28-2013, 05:18 AM
  5. Generate a list without blanks from a list with blanks
    By Tpmoss1 in forum Excel General
    Replies: 2
    Last Post: 11-28-2012, 04:35 PM
  6. Copying certain cells if there are blanks formula
    By Saber in forum Excel Formulas & Functions
    Replies: 12
    Last Post: 08-11-2010, 09:19 AM
  7. Copying data into another column but without blanks
    By sandydude4u in forum Excel General
    Replies: 2
    Last Post: 05-31-2007, 04:12 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