Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
TTB TTB is offline
external usenet poster
 
Posts: 1
Default Excel - Negative nested if then conditions

Help, my formulas does not seem to calculate negative numbers. If a= 91 then
result is 30 days.

=if(a<-90,"-90days",if(a<-60,"-60days","30 days"))
--
TTB Thanks!
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 23
Default Excel - Negative nested if then conditions

TTB,

You need to give the formula a complete cell reference A1, or A2, not just A.

=if(a1<-90,"-90days",if(a1<-60,"-60days","30 days"))

Also if you want -90 to return "-90days", and -60 to return "-60days", then
you will need to replace "<" with "<=" like this:

=if(a<=-90,"-90days",if(a<=-60,"-60days","30 days"))

Hope this helps.

Ryan

"TTB" wrote:

Help, my formulas does not seem to calculate negative numbers. If a= 91 then
result is 30 days.

=if(a<-90,"-90days",if(a<-60,"-60days","30 days"))
--
TTB Thanks!

  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 8,651
Default Excel - Negative nested if then conditions

That's correct.
91<-90 is false
91<-60 is false
"30 days" is the correct answer from the formula.

If a were -91 you would get "-90days"
If a were -61 or -89 you would get "-60days"
--
David Biddulph

TTB wrote:
Help, my formulas does not seem to calculate negative numbers. If a=
91 then result is 30 days.

=if(a<-90,"-90days",if(a<-60,"-60days","30 days"))



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
Nested IF Statement 3 Conditions, Need Help Fixing [email protected] Excel Discussion (Misc queries) 7 May 8th 08 03:32 PM
nested if based on nested if in seperate sheet. how? scouserabbit Excel Worksheet Functions 5 March 2nd 07 04:03 PM
Nested if statement with over 7 conditions - VBA? Isa Excel Discussion (Misc queries) 2 January 19th 07 08:41 PM
I want to have a nested IF with two conditions Mahendra Excel Discussion (Misc queries) 2 September 1st 05 12:24 AM
Nested IF functions and 3 conditions Dixie Excel Worksheet Functions 7 April 22nd 05 04:47 AM


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