Home |
Search |
Today's Posts |
#3
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
"Ayo" wrote:
Why am I getting a #Value error with this formula: IF(OR(H220,F220),F22+H22,0) where F22=1 and H22=blank Try: =IF(OR(N(H22)0,F220),F22+N(H22),0) H22 probably only __appears__ blank, but its value might actually be the null string (""). This is quite common, e.g. =IF(G22="","",G22+E22). It also possible that F22 contains the text "1" instead of the number 1. If that is the case, you probably want to correct F22. For example, =IF(G22="","1","2") should be =IF(G22="",1,2). Alternatively, you could write N(F22) instead of F22. |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Error when cell A1 is not active and xlInsideVertical border formatthrowing error 1004 | Excel Programming | |||
Error handling error # 1004 Run-time error | Excel Programming | |||
Error Handling - On Error GoTo doesn't trap error successfully | Excel Programming | |||
Form Err.Raise error not trapped by entry procedure error handler | Excel Programming | |||
Automation Error, Unknown Error. Error value - 440 | Excel Programming |