Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 1,670
Default 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

  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 3,101
Default 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

  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 3,101
Default 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

  #4   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 3,101
Default 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

  #5   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 2,202
Default 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


  #6   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 1,670
Default Thank everyone for suggestions

Thank everyone for suggestions
Eric
  #7   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 1,670
Default How to assign nothing into a cell under if condition?

Thank everyone for suggestions
Eric
  #8   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 31
Default 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

Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Assign auto numbers based on a condition Lisa Excel Worksheet Functions 8 October 19th 06 02:46 PM
How do i assign cell A1 to show the current cursor cell in Excel? OB Excel Discussion (Misc queries) 2 October 11th 06 04:02 PM
can you assign two formulas in one cell TB Excel Worksheet Functions 3 October 5th 06 03:38 PM
how do i assign a value to a cell containing text Ani63 Excel Worksheet Functions 5 September 14th 06 08:41 PM
VBA: how to assign or pick a value in other Cell Sunantoro Excel Discussion (Misc queries) 2 September 21st 05 12:17 AM


All times are GMT +1. The time now is 02:03 AM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"