Home |
Search |
Today's Posts |
#1
Posted to microsoft.public.excel.programming
|
|||
|
|||
How to recognise "#N/A"
I have a program and I saw some of the cells having "#N/A"
I wish to have excel delete its cell content if encounter this value. eg. If activecell.value = "#N/A". However, excel gave me a "type mismatch" error. How can I overcome this? Please help. Thanks. |
#2
Posted to microsoft.public.excel.programming
|
|||
|
|||
How to recognise "#N/A"
Hi,
With following test ... =IF(ISNA(A1),"",A1) HTH Cheers Carim |
#3
Posted to microsoft.public.excel.programming
|
|||
|
|||
How to recognise "#N/A"
On Tue, 29 Aug 2006 00:18:01 -0700, ch wrote:
I have a program and I saw some of the cells having "#N/A" I wish to have excel delete its cell content if encounter this value. eg. If activecell.value = "#N/A". However, excel gave me a "type mismatch" error. How can I overcome this? Please help. Thanks. Try this: ====================== Option Explicit Sub clearNA() Dim c As Range Set c = [a1] If IsError(c.Value) Then If c.Value = CVErr(xlErrNA) Then c.ClearContents End If End If End Sub ========================= --ron |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Forum | |||
Excel - Golf - how to display "-2" as "2 Under" or "4"as "+4" or "4 Over" in a calculation cell | Excel Discussion (Misc queries) | |||
change "true" and "false" to "availble" and "out of stock" | Excel Worksheet Functions | |||
Count occurences of "1"/"0" (or"TRUE"/"FALSE") in a row w. conditions in the next | New Users to Excel | |||
How to get excel to recognise "infinity" for asymptotes in charts | Charts and Charting in Excel | |||
How can I get a data table to recognise and display "N/A"? | Excel Discussion (Misc queries) |