+ Reply to Thread
Results 1 to 4 of 4

Replace empty cells with zero in a range

  1. #1
    Forum Contributor
    Join Date
    08-19-2010
    Location
    N/A
    MS-Off Ver
    Excel 2010
    Posts
    151

    Replace empty cells with zero in a range

    Hello,

    I wish to replace empty cells values with zero in a defined range.
    I tried to use find & replace (VBA) but it did not work (cannot find empty cells).

    I found the following solution but it takes a lot of time to execute.

    Is there any solution to this that will run faster (like find & replace) ?


    Please Login or Register  to view this content.

    Thank you for your help
    Last edited by Snoopy2003; 11-23-2012 at 06:19 PM.

  2. #2
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    44,440

    Re: Replace empty cells with zero in a range

    Why don't you just select the range and then do a Replace all blank cells with zero. Record a macro while you do it.

    If you don't get "blank" cells replaced with 0, they're not blank cells.

    Regards, TMS
    Trevor Shuttleworth - Retired Excel/VBA Consultant

    I dream of a better world where chickens can cross the road without having their motives questioned

    'Being unapologetic means never having to say you're sorry' John Cooper Clarke


  3. #3
    Forum Contributor
    Join Date
    08-19-2010
    Location
    N/A
    MS-Off Ver
    Excel 2010
    Posts
    151

    Re: Replace empty cells with zero in a range

    Hello,

    Thank you for your answer.
    I tried it before but did not find any blanks.
    I figured now that there were spaces in all the "blank" cells.
    I will use find & replace.

    Thank you for your help

  4. #4
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    44,440

    Re: Replace empty cells with zero in a range

    You're welcome.

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

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