Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
DLZ217
 
Posts: n/a
Default Ignoring #DIV/0! in a formula

Is it possible to ignore a cell in a formula if the data is #DIV/0 ive tried
messing around with IF statements but I cant seem to figure it out
  #2   Report Post  
Jerry W. Lewis
 
Posts: n/a
Default

=IF(ISERROR(cellref),erroraction,noerroraction)
=IF(ISNUMBER(cellref),noerroraction,erroraction)

You can also use it in range functions, such as
=SUM(IF(ISNUMBER(range),range))
but you must array enter (Ctrl-Shift-Enter)

Jerry

DLZ217 wrote:

Is it possible to ignore a cell in a formula if the data is #DIV/0 ive tried
messing around with IF statements but I cant seem to figure it out


  #3   Report Post  
Harlan Grove
 
Posts: n/a
Default

"Jerry W. Lewis" wrote...
=IF(ISERROR(cellref),erroraction,noerroraction)
=IF(ISNUMBER(cellref),noerroraction,erroraction )

You can also use it in range functions, such as
=SUM(IF(ISNUMBER(range),range))
but you must array enter (Ctrl-Shift-Enter)

....

Masking all errors is usually not a good idea. It's not all that difficult
to isolate just the #DIV/0! error.

=IF(COUNT(1/(ERROR.TYPE(x)=2)),error_return,nonerror_return)

=SUM(IF(ISERROR(1/(ERROR.TYPE(rng)=2)),rng))

Better still would be to trap the condition giving rise to the #DIV/0! error
values, such as trapping zero denominators or stats calculated from ranges
containing no numbers.


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
Creating a check mark box MarthaSue Setting up and Configuration of Excel 18 April 28th 05 12:31 AM
Named SUM Formula with relative refernce(s) Werner Rohrmoser Excel Worksheet Functions 2 April 20th 05 04:56 PM
Frequency formula Curious Excel Worksheet Functions 1 April 12th 05 09:49 PM
I want a formula to ignore text eg 5mts * 5 ignoring the mts any . Malshenton Excel Discussion (Misc queries) 1 January 14th 05 07:59 PM
Cell shows formula and not the result of the formula. stumpy1220 Excel Worksheet Functions 2 January 14th 05 05:11 PM


All times are GMT +1. The time now is 12:44 AM.

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"