Home |
Search |
Today's Posts |
|
#1
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
Hello this is my formula =IF(Q3-P3=0,"",Q3-P3) There are not always
numbers in columns Q and P . so when P and Q are blank with this formula I get an answer of #value! . How can I correct the formula so that if P and Q are blank my answer should also be a blank cell thanks so much |
#2
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
Try using ISERROR() to work around the #VALUE
=IF(ISERROR(IF(Q3-P3=0,"",Q3-P3) ),"", IF(Q3-P3=0,"",Q3-P3) ) Generically speaking it's IF(ISERROR(Your formula goes here),Do something here,your formula goes here) -- Kevin Backmann "Wanna Learn" wrote: Hello this is my formula =IF(Q3-P3=0,"",Q3-P3) There are not always numbers in columns Q and P . so when P and Q are blank with this formula I get an answer of #value! . How can I correct the formula so that if P and Q are blank my answer should also be a blank cell thanks so much |
#3
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
Thank You Kevin PERFECT!
"Kevin B" wrote: Try using ISERROR() to work around the #VALUE =IF(ISERROR(IF(Q3-P3=0,"",Q3-P3) ),"", IF(Q3-P3=0,"",Q3-P3) ) Generically speaking it's IF(ISERROR(Your formula goes here),Do something here,your formula goes here) -- Kevin Backmann "Wanna Learn" wrote: Hello this is my formula =IF(Q3-P3=0,"",Q3-P3) There are not always numbers in columns Q and P . so when P and Q are blank with this formula I get an answer of #value! . How can I correct the formula so that if P and Q are blank my answer should also be a blank cell thanks so much |
#4
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
Check for the error and return the blank if it is an error:
=IF(ISERROR(Q3-P3),"",IF(Q3-P3=0,"",Q3-P3)) HTH, Bernie MS Excel MVP "Wanna Learn" wrote in message ... Hello this is my formula =IF(Q3-P3=0,"",Q3-P3) There are not always numbers in columns Q and P . so when P and Q are blank with this formula I get an answer of #value! . How can I correct the formula so that if P and Q are blank my answer should also be a blank cell thanks so much |
#5
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
If P and Q are blank, you'll get a blank answer, not #VALUE!, so I guess
that in your case P and/or Q aren't actually blank but have perhaps spaces or other non-printing characters. Other contributors have given ideas as to how to address the problem. -- David Biddulph "Wanna Learn" wrote in message ... Hello this is my formula =IF(Q3-P3=0,"",Q3-P3) There are not always numbers in columns Q and P . so when P and Q are blank with this formula I get an answer of #value! . How can I correct the formula so that if P and Q are blank my answer should also be a blank cell thanks so much |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
How can I make a blank cell in a formula cell with a range of cell | Excel Discussion (Misc queries) | |||
Inputting cell value from source cell based on value in adjacent cell. | Excel Discussion (Misc queries) | |||
cell data not validated if navigating cell to cell with mouse | Excel Worksheet Functions | |||
How to create/run "cell A equals Cell B put Cell C info in Cell D | Excel Discussion (Misc queries) | |||
Cell Formula reference to cell Based On third Cell Content | Excel Discussion (Misc queries) |