+ Reply to Thread
Results 1 to 11 of 11

Copy non blanks to another sheet

  1. #1
    Forum Contributor
    Join Date
    04-22-2012
    Location
    Australia
    MS-Off Ver
    Excel 2016
    Posts
    329

    Copy non blanks to another sheet

    Good day all,
    My next conundrum! Without going into too much detail, I have a large list of numbers on one sheet (Sheet1) that I need to copy to another sheet (Sheet2) without copying any blanks. Is there a formula that I can put into sheet2 that will automatically update without including blanks? I've attached an example workbook to help further ok, as always thanks for any assistance - Marco
    Attached Files Attached Files
    Last edited by matrixpom; 04-11-2018 at 08:13 PM.

  2. #2
    Forum Moderator
    Join Date
    01-21-2014
    Location
    St. Joseph, Illinois U.S.A.
    MS-Off Ver
    Office 365 v 2403
    Posts
    13,406

    Re: Copy non blanks to another sheet

    No workbook.
    Dave

  3. #3
    Banned User!
    Join Date
    02-05-2015
    Location
    San Escobar
    MS-Off Ver
    any on PC except 365
    Posts
    12,168

    Re: Copy non blanks to another sheet

    Use PowerQuery (Get&Transform) built-in feature of Ex2016

  4. #4
    Forum Contributor
    Join Date
    04-22-2012
    Location
    Australia
    MS-Off Ver
    Excel 2016
    Posts
    329

    Re: Copy non blanks to another sheet

    Sorry Guys , now attached in original post

  5. #5
    Forum Moderator
    Join Date
    01-21-2014
    Location
    St. Joseph, Illinois U.S.A.
    MS-Off Ver
    Office 365 v 2403
    Posts
    13,406

    Re: Copy non blanks to another sheet

    Will have a look.

    Also please don't edit posts after there have been replies. In "messes" with the logic flow of the conversation.

  6. #6
    Forum Moderator
    Join Date
    01-21-2014
    Location
    St. Joseph, Illinois U.S.A.
    MS-Off Ver
    Office 365 v 2403
    Posts
    13,406

    Re: Copy non blanks to another sheet

    Withdrawn by FR.
    Last edited by FlameRetired; 04-11-2018 at 08:43 PM.

  7. #7
    Forum Moderator
    Join Date
    01-21-2014
    Location
    St. Joseph, Illinois U.S.A.
    MS-Off Ver
    Office 365 v 2403
    Posts
    13,406

    Re: Copy non blanks to another sheet

    In this formula the range is set from row 4 to 100. Make it larger to future-proof added data if needed.

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


    This is a resource heavy formula for that many cells.

    If it were me I would go with sandy's Pivot table solution and a small macro that updates upon changing the source data.
    Attached Files Attached Files
    Last edited by FlameRetired; 04-11-2018 at 09:02 PM.

  8. #8
    Forum Contributor
    Join Date
    04-22-2012
    Location
    Australia
    MS-Off Ver
    Excel 2016
    Posts
    329

    Re: Copy non blanks to another sheet

    Thanks guys, I will give it a try later today...think I may ultimately go with the pivot table as suggested though, thanks again guys & have a great day! - Marco

  9. #9
    Banned User!
    Join Date
    02-05-2015
    Location
    San Escobar
    MS-Off Ver
    any on PC except 365
    Posts
    12,168

    Re: Copy non blanks to another sheet

    @Dave,
    PivotTable doesn't work in this case because PT treat source as one single table and result is Table also so blanks cannot be removed

    You formula is doing this, treat each column individually
    PowerQuery read source as table but result must be in separated column

    I don't know what is better... much faster (to do ) is with your formula (except excel slow down with too many rows)

  10. #10
    Forum Moderator
    Join Date
    01-21-2014
    Location
    St. Joseph, Illinois U.S.A.
    MS-Off Ver
    Office 365 v 2403
    Posts
    13,406

    Re: Copy non blanks to another sheet

    Yeah, I "stood on my head" trying to find a non-array formula. Never found it.

    The only other approach I could come up with was many-step-non-automatic.

    I suspect if someone with VBA skill looked at this they could make short work of it.

  11. #11
    Forum Expert avk's Avatar
    Join Date
    07-12-2007
    Location
    India
    MS-Off Ver
    Microsoft Office 2013
    Posts
    3,223

    Re: Copy non blanks to another sheet

    While going through your data, there are so many blank cells in various column & row.
    You want to copy non blank data. For reduce the file / formula size, if you go with criteria then it will reduce the size. Instead of whole sheet extract non blank data.
    But let me know the basic for what / which purpose of this data.


    atul


    If my answer (or that of other members) has helped you, please say "Thanks" by clicking the Add Reputation button at the foot of one of their posts.

    Also: if your problem is solved, please take the time to mark your thread as SOLVED by going to the top of your first post, selecting "Thread Tools" and then "Mark thread as solved".

+ 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. [SOLVED] VBA Macro - Copy information from one sheet to another skipping blanks
    By ksky88 in forum Excel Programming / VBA / Macros
    Replies: 8
    Last Post: 10-12-2017, 08:00 AM
  2. [SOLVED] Copy and paste random cells values from a range to another sheet column with no blanks
    By macquhele in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 09-17-2015, 06:05 PM
  3. Replies: 5
    Last Post: 07-31-2013, 01:50 AM
  4. [SOLVED] Copy data from one sheet to another while skipping blanks and certain rows
    By gawk1980 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 02-15-2013, 07:34 AM
  5. [SOLVED] Copy data from one sheet to another while skipping blanks and certain rows
    By gawk1980 in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 02-14-2013, 01:21 PM
  6. Scan a Column A (numbers and blanks) and copy its contents WITHOUT BLANKS into Column B
    By bighandsam in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 07-12-2012, 05:16 PM
  7. Replies: 6
    Last Post: 02-03-2012, 05:44 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