+ Reply to Thread
Results 1 to 5 of 5

"Blank" cells not blank after copying and pasting from Access

Hybrid View

  1. #1
    Registered User
    Join Date
    03-19-2013
    Location
    Canada
    MS-Off Ver
    Excel 2010
    Posts
    21

    Angry "Blank" cells not blank after copying and pasting from Access

    I have found similar threads all over the web but that do not discuss my exact problem.
    When copying and pasting from Access into Excel, I see blank cells that are not really blank.

    =isBlank() returns False, =code() returns #VALUE!, and =char() returns #VALUE!

    jQtmhqe.png

    When I click into a cell, there is no apparent value, the cursor goes to the far left of the cell. When I highlight the "empty" cells and press delete, the isBlank function returns True.

    Therefore, there is something there, but it is not a hidden character as discussed in other threads. It seems to be something else . . .

    The problem does not occur when exporting data out of Access and then copy and pasting into Excel. The problem only seems to occur when copying and pasting directly from Access to Excel with null values.

    Interestingly, the countif function sees the cells as non-blank but the sumproduct function sees them as blank (presumably because of the number format coercion e.g. sumproduct(--(something),--(something else))

    Any ideas on how to prevent this from happening?

  2. #2
    Forum Expert martindwilson's Avatar
    Join Date
    06-23-2007
    Location
    London,England
    MS-Off Ver
    office 97 ,2007
    Posts
    19,320

    Re: "Blank" cells not blank after copying and pasting from Access

    see here
    http://blog.contextures.com/archives...from-database/
    "Unless otherwise stated all my comments are directed at OP"

    Mojito connoisseur and now happily retired
    where does code go ?
    look here
    how to insert code

    how to enter array formula

    why use -- in sumproduct
    recommended reading
    wiki Mojito

    how to say no convincingly

    most important thing you need
    Martin Wilson: SPV
    and RSMBC

  3. #3
    Registered User
    Join Date
    03-19-2013
    Location
    Canada
    MS-Off Ver
    Excel 2010
    Posts
    21

    Re: "Blank" cells not blank after copying and pasting from Access

    Quote Originally Posted by martindwilson View Post
    Those suggestions are all workarounds. So there is no way to have Excel treat null data from an Access copy and paste properly?

  4. #4
    Registered User
    Join Date
    10-21-2014
    Location
    Derby, England
    MS-Off Ver
    2010
    Posts
    15

    Re: "Blank" cells not blank after copying and pasting from Access

    The 'empty' cells contain ZLS' (Zero Length String)

    Solution is either:

    1. use your Access queries to replace "" with NULL.
    2. link to the data source from Excel.
    3. export the data to Excel.
    4. use Excel formulas to sort the ZLS.

    Gregg

  5. #5
    Registered User
    Join Date
    03-19-2013
    Location
    Canada
    MS-Off Ver
    Excel 2010
    Posts
    21

    Re: "Blank" cells not blank after copying and pasting from Access

    Quote Originally Posted by GregThePeg View Post
    The 'empty' cells contain ZLS' (Zero Length String)

    Solution is either:

    1. use your Access queries to replace "" with NULL.
    2. link to the data source from Excel.
    3. export the data to Excel.
    4. use Excel formulas to sort the ZLS.

    Gregg
    Thanks, it all makes sense now. Though it is frustrating that the issue exists when dealing with data across Microsoft products.

+ 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] Replace all BLANK cells in column with header title "Balance" to "0"
    By ks100 in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 02-21-2014, 09:25 AM
  2. Replies: 2
    Last Post: 04-29-2013, 04:20 AM
  3. Replies: 0
    Last Post: 03-05-2013, 09:22 AM
  4. Pivot Table Field - Blank Cells without text "(blank)"
    By WRX in forum Excel Charting & Pivots
    Replies: 2
    Last Post: 01-19-2013, 12:10 PM
  5. [SOLVED] copying "blank" cells
    By Silvabod in forum Excel General
    Replies: 4
    Last Post: 04-24-2006, 01:00 PM

Tags for this Thread

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