Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Hi
How would I change or modify this code to look for all empty cell an make them equal to 0. eg From this: A B 2 To look like this A B 2 0 Code ------------------- lastrow = Cells(Rows.Count, "A").End(xlUp).Row For i = 3 To 31 Step 2 For j = 3 To lastrow Step 1 With Cells((j), (i)) If j = Val("") Then ' or j < 0 Then Cells(j) = 0 End If End With Next Nex ------------------- I have tried different things but keep them this "#VALUE! -- Message posted from http://www.ExcelForum.com |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
How can I make a Chart data series treat blanks as "Empty" cells | Charts and Charting in Excel | |||
How do I make sure all empty columns are present in a .csv file? | Excel Worksheet Functions | |||
How to make Excel Chart not to display empty cells? | Charts and Charting in Excel | |||
How to make Excel Chart not to display empty cells? | Excel Discussion (Misc queries) | |||
How to make empty cells as zero in excel add-ins for SQL Server an | Excel Worksheet Functions |