Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 19
Default Nested IF Statement 3 Conditions, Need Help Fixing

I am trying to set it up so that depending on the value of W2 it will
return .00075, .005, or .003:

=IF(AND(W21095=TRUE,W2<1461=TRUE),
0.00075),IF(AND(W21500=TRUE,W2<2000=TRUE),
0.005),IF(AND(W22500=TRUE,W2<3000=TRUE),0.003)

I get a #VALUE! error.

Thanks!!

What this does is takes a value in another cell that represents the
difference between two dates and then calculates the payment ratio.
I'd love to incorporate the entire formula into one cell but the task
seems daunting so I use a helper column.
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 846
Default Nested IF Statement 3 Conditions, Need Help Fixing

modifing your formula
=IF(AND(W21095,W2<1461),0.00075,IF(AND(W21500,W2 <2000),0.005,IF(AND(W22500,W2<3000),0.003,"")))

There are alot of numbers that you don't specify what the value should be.

The above equation will make the cell blank for these other numbers...
--
Wag more, bark less


" wrote:

I am trying to set it up so that depending on the value of W2 it will
return .00075, .005, or .003:

=IF(AND(W21095=TRUE,W2<1461=TRUE),
0.00075),IF(AND(W21500=TRUE,W2<2000=TRUE),
0.005),IF(AND(W22500=TRUE,W2<3000=TRUE),0.003)

I get a #VALUE! error.

Thanks!!

What this does is takes a value in another cell that represents the
difference between two dates and then calculates the payment ratio.
I'd love to incorporate the entire formula into one cell but the task
seems daunting so I use a helper column.

  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 9,101
Default Nested IF Statement 3 Conditions, Need Help Fixing

You don't need True or false as part of the AND. You were getting
TRUE=FALSE. Also your If's need to be nested, I changed where the parethesis
are located

=IF(AND(W21095,W2<1461),0.00075,IF(AND(W21500,W2 <2000),0.005,IF(AND(W22500,W2<3000),0.003)))


" wrote:

I am trying to set it up so that depending on the value of W2 it will
return .00075, .005, or .003:

=IF(AND(W21095=TRUE,W2<1461=TRUE),
0.00075),IF(AND(W21500=TRUE,W2<2000=TRUE),
0.005),IF(AND(W22500=TRUE,W2<3000=TRUE),0.003)

I get a #VALUE! error.

Thanks!!

What this does is takes a value in another cell that represents the
difference between two dates and then calculates the payment ratio.
I'd love to incorporate the entire formula into one cell but the task
seems daunting so I use a helper column.

  #4   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 19
Default Nested IF Statement 3 Conditions, Need Help Fixing

You guys are terrific, I post and within minutes have two responses.
Solutions worked perfectly, thanks for taking the time I really
appreciate it!
  #5   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 846
Default Nested IF Statement 3 Conditions, Need Help Fixing

What would be nice would be for you to mark that our answers "answered" your
question - I would appreciate it....
--
Wag more, bark less


" wrote:

You guys are terrific, I post and within minutes have two responses.
Solutions worked perfectly, thanks for taking the time I really
appreciate it!



  #6   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 127
Default Nested IF Statement 3 Conditions, Need Help Fixing

=IF(AND(W21095,W2<1461),0.00075,IF(AND(W21500,W2 <2000),0.005,IF(AND(W22500,W2<3000),0.003,"")))

BUT....what happens if W2 is between 1461 and 1500? what happens if W2 is
between 2000 and 2500?


wrote in message
...
I am trying to set it up so that depending on the value of W2 it will
return .00075, .005, or .003:

=IF(AND(W21095=TRUE,W2<1461=TRUE),
0.00075),IF(AND(W21500=TRUE,W2<2000=TRUE),
0.005),IF(AND(W22500=TRUE,W2<3000=TRUE),0.003)

I get a #VALUE! error.

Thanks!!

What this does is takes a value in another cell that represents the
difference between two dates and then calculates the payment ratio.
I'd love to incorporate the entire formula into one cell but the task
seems daunting so I use a helper column.



  #7   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 1,311
Default Nested IF Statement 3 Conditions, Need Help Fixing

If those are the only three possible conditions, then you can simplify a
little:

=IF(AND(W21095,W2<1461),0.00075,IF(AND(W21500,W2 <2000),0.005,0.003))


However, if W2 can fall out side of the ranges you specified, then you
should specify the final FALSE condition:

=IF(AND(W21095,W2<1461),0.00075,IF(AND(W21500,W2 <2000),0.005,IF(AND(W22500,W2<3000),0.003,"")))

HTH,
Paul



--

wrote in message
...
I am trying to set it up so that depending on the value of W2 it will
return .00075, .005, or .003:

=IF(AND(W21095=TRUE,W2<1461=TRUE),
0.00075),IF(AND(W21500=TRUE,W2<2000=TRUE),
0.005),IF(AND(W22500=TRUE,W2<3000=TRUE),0.003)

I get a #VALUE! error.

Thanks!!

What this does is takes a value in another cell that represents the
difference between two dates and then calculates the payment ratio.
I'd love to incorporate the entire formula into one cell but the task
seems daunting so I use a helper column.



  #8   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 8,651
Default Nested IF Statement 3 Conditions, Need Help Fixing

Your syntax is wrong. Look at the placing of your parentheses.

Try
=IF(AND(W21095=TRUE,W2<1461=TRUE),
0.00075,IF(AND(W21500=TRUE,W2<2000=TRUE),
0.005,IF(AND(W22500=TRUE,W2<3000=TRUE),0.003)))

Also, you haven't defined a result for all cases, so you could use
=IF(AND(W21095=TRUE,W2<1461=TRUE),
0.00075,IF(AND(W21500=TRUE,W2<2000=TRUE),
0.005,IF(AND(W22500=TRUE,W2<3000=TRUE),0.003,"und efined output")))
--
David Biddulph

wrote in message
...
I am trying to set it up so that depending on the value of W2 it will
return .00075, .005, or .003:

=IF(AND(W21095=TRUE,W2<1461=TRUE),
0.00075),IF(AND(W21500=TRUE,W2<2000=TRUE),
0.005),IF(AND(W22500=TRUE,W2<3000=TRUE),0.003)

I get a #VALUE! error.

Thanks!!

What this does is takes a value in another cell that represents the
difference between two dates and then calculates the payment ratio.
I'd love to incorporate the entire formula into one cell but the task
seems daunting so I use a helper column.



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 what if statement brian Excel Worksheet Functions 1 April 23rd 07 12:11 AM
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
Nested If statement Jock W Excel Worksheet Functions 3 March 22nd 05 06:56 PM


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