#1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 397
Default Error types

last one....

How do you say if cell a1 is error type #value, then put "x"?

Also how do you say if cell a1 is an error, put y?

Thanks

D

*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 27,285
Default Error types

if Range("A1").Text = "#VALUE!" then
' put x where?

if iserror(Range("A1").Value) then
' put y where?

--
Regards,
Tom Ogilvy

"Darin Kramer" wrote in message
...
last one....

How do you say if cell a1 is error type #value, then put "x"?

Also how do you say if cell a1 is an error, put y?

Thanks

D

*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!



  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 11,272
Default Error types

If Range("A1").Value = CVErr(xlErrValue) Then
Range("A1").Value = "x"
ElseIf Iserror(Range("A1").Value) Then
Range("A1").Value = "y"
End If


--

HTH

RP
(remove nothere from the email address if mailing direct)


"Darin Kramer" wrote in message
...
last one....

How do you say if cell a1 is error type #value, then put "x"?

Also how do you say if cell a1 is an error, put y?

Thanks

D

*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!



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
error bars types Office_user Charts and Charting in Excel 1 January 11th 10 12:44 PM
error bar types Office_user Charts and Charting in Excel 1 January 10th 10 06:47 PM
Excel 2007 error "some chart types cannot be combined with other chart types. Select a different chart types" roadsidetree Charts and Charting in Excel 15 June 2nd 09 10:53 AM
What does ISERROR look at besides the 7 Error Types? Bob Excel Worksheet Functions 5 November 17th 06 06:27 PM
Counting the number of Error Types Bob Excel Worksheet Functions 3 November 16th 06 06:01 PM


All times are GMT +1. The time now is 08:43 PM.

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"