Blank fields

G

Guest

Guest
Is there a way to leave a resultant field blank when I have a simple computation done from input field but sometimes no input is made so I don't need anything to show up?

example:

I have a field1 that takes a number, then field2 that checks that number against a table, and may or may not compute another number against it. If I don't put a number in field1, I still get a #N/A or O in field2.

I'd like to get nothing in field2 if nothing was put in field1 although field2 does some math.

Thanks
 

Excel Facts

How to show all formulas in Excel?
Press Ctrl+` to show all formulas. Press it again to toggle back to numbers. The grave accent is often under the tilde on US keyboards.
Hi
You could word your formulas so that any error returned a zero instead of N/A.
eg =if(iserror(your formula),0,your formula).
Then custom format your cells so that zeros are not displayed eg General;; (that is General followed by 2 semi-colons - this will then only display positive numbers)
If you have formulas in a cell you cannot return them to a totally blank state except by clearing those cells.
Hope this helps
regards
Derek
This message was edited by Derek on 2002-03-08 05:26
This message was edited by Derek on 2002-03-08 05:27
 
Upvote 0
You solve your problem if you use an:
IF function followed by one ISSOMETHING function in your field2
i.e: field1 = the first cell of a worksheet (A1) type in your field2 the following line:

=if(ISNUMBER(A1),A1,"")

You can also use:
=if(ISNA(A1),"",A1)

It is easy if you use the Fx (insert function) button in the toolbar.

Good luck,
Pierre
 
Upvote 0
Is there a way to leave a resultant field blank when I have a simple computation done from input field but sometimes no input is made so I don't need anything to show up?

No. All worksheet functions MUST return "something" even if its a null or empty text string, "".
 
Upvote 0

Forum statistics

Threads
1,214,424
Messages
6,119,407
Members
448,894
Latest member
spenstar

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top