Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
 
Posts: n/a
Default Getting rid of error messages while using IF statements

Hello,

I have a series of relatively simple formulas, set up in a complex
manner that are returning errors on me.

I have an assumptions sheet that the first formula makes reference to.
Sometimes a cell in the assumptions will be blank, and sometimes it
won't as the data changes. the first formula is:

A10
=1/Assumptions!AB18

Now if the cell in Assumptions!AB18 happens to be blank, the next
formula will return a #DIV/0 error:

C10
=$A10*C$3

Finally, if there is a 0 or #DIV/0 in C10 then the formula in E10 will
error out as well.

E10
=IF(D10="",$A10*D$3,($A10-((D10/2)*$A10))*D$3)

I realize this may be troublesome to get the mind around. But is there
any way, in the last formula (E10) to tell it to do nothing if C10 is
blank? And the same for C10, and then the same for A10?

  #2   Report Post  
Posted to microsoft.public.excel.misc
Dave O
 
Posts: n/a
Default Getting rid of error messages while using IF statements

You can generally get around this type of hurdle with an IF statement:
for instance
=IF(Assumptions!AB18=0,"",1/Assumptions!AB18)
This returns a blank if AB18 equals zero, and performs the division if
AB18 is not zero.

Can you use that logic to flow through the various calculations in your
sprdsht?

  #3   Report Post  
Posted to microsoft.public.excel.misc
 
Posts: n/a
Default Getting rid of error messages while using IF statements

**********
You can generally get around this type of hurdle with an IF statement:
for instance
=IF(Assumptions!AB18=0,"",1/Assumptions!AB18)
This returns a blank if AB18 equals zero, and performs the division if
AB18 is not zero.

Can you use that logic to flow through the various calculations in your

sprdsht?
***********

Unfortunately not. Having it display a blank is recognized by excel,
which then in turn causes the other cells to display a #VALUE error.

***********
Hi,

You could use something like


=IF(ISERROR(C10),"",$A10*D$3,($A10-((D10/2)*$A10))*D$3)


This will give you a blank in case C10 is #DIV/0

Regards,
Bondi
**********
Much appreciated but unfortunately the formula does not work - too many
arguements.

  #4   Report Post  
Posted to microsoft.public.excel.misc
 
Posts: n/a
Default Getting rid of error messages while using IF statements

I tried mucking this around as it has promise but really cant get it to
work.

=IF(ISERROR(C10),"",$A10*D$3,($A10-((D10/2)*$A10))*D$3)

to

=IF(ISERROR(C10),"",(if(c10<"",$A10*D$3,($A10-((D10/2)*$A10))*D$3)))

Which worked :) Thanks so much for the headstart!

  #5   Report Post  
Posted to microsoft.public.excel.misc
Bondi
 
Posts: n/a
Default Getting rid of error messages while using IF statements

Hi,

You could use something like

=IF(ISERROR(C10),"",$A10*D$3,($A10-((D10/2)*$A10))*D$3)

This will give you a blank in case C10 is #DIV/0

Regards,
Bondi



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
UDFunctions and nested If-the-else statements JDB Excel Worksheet Functions 1 January 25th 06 03:29 PM
How do I sum percentages calculated from IF statements? Rusty T Excel Worksheet Functions 3 November 9th 05 10:02 PM
Linking two IF statements together trixma Excel Discussion (Misc queries) 2 September 29th 05 06:07 AM
Better Way to Code IF Statements? TheRobsterUK Excel Discussion (Misc queries) 4 July 18th 05 03:37 PM
Nested IF statements John Simons Excel Worksheet Functions 14 February 16th 05 06:17 AM


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