Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 151
Default formula needs modification

=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
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 10,124
Default formula needs modification

If w32<=1 then v32 should be returned.

If w32=1 then your formula below takes over
IF(T32-U32=0,"pb",IF(AND(T32-U32=-100,T32-U32<=50),"immaterial",""))

--
Don Guillett
Microsoft MVP Excel
SalesAid Software

"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


  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 151
Default formula needs modification

That part is working fine, it's the part in the middle
--
Libby


"Don Guillett" wrote:

If w32<=1 then v32 should be returned.

If w32=1 then your formula below takes over
IF(T32-U32=0,"pb",IF(AND(T32-U32=-100,T32-U32<=50),"immaterial",""))

--
Don Guillett
Microsoft MVP Excel
SalesAid Software

"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



  #5   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 227
Default formula needs modification

I'm rather confused as to what you're looking for. A couple of
observations:

You're testing for T32-U32 to be between -100 and 50, inclusive, and
if it is you want to see "immaterial". A result of 82 is outside of
the "immaterial" range of numbers, and so *is* material.

In your example, if t (I'm assuming T32) is 2, then u (assuming U32)
*will* return "immaterial" for values between 0 and -48, which produce
results of 2 to 50.

Mark Lincoln

On Jul 20, 9:34 am, 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





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 modification yshridhar Excel Worksheet Functions 10 November 23rd 07 08:16 AM
Formula Modification No Name Excel Discussion (Misc queries) 2 May 1st 07 03:33 AM
Formula Modification No Name New Users to Excel 2 May 1st 07 03:33 AM
Formula Modification No Name Excel Worksheet Functions 2 May 1st 07 03:33 AM
Formula Modification Phil Hageman[_3_] Excel Programming 4 November 17th 03 05:56 PM


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