Jul 17, 2003 #1 derekstewart MIS Joined May 21, 2003 Messages 64 Location US I would like to replace empty cells in excel with zero. Anyone know how to do this? Thanks.
Jul 17, 2003 #2 Jooky68 Programmer Joined Jul 10, 2002 Messages 231 Location US if range("whatever cell".value="" then range("the cell".value=0 but im sure there is a much easier way to do this Upvote 0 Downvote
if range("whatever cell".value="" then range("the cell".value=0 but im sure there is a much easier way to do this
Jul 17, 2003 #3 xlbo MIS Joined Mar 26, 2002 Messages 15,080 Location GB Select the area CTRL+F Leave it blank and select "Entire cells Only" Click replace Enter 0 Rplace all or being as we are in the VBA forum Range("A1:A100".Replace What:="", Replacement:="0", LookAt:=xlWhole, _ SearchOrder:=xlByRows, MatchCase:=False, SearchFormat:=False, _ ReplaceFormat:=False Rgds, Geoff Si hoc legere scis, nimis eruditionis habes Want the best answers to your questions ? - then read me baby one more time - faq222-2244 Upvote 0 Downvote
Select the area CTRL+F Leave it blank and select "Entire cells Only" Click replace Enter 0 Rplace all or being as we are in the VBA forum Range("A1:A100".Replace What:="", Replacement:="0", LookAt:=xlWhole, _ SearchOrder:=xlByRows, MatchCase:=False, SearchFormat:=False, _ ReplaceFormat:=False Rgds, Geoff Si hoc legere scis, nimis eruditionis habes Want the best answers to your questions ? - then read me baby one more time - faq222-2244