Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 4
Default Check error cell in C#

Hi, All,

Some cells may be error, such as #REF!. How to know which cell is in error?

Thanks,
-Andrew
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 24
Default Check error cell in C#

Assuming this is a question in Excel and not C#, you can key in this
formula in another cell.

Say you key in this formula in Cell N10:
=IF (ISNA(D10), 1, IF(ISERR(D10), 1, 0) )

then, whenever cell D10 gets a # error (such as #REF! #NA etc) cell
N10 will get a 1. If no error, cell N10 will be 0.

Hope this helps.
-feltra


On Jan 9, 9:33 pm, Andrew HUANG
wrote:
Hi, All,

Some cells may be error, such as #REF!. How to know which cell is in error?

Thanks,
-Andrew


  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 24
Default Check error cell in C#

On reading your post again, I realised that you may be intereted in
finding out "WHICH" cell is in error and not just HOW to find out
whether a cell is in error?

Well, only way i know is to go thru cell by cell for the desired range
and find out...

-feltra


On Jan 9, 9:33 pm, Andrew HUANG
wrote:
Hi, All,

Some cells may be error, such as #REF!. How to know which cell is in error?

Thanks,
-Andrew


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
Copy and move check box (check boxes) with new cell link? Marty Excel Worksheet Functions 1 January 20th 10 07:43 PM
Check for error.type in same cell art Excel Worksheet Functions 2 May 13th 09 06:14 AM
Color cell if spell check finds an error LiveUser Excel Worksheet Functions 3 January 15th 08 08:50 PM
Check if Conditional Format is True or False / Check cell Color Kevin McCartney Excel Worksheet Functions 5 June 29th 07 11:12 AM
How to check whether cell has #REF ! error? Vinit[_2_] Excel Programming 2 August 5th 05 06:50 AM


All times are GMT +1. The time now is 01:57 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"