A Microsoft Office (Excel, Word) forum. OfficeFrustration

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » OfficeFrustration forum » Microsoft Excel » General Discussion
Site Map Home Register Authors List Search Today's Posts Mark Forums Read  

Nested if question



 
 
Thread Tools Display Modes
  #1  
Old September 15th, 2005, 08:34 PM
dakotasteve
external usenet poster
 
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(E36D36,(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  
Old September 15th, 2005, 09:13 PM
swatsp0p
external usenet poster
 
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,E36D36),(1/C36*D36),"No Dep. This yr")

as your formula looks first at B36D23 and if true then looks at
E36D36. 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(E36D36,(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

  #3  
Old September 15th, 2005, 09:19 PM
Dave Peterson
external usenet poster
 
Posts: n/a
Default

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

Or maybe if you want the same message:

=if(and(b36$d$23,E36d36),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(E36D36,(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
  #4  
Old September 15th, 2005, 09:47 PM
Sandy Mann
external usenet poster
 
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(E36D36,(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(E36D36,(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



 




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
How do I find and replace a question mark in Excel? Ranpalandil General Discussion 1 September 7th, 2005 10:20 PM
passing data from a Form to a nested Form at deep 3 Tran Using Forms 2 December 23rd, 2004 05:02 PM
How to gray-out a question dialog box S_Kaplan General Discussion 3 October 26th, 2004 12:11 AM
Word question regarding TOC (newbie question)... Herman Geerlings Formatting Long Documents 4 June 4th, 2004 03:12 PM
Designing a question paper Ken New Users 2 April 28th, 2004 10:13 PM


All times are GMT +1. The time now is 07:54 PM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 OfficeFrustration.
The comments are property of their posters.