Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 7
Default Can I Designate Cells "Not Available" Without Raising an Error?

In earlier versions of Excel, the #N/A value was a useful way of
communicating "value not available". All cells derived from #N/A were
also designated #N/A.

In Excel 2003, #N/A works the same way, except that Excel now marks
all #N/A cells as errors. (i.e. Excel puts a green mark on the cell
and offers help.)

In my application, #N/A is not an error, and I don't want #N/A cells
to be marked as errors. Is there any way to make that happen?

(By the way, I know I can remove error designations by telling Excel
to ignore them, but that isn't a good solution in this case because my
code would need to parse the entire workbook for #N/A, just to ignore
errors, every time the user makes a change.)


-TC

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 35,218
Default Can I Designate Cells "Not Available" Without Raising an Error?

I'm using xl2003.

If I type #n/a in a cell formatted as General (anything but Text), excel will
convert it to #N/A.

If I preformat the cell as Text or prefix it with an apostrophe: '#n/a
then excel leaves it as text and ignores it.

=sum() will treat those first #n/a (converted to #N/A) as errors. It'll treat
the second (text versions) as text and ignore them.

I'm not sure how the #n/a gets added to your cell in your case, though.

TC wrote:

In earlier versions of Excel, the #N/A value was a useful way of
communicating "value not available". All cells derived from #N/A were
also designated #N/A.

In Excel 2003, #N/A works the same way, except that Excel now marks
all #N/A cells as errors. (i.e. Excel puts a green mark on the cell
and offers help.)

In my application, #N/A is not an error, and I don't want #N/A cells
to be marked as errors. Is there any way to make that happen?

(By the way, I know I can remove error designations by telling Excel
to ignore them, but that isn't a good solution in this case because my
code would need to parse the entire workbook for #N/A, just to ignore
errors, every time the user makes a change.)

-TC


--

Dave Peterson
  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 7
Default Can I Designate Cells "Not Available" Without Raising an Error?

Dave,

Thanks for the feedback.

To recap, I'm looking for a value I can put into cells which will
convey the meaning of "Not Available" for the cell and all cells
derived from that cell, yet will not cause the cells to be designated
as errors. In Excel 2000, the value #N/A used to do that, but in Excel
2003 #N/A is designated as an error by Excel's helpful (sarcasm) error-
checking feature, and I'm trying to avoid that.

As you reaffirmed, neither #N/A nor any text value like "#N/A" behaves
the way I want. Therefore, I still have no solution.


-TC


On Aug 25, 2:55 pm, Dave Peterson wrote:
I'm using xl2003.

If I type #n/a in a cell formatted as General (anything but Text), excel will
convert it to #N/A.

If I preformat the cell as Text or prefix it with an apostrophe: '#n/a
then excel leaves it as text and ignores it.

=sum() will treat those first #n/a (converted to #N/A) as errors. It'll treat
the second (text versions) as text and ignore them.

I'm not sure how the #n/a gets added to your cell in your case, though.





TC wrote:

In earlier versions of Excel, the #N/A value was a useful way of
communicating "value not available". All cells derived from #N/A were
also designated #N/A.


In Excel 2003, #N/A works the same way, except that Excel now marks
all #N/A cells as errors. (i.e. Excel puts a green mark on the cell
and offers help.)


In my application, #N/A is not an error, and I don't want #N/A cells
to be marked as errors. Is there any way to make that happen?


(By the way, I know I can remove error designations by telling Excel
to ignore them, but that isn't a good solution in this case because my
code would need to parse the entire workbook for #N/A, just to ignore
errors, every time the user makes a change.)


-TC


--

Dave Peterson- Hide quoted text -

- Show quoted text -


  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 35,218
Default Can I Designate Cells "Not Available" Without Raising an Error?

I didn't think I confirmed that.

I was trying to explain that if I entered '#N/A (with the leading apostrophe),
then excel saw it as plain old text.

It didn't get treated as an error.

=iserror(a1)
returned False when I did this.



TC wrote:

Dave,

Thanks for the feedback.

To recap, I'm looking for a value I can put into cells which will
convey the meaning of "Not Available" for the cell and all cells
derived from that cell, yet will not cause the cells to be designated
as errors. In Excel 2000, the value #N/A used to do that, but in Excel
2003 #N/A is designated as an error by Excel's helpful (sarcasm) error-
checking feature, and I'm trying to avoid that.

As you reaffirmed, neither #N/A nor any text value like "#N/A" behaves
the way I want. Therefore, I still have no solution.

-TC

On Aug 25, 2:55 pm, Dave Peterson wrote:
I'm using xl2003.

If I type #n/a in a cell formatted as General (anything but Text), excel will
convert it to #N/A.

If I preformat the cell as Text or prefix it with an apostrophe: '#n/a
then excel leaves it as text and ignores it.

=sum() will treat those first #n/a (converted to #N/A) as errors. It'll treat
the second (text versions) as text and ignore them.

I'm not sure how the #n/a gets added to your cell in your case, though.





TC wrote:

In earlier versions of Excel, the #N/A value was a useful way of
communicating "value not available". All cells derived from #N/A were
also designated #N/A.


In Excel 2003, #N/A works the same way, except that Excel now marks
all #N/A cells as errors. (i.e. Excel puts a green mark on the cell
and offers help.)


In my application, #N/A is not an error, and I don't want #N/A cells
to be marked as errors. Is there any way to make that happen?


(By the way, I know I can remove error designations by telling Excel
to ignore them, but that isn't a good solution in this case because my
code would need to parse the entire workbook for #N/A, just to ignore
errors, every time the user makes a change.)


-TC


--

Dave Peterson- Hide quoted text -

- Show quoted text -


--

Dave Peterson
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
Excel - Golf - how to display "-2" as "2 Under" or "4"as "+4" or "4 Over" in a calculation cell Steve Kay Excel Discussion (Misc queries) 2 August 8th 08 01:54 AM
What is Error "Method "Paste" of object "_Worksheet" failed? vat Excel Programming 7 February 17th 06 08:05 PM
"Subscript out of range" error for: Workbooks("Test1.xls").Save Just12341234 Excel Programming 2 June 17th 05 03:16 PM
"Clean Me" Macro is giving "#VALUE!" error in the Notes field. Ryan Watkins Excel Programming 1 June 11th 05 12:25 AM
Getting "compile error" "method or data member not found" on reinstall Bp Excel Programming 1 April 23rd 04 04:42 PM


All times are GMT +1. The time now is 03:54 PM.

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

About Us

"It's about Microsoft Excel"