ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Discussion (Misc queries) (https://www.excelbanter.com/excel-discussion-misc-queries/)
-   -   How to assign nothing into a cell under if condition? (https://www.excelbanter.com/excel-discussion-misc-queries/144785-how-assign-nothing-into-cell-under-if-condition.html)

Eric

How to assign nothing into a cell under if condition?
 
Does anyone have any suggestions on how to assign nothing into a cell under
if condition? for example
If cell A1 equals to 0, then assign nothing into cell B1, else assign 10
into cell B1.
Under cell B1, if(A1=0,"",10)
In cell C1, I need to determine the value on B column by B1-20
Under cell C1, =B1-20, then it will return #VALUE!, because I assign "" for
the if condition.
Does anyone have any suggestions on what to assign in this case in order to
avoid this type of error?
Thank you in advance
Eric


Mike

How to assign nothing into a cell under if condition?
 
try this
=IF(A1=0,0,10)

"Eric" wrote:

Does anyone have any suggestions on how to assign nothing into a cell under
if condition? for example
If cell A1 equals to 0, then assign nothing into cell B1, else assign 10
into cell B1.
Under cell B1, if(A1=0,"",10)
In cell C1, I need to determine the value on B column by B1-20
Under cell C1, =B1-20, then it will return #VALUE!, because I assign "" for
the if condition.
Does anyone have any suggestions on what to assign in this case in order to
avoid this type of error?
Thank you in advance
Eric


Mike

How to assign nothing into a cell under if condition?
 
you could also use this in cell C
=IF(ISERROR(B1-20),0,B1-20)

"Eric" wrote:

Does anyone have any suggestions on how to assign nothing into a cell under
if condition? for example
If cell A1 equals to 0, then assign nothing into cell B1, else assign 10
into cell B1.
Under cell B1, if(A1=0,"",10)
In cell C1, I need to determine the value on B column by B1-20
Under cell C1, =B1-20, then it will return #VALUE!, because I assign "" for
the if condition.
Does anyone have any suggestions on what to assign in this case in order to
avoid this type of error?
Thank you in advance
Eric


Mike

How to assign nothing into a cell under if condition?
 
or
=IF(ISERROR(B1-20),"",B1-20)

"Eric" wrote:

Does anyone have any suggestions on how to assign nothing into a cell under
if condition? for example
If cell A1 equals to 0, then assign nothing into cell B1, else assign 10
into cell B1.
Under cell B1, if(A1=0,"",10)
In cell C1, I need to determine the value on B column by B1-20
Under cell C1, =B1-20, then it will return #VALUE!, because I assign "" for
the if condition.
Does anyone have any suggestions on what to assign in this case in order to
avoid this type of error?
Thank you in advance
Eric


Rick Rothstein \(MVP - VB\)

How to assign nothing into a cell under if condition?
 
or
=IF(ISERROR(B1-20),"",B1-20)


Or even... =IF(ISNUMBER(B1),B1-20,"")

Rick

Eric

Thank everyone for suggestions
 
Thank everyone for suggestions
Eric

Eric

How to assign nothing into a cell under if condition?
 
Thank everyone for suggestions
Eric

AdamV

How to assign nothing into a cell under if condition?
 
=SUM(B1,-20)

--
Adam Vero
MCP, MOS Master, MLSS, CWNA
http://veroblog.wordpress.com
http://www.meteorit.co.uk


"Eric" wrote:

Does anyone have any suggestions on how to assign nothing into a cell under
if condition? for example
If cell A1 equals to 0, then assign nothing into cell B1, else assign 10
into cell B1.
Under cell B1, if(A1=0,"",10)
In cell C1, I need to determine the value on B column by B1-20
Under cell C1, =B1-20, then it will return #VALUE!, because I assign "" for
the if condition.
Does anyone have any suggestions on what to assign in this case in order to
avoid this type of error?
Thank you in advance
Eric



All times are GMT +1. The time now is 04:00 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com