Home |
Search |
Today's Posts |
#3
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Sub ABC()
Dim rng as Range, cell as Range set rng = Range("B1",Cells(rows.count,2).End(xlup)) for each cell in rng if not iserror(cell) then cell.offset(0,1).Value = cell.Value end if Next End Sub -- Regards, Tom Ogilvy "raparipa" wrote: A B 01.01.1976 27760 #VALUE! 01.01.1978 28491 Column A has date in txt and blank but not empty cells. Column B has Formula A1*1 filled down by macro. Blank cells in column A give error. How I could make a macro that makes column C wich is like column B, but has replaced error cells with empty cells. |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Find Replace list empty | Excel Discussion (Misc queries) | |||
Replace all empty or " by the content of the cell above it | Excel Worksheet Functions | |||
Given a range of cells, some of which contain errors (e.g. #DIV/0), replace each cell having an error with the value of a non-error precedent cell | Excel Programming | |||
Need help: how to semi-automatically replace an empty value in a row with a row average? | Excel Programming |