#1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 151
Default problem with formula

=IF(W32=1,IF(T32-U32=0,"pb",IF(AND(T32-U32=-100,T32-U32<=50),"immaterial","")),V32)

The above formula works as is, however if the number in u is between 0 and
-100 then it doesn't return immaterial. For example if t=2 and u= -80 then
2-(-80) = 82 which isn't material but it should be. Should I use an absolute
value or something--
Libby

--
Libby
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 2,345
Default problem with formula

Libby,

T32-U32=-100
means bigger than -100, well -99 is BIGGER then -100, -1 is BIGGER
then -100, 1 is BIGGER then -100 and so 82 is BIGGER than -100

Did you mean :
T32-U32<=-100

--
HTH

Sandy
In Perth, the ancient capital of Scotland
and the crowning place of kings


Replace @mailinator.com with @tiscali.co.uk


"Libby" wrote in message
...
=IF(W32=1,IF(T32-U32=0,"pb",IF(AND(T32-U32=-100,T32-U32<=50),"immaterial","")),V32)

The above formula works as is, however if the number in u is between 0 and
-100 then it doesn't return immaterial. For example if t=2 and u= -80
then
2-(-80) = 82 which isn't material but it should be. Should I use an
absolute
value or something--
Libby

--
Libby



  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 3,268
Default problem with formula

If T = 2 and u = -80

that is 82 but your criteria is = - 100 which it passes AND <= 50 which is
doesn't since 82 is greater than 50 not less than or equal

However that doesn't matter since your formula fails regardless

for what condition do you want it to return V32 and for what do you want it
to return ""?

=IF(AND(W32=1,T32-U32=0),"pb",IF(AND(T32-U32=-100,T32-U32<=50),"immaterial",""))




--
Regards,

Peo Sjoblom




"Libby" wrote in message
...
=IF(W32=1,IF(T32-U32=0,"pb",IF(AND(T32-U32=-100,T32-U32<=50),"immaterial","")),V32)

The above formula works as is, however if the number in u is between 0 and
-100 then it doesn't return immaterial. For example if t=2 and u= -80
then
2-(-80) = 82 which isn't material but it should be. Should I use an
absolute
value or something--
Libby

--
Libby



  #4   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 151
Default problem with formula

I guess what I mean is that is t-u or u-t is <=50 and = -100 should be
immaterial and t-u or u-t is 50 or < -100 is left blank
--
Libby


"Libby" wrote:

=IF(W32=1,IF(T32-U32=0,"pb",IF(AND(T32-U32=-100,T32-U32<=50),"immaterial","")),V32)

The above formula works as is, however if the number in u is between 0 and
-100 then it doesn't return immaterial. For example if t=2 and u= -80 then
2-(-80) = 82 which isn't material but it should be. Should I use an absolute
value or something--
Libby

--
Libby

  #5   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 2,202
Default problem with formula

=IF(W32=1,IF(T32-U32=0,"pb",IF(AND(T32-U32=-100,T32-U32<=50),"immaterial","")),V32)

The above formula works as is, however if the number in u is between 0 and
-100 then it doesn't return immaterial. For example if t=2 and u= -80
then
2-(-80) = 82 which isn't material but it should be. Should I use an
absolute
value or something--


Look at the innermost IF function call...

IF(AND(T32-U32=-100,T32-U32<=50),"immaterial","")

When T32=2 and U=-80, your and condition evaluates to FALSE... you have the
"immaterial" text in the TRUE part of the function call, not the FALSE part
where your post seems to indicate you want it.

Rick



  #6   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 151
Default problem with formula

I guess what I mean is that is t-u or u-t is <=50 and = -100 should be
immaterial and t-u or u-t is 50 or < -100 is left blank
--
Libby


"Rick Rothstein (MVP - VB)" wrote:

=IF(W32=1,IF(T32-U32=0,"pb",IF(AND(T32-U32=-100,T32-U32<=50),"immaterial","")),V32)

The above formula works as is, however if the number in u is between 0 and
-100 then it doesn't return immaterial. For example if t=2 and u= -80
then
2-(-80) = 82 which isn't material but it should be. Should I use an
absolute
value or something--


Look at the innermost IF function call...

IF(AND(T32-U32=-100,T32-U32<=50),"immaterial","")

When T32=2 and U=-80, your and condition evaluates to FALSE... you have the
"immaterial" text in the TRUE part of the function call, not the FALSE part
where your post seems to indicate you want it.

Rick


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
Formula problem Nancy E Excel Discussion (Misc queries) 4 May 11th 07 06:47 PM
Formula Problem roxiemayfield Excel Worksheet Functions 2 May 9th 07 04:25 PM
formula problem [email protected] uk Excel Worksheet Functions 2 August 14th 06 02:43 AM
problem with formula wu-fu Excel Discussion (Misc queries) 1 July 10th 05 10:22 PM
Problem with formula IF(C5="", "",NOW()) Ruslan Excel Discussion (Misc queries) 3 February 15th 05 01:07 PM


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