+ Reply to Thread
Results 1 to 9 of 9

Copy only non-blank cells

  1. #1
    Registered User
    Join Date
    11-08-2011
    Location
    Worcester
    MS-Off Ver
    Excel 2007
    Posts
    6

    Question Copy only non-blank cells

    Hi, I've got a sheet with data in varying positions. I want to copy them all to a new sheet and have them all in one column. I've looked at some of the other examples here but they're terribly advanced.

    Thank you
    Attached Files Attached Files
    Last edited by kosie345; 06-11-2021 at 02:14 AM.

  2. #2
    Forum Moderator - RIP Richard Buttrey's Avatar
    Join Date
    01-14-2008
    Location
    Stockton Heath, Cheshire, UK
    MS-Off Ver
    Office 365, Excel for Windows 2010 & Excel for Mac
    Posts
    29,464

    Re: Copy only non-blank cells

    Hi,

    You've not given us much to work with.

    Please upload a workbook or a representative cut down copy, anonymised if necessary. It is always easier to advise if we can see your request in its context.

    Show a before and after situation with manually calculated results, explaining which information is data and which is results, and if it's not blindingly obvious how you have arrived at your results some explanatory notes as well.

    To upload a file click the Go Advanced button at the foot of your post, look underneath the post area for the Manage Attachments section and take it from there.Hi,

    Remember that when you ask a question in a forum those of us who might be able to help know absolutely nothing about your system and work process or the terminology you use. Unless you have uploaded a workbook we know nothing about how it is laid out and little about what you want done with it or how the results should be presented.

    Whilst these things are second nature to you since you live with the workbook all the working day we start with zero knowledge so you need to take us by the hand and explain in quite precise detail your aims and goals as well as stuff like how your data might look different in other situations.
    Don't assume we are able to "figure it out". We're usually quite good but not psychic.

    Put yourself in our position and think about whether what you've posted makes sense and is unambiguous to someone who's never seen it before.
    You are asking us for help so help us to be able to help you by providing all the information we need, even if that information seems obvious or intuitive to you.
    Richard Buttrey

    RIP - d. 06/10/2022

    If any of the responses have helped then please consider rating them by clicking the small star icon below the post.

  3. #3
    Forum Expert PaulM100's Avatar
    Join Date
    10-09-2017
    Location
    UK
    MS-Off Ver
    Office 365
    Posts
    2,108

    Re: Copy only non-blank cells

    The formula here https://www.excelforum.com/excel-gen...le-column.html , thanks to samba_ravi, helped me in the past.

    I've modified it to contain your range and put it in A2:
    Please Login or Register  to view this content.
    Click the * to say thanks.

  4. #4
    Registered User
    Join Date
    11-08-2011
    Location
    Worcester
    MS-Off Ver
    Excel 2007
    Posts
    6

    Re: Copy only non-blank cells

    I hope this makes more sense.
    Attached Files Attached Files

  5. #5
    Registered User
    Join Date
    11-08-2011
    Location
    Worcester
    MS-Off Ver
    Excel 2007
    Posts
    6

    Re: Copy only non-blank cells

    I can't get this to work. I've pasted it into cell A2 but I don't get the numbers from each row.

  6. #6
    Forum Expert
    Join Date
    05-05-2015
    Location
    UK
    MS-Off Ver
    Microsoft Excel for Microsoft 365 MSO (Version 2402 Build 16.0.17328.20068) 64-bit
    Posts
    28,180

    Re: Copy only non-blank cells

    Row 11 has 29 and 55

    What is expected in C11 ?

  7. #7
    Forum Expert
    Join Date
    07-20-2011
    Location
    Mysore, India.
    MS-Off Ver
    Excel 2019
    Posts
    8,586

    Re: Copy only non-blank cells

    Pl see file. In C5 then copied.

    =IFERROR(INDEX(ACW1781CSV!5:5,AGGREGATE(15,6,COLUMN(ACW1781CSV!$C5:$BL5)/(ACW1781CSV!$C5:$BL5>0),COLUMNS($C5:C5))),"")
    Attached Files Attached Files
    Pl note
    Array formula should be confirmed with Ctrl+Shift+Enter keys together.
    If answere is satisfactory press * to add reputation.

  8. #8
    Forum Moderator - RIP Richard Buttrey's Avatar
    Join Date
    01-14-2008
    Location
    Stockton Heath, Cheshire, UK
    MS-Off Ver
    Office 365, Excel for Windows 2010 & Excel for Mac
    Posts
    29,464

    Re: Copy only non-blank cells

    Are these two names truly representative? Why do they repeat?

    What do you mean by "These blank cells I need to remove for all the rows below but they're all in varying locations."
    It's not at all clear, at least to me. Your results sheet should accurately reflect what you want to end up with.

  9. #9
    Registered User
    Join Date
    11-08-2011
    Location
    Worcester
    MS-Off Ver
    Excel 2007
    Posts
    6

    Re: Copy only non-blank cells

    This works perfectly! Thank you so much.

+ 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] copy values down to all blank cells stopping when full row is blank.
    By fireguy7 in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 03-12-2018, 02:35 PM
  2. [SOLVED] Copy Cells to available blank cells in rows below loop
    By lee1000d in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 03-17-2015, 02:21 PM
  3. VBA: Copy non-blank and paste to separate sheet ONLY blank cells (running list)
    By brolsen in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 10-10-2014, 03:34 PM
  4. copy abbreviated format add a , add a cells value and paste to only blank cells
    By kleptilian in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 09-23-2014, 02:26 PM
  5. [SOLVED] Auto insert blank row. (blank copy of row that includes merged cells)
    By rutts in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 11-22-2013, 07:48 PM
  6. [SOLVED] Find first non-blank cell after a group of blanks copy offset cells, find next blank, loop
    By gwsampso in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 10-21-2012, 06:11 AM
  7. [SOLVED] copy cells automatically to next blank cells in another sheet'
    By slohman in forum Excel - New Users/Basics
    Replies: 5
    Last Post: 04-21-2012, 12:29 PM

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