Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
When I use this code, I'd like to divide cells, sometimes it's dividing by 0s
which results in #DIV0!, how can i make this return a zero instead? Or am I using the wrong code? Range("D59").Select ActiveCell.FormulaR1C1 = "=(R[-1]C/R[-1]C[1])" If IsError(ActiveCell.Value) Then errval = ActiveCell.Value Select Case errval Case CVErr(xlErrRef) ActiveCell.Value = 0 Case Else ' End Select End If |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Averaging without #DIV0! | Excel Worksheet Functions | |||
#VALUE & #DIV0 | Excel Worksheet Functions | |||
IRR & #DIV0! | Excel Worksheet Functions | |||
I WANT TO HIDE THIS #DIV0! | Excel Discussion (Misc queries) | |||
#DIV0/! issues | Excel Discussion (Misc queries) |