+ Reply to Thread
Results 1 to 18 of 18

Paste Values empty cell, not empty

  1. #1
    Registered User
    Join Date
    04-18-2013
    Location
    United Kingdom
    MS-Off Ver
    Office 365
    Posts
    90

    Paste Values empty cell, not empty

    Hi, on Sheet 1 of my spreadsheet I have some formulas that leave the cell blank if no information is in column A, I have done this by ending my formula with "",

    I then copy the Sheet 1 and paste the Values it into Sheet 2, I then want to get rid of all the blank Cells but when I press F5, select special and then blanks, I then press delete but it does not recognise my 'blank spaces' as Blank.

    I hope I have explained this ok and someone can help me.

    Thanks.

    Regards,

    Warston.

  2. #2
    Forum Moderator alansidman's Avatar
    Join Date
    02-02-2010
    Location
    Steamboat Springs, CO
    MS-Off Ver
    MS Office 365 Version 2404 Win 11 Home 64 Bit
    Posts
    23,865

    Re: Paste Values empty cell, not empty

    That is because they are not blank. They contain an empty string, ie. "" or more exactly, they contain your formula which presents visually what looks like an empty cell.
    Alan עַם יִשְׂרָאֵל חַי


    Change an Ugly Report with Power Query
    Database Normalization
    Complete Guide to Power Query
    Man's Mind Stretched to New Dimensions Never Returns to Its Original Form

  3. #3
    Registered User
    Join Date
    04-18-2013
    Location
    United Kingdom
    MS-Off Ver
    Office 365
    Posts
    90

    Re: Paste Values empty cell, not empty

    Thanks alansidman, is there any way I can delete multiple cells that contain hidden "".

    Warston.

  4. #4
    Forum Contributor
    Join Date
    06-21-2012
    Location
    United States
    MS-Off Ver
    Excel 2010
    Posts
    191

    Re: Paste Values empty cell, not empty

    Is it feasible to return 0 instead of "", and then filter out the 0s?
    Please remember to hit the Add Reputation for any member that has been helpful.

  5. #5
    Forum Moderator alansidman's Avatar
    Join Date
    02-02-2010
    Location
    Steamboat Springs, CO
    MS-Off Ver
    MS Office 365 Version 2404 Win 11 Home 64 Bit
    Posts
    23,865

    Re: Paste Values empty cell, not empty

    If you click on the cell, does it actually contain "" or does it contain a formula that says display "". I'm thinking the latter.

    If this is the case, you may have to do a copy and paste special to get the values in the cells instead of the formulas. Then delete all having the value "".
    Last edited by alansidman; 03-26-2015 at 02:55 PM.

  6. #6
    Registered User
    Join Date
    04-18-2013
    Location
    United Kingdom
    MS-Off Ver
    Office 365
    Posts
    90

    Re: Paste Values empty cell, not empty

    on the sheet where I have pasted values it does not show as anything, either in the cell or in the formula bar.

  7. #7
    Forum Contributor
    Join Date
    06-21-2012
    Location
    United States
    MS-Off Ver
    Excel 2010
    Posts
    191

    Re: Paste Values empty cell, not empty

    Quote Originally Posted by alansidman View Post
    If you click on the cell, does it actually contain "" or does it contain a formula that says display "". I'm thinking the latter.
    Test this with a simple formula that returns "". Copy and paste the value, and then run =isblank on the new cell where you pasted the value. You get FALSE.

  8. #8
    Registered User
    Join Date
    04-18-2013
    Location
    United Kingdom
    MS-Off Ver
    Office 365
    Posts
    90

    Re: Paste Values empty cell, not empty

    Thanks soberguy, I can leave them as 0 but how can I delete multiple rows that contain 0

  9. #9
    Forum Contributor
    Join Date
    06-21-2012
    Location
    United States
    MS-Off Ver
    Excel 2010
    Posts
    191

    Re: Paste Values empty cell, not empty

    Quote Originally Posted by warston View Post
    on the sheet where I have pasted values it does not show as anything, either in the cell or in the formula bar.
    Correct, but the cell is not blank. This is easily verified.

    Can you return a different value with the formula that you can then filter out? Return 0, or "Filter Out", or "Ignore me" or something of the sort?

  10. #10
    Forum Contributor
    Join Date
    06-21-2012
    Location
    United States
    MS-Off Ver
    Excel 2010
    Posts
    191

    Re: Paste Values empty cell, not empty

    Try using autofilter and then sort --> delete all the 0s in one batch?

  11. #11
    Registered User
    Join Date
    04-18-2013
    Location
    United Kingdom
    MS-Off Ver
    Office 365
    Posts
    90

    Re: Paste Values empty cell, not empty

    Yes soberguy, I get an answer of false

  12. #12
    Forum Moderator alansidman's Avatar
    Join Date
    02-02-2010
    Location
    Steamboat Springs, CO
    MS-Off Ver
    MS Office 365 Version 2404 Win 11 Home 64 Bit
    Posts
    23,865

    Re: Paste Values empty cell, not empty

    Here is a short macro that will look at your range of values and if it finds "", it will clear the contents of that cell.

    Please Login or Register  to view this content.
    I am not sure what you mean by delete the cell and this is the closest I can come to make that happen without physically deleting the cell, which would move all the data around. I don't think that is what you meant.

  13. #13
    Forum Contributor
    Join Date
    06-21-2012
    Location
    United States
    MS-Off Ver
    Excel 2010
    Posts
    191

    Re: Paste Values empty cell, not empty

    I think he's looking for c.entirerow.delete, if a VBA solution is the route he elects to go.

  14. #14
    Registered User
    Join Date
    04-18-2013
    Location
    United Kingdom
    MS-Off Ver
    Office 365
    Posts
    90

    Re: Paste Values empty cell, not empty

    Yes soberguy, I am looking to delete the entire row or should I say multiple rows and thanks alansidan for your input but I am not keen on using VBA, I was hoping to use something like F5, special and delete blank rows.

    Regards,

    Warston.

  15. #15
    Forum Contributor
    Join Date
    06-21-2012
    Location
    United States
    MS-Off Ver
    Excel 2010
    Posts
    191

    Re: Paste Values empty cell, not empty

    I think your best bet is to use the autofilter and sort, and then manually delete them in a large batch. Not nearly as quick as a VBA solution, but effective nonetheless.

  16. #16
    Registered User
    Join Date
    04-18-2013
    Location
    United Kingdom
    MS-Off Ver
    Office 365
    Posts
    90

    Re: Paste Values empty cell, not empty

    Thank you both for your help.

    Regards,

    Warston.

  17. #17
    Forum Moderator alansidman's Avatar
    Join Date
    02-02-2010
    Location
    Steamboat Springs, CO
    MS-Off Ver
    MS Office 365 Version 2404 Win 11 Home 64 Bit
    Posts
    23,865

    Re: Paste Values empty cell, not empty

    I agree with Warston's post #15 if you are looking to go the non-vba route. If you change your mind and want the VBA route, post back and we can modify the example given.

  18. #18
    Registered User
    Join Date
    12-23-2020
    Location
    NYC
    MS-Off Ver
    10
    Posts
    1

    Re: Paste Values empty cell, not empty

    The VBA method mentioned above is the only thing that works. Thank you to the legend who posted that.

+ 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: 1
    Last Post: 05-26-2014, 01:31 PM
  2. Need to find empty filled cells in a column and copy to the empty cell below
    By Grahamfeeley in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 03-30-2014, 10:09 AM
  3. Copy/Paste to Next Empty Row Overwriting Previous Row When Column A Is Empty
    By grantfitz in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 06-19-2013, 04:34 PM
  4. Paste into specified cell if empty, if not go to next empty in row
    By Dan23cd in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 02-19-2013, 02:27 PM
  5. Copy values from cell in active row, paste in first empty cell in spesified column.
    By Test123Test in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 02-19-2012, 05:20 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