#1   Report Post  
dakotasteve
 
Posts: n/a
Default Nested if question


In the cell where the formula resides, I get a FALSE result. My
intention is that I get a message that says "No Deprec. this yr". My
formula is as follows:

=IF(B36<$D$23,IF(E36<D36,(1/C36*D36),"No Dep. This yr"))

If anyone can tell me where I am going wrong, please let me know.
Thanks everyone!


--
dakotasteve
------------------------------------------------------------------------
dakotasteve's Profile: http://www.excelforum.com/member.php...fo&userid=5446
View this thread: http://www.excelforum.com/showthread...hreadid=468001

  #2   Report Post  
Dave Peterson
 
Posts: n/a
Default

=IF(B36<$D$23,IF(E36<D36,(1/C36*D36),"No Dep. This yr"),"this is B36=d23")

Or maybe if you want the same message:

=if(and(b36<$d$23,E36<d36),1/c36*d36,"no dep. this yr")


dakotasteve wrote:

In the cell where the formula resides, I get a FALSE result. My
intention is that I get a message that says "No Deprec. this yr". My
formula is as follows:

=IF(B36<$D$23,IF(E36<D36,(1/C36*D36),"No Dep. This yr"))

If anyone can tell me where I am going wrong, please let me know.
Thanks everyone!

--
dakotasteve
------------------------------------------------------------------------
dakotasteve's Profile: http://www.excelforum.com/member.php...fo&userid=5446
View this thread: http://www.excelforum.com/showthread...hreadid=468001


--

Dave Peterson
  #3   Report Post  
Sandy Mann
 
Posts: n/a
Default

dakotasteve,

The Reason that you were getting FALSE as a return from your formula was
that you have not provided an option for when the 1st test was false. If
the 1st test:

=IF(B36<$D$23

is not true then XL will skip the "do is test true" part of the formula
which in your case is the ENTIRE next IF statement:

IF(E36<D36,(1/C36*D36),"No Dep. This yr")

So being as there is no other option, the formula returns FALSE


--
HTH

Sandy

Replace@mailinator with @tiscali.co.uk


"dakotasteve"
wrote in message
...

In the cell where the formula resides, I get a FALSE result. My
intention is that I get a message that says "No Deprec. this yr". My
formula is as follows:

=IF(B36<$D$23,IF(E36<D36,(1/C36*D36),"No Dep. This yr"))

If anyone can tell me where I am going wrong, please let me know.
Thanks everyone!


--
dakotasteve
------------------------------------------------------------------------
dakotasteve's Profile:
http://www.excelforum.com/member.php...fo&userid=5446
View this thread: http://www.excelforum.com/showthread...hreadid=468001



  #4   Report Post  
swatsp0p
 
Posts: n/a
Default


Without seeing your data and fully understanding what you are comparing,
I think this may meet your needs:

=IF(AND(B36<$D$23,E36<D36),(1/C36*D36),"No Dep. This yr")

as your formula looks first at B36<D23 and if true then looks at
E36<D36. If true then do the math. Therefore if either are false, "No
Dep...." should be returned.

Is this what you are trying to accomplish?

Alternately, you could simply add a second 'value_if_false' parameter,
as such:

=IF(B36<$D$23,IF(E36<D36,(1/C36*D36),"No Dep. This yr"),"No Dep. This
yr")

as you have two IF statements, you need two 'value_if_false' values,
else the default "FALSE" is returned.

Bruce


--
swatsp0p


------------------------------------------------------------------------
swatsp0p's Profile: http://www.excelforum.com/member.php...o&userid=15101
View this thread: http://www.excelforum.com/showthread...hreadid=468001

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
How do I find and replace a question mark in Excel? Ranpalandil Excel Discussion (Misc queries) 1 September 7th 05 10:20 PM
Why are my nested sub-totals are displaying incorrectly? chiefdean13 Excel Discussion (Misc queries) 1 July 20th 05 05:45 AM
IF NESTED Question Heather Excel Worksheet Functions 4 April 27th 05 12:08 PM
Hints And Tips For New Posters In The Excel Newsgroups Gary Brown Excel Worksheet Functions 0 April 15th 05 05:47 PM
An easy macro question and one I believe to be a little more diffi TroutKing Excel Worksheet Functions 3 January 18th 05 09:17 PM


All times are GMT +1. The time now is 06:18 AM.

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"