Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 11
Default Too many arguements?

I have a formula I'm trying to get to work. Here is what I have so far (it
doesn't work yet):
=IF(C39=0,"",IF(R39=V,IF(AR39<=0,"Y",IF(AR39=0,"N ")),IF(AA39<=0,"Y",IF(AA39=1,"N"))))

I need the formula to look at column C first. If it's a 0 then display
nothing in column Q (where this formula is placed). If there's a 1 in column
C, I need the formula to look at column R for either a V or an R.
If it's a V do this function: R39=V,IF(AR39<=0,"Y",IF(AR39=0,"N"
If it's an R, do this function: IF(AA39<=0,"Y",IF(AA39=1,"N"

Any help would be great! Thanks.
--
Gary
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 3,440
Default Too many arguements?

Hi Gary,

You can always build a formula in several (or even many) simple steps and
than later, if really necessary (really, really necessary, otherwise,
DON'T!), integrate those intermediate formulas into one.
Just don't try to do a complex algorithm in one formula; it's *the* safe way
to failure.

Build the formula in the steps of your verbal explanation (one cell/formula
for each) and be sure to always also specify what should be done if a
condition is NOT satisfied (I miss that in your specification from the first
sentence!)

Post again in this thread if you still have problems


--
Kind regards,

Niek Otten
Microsoft MVP - Excel


"GHall" wrote in message
...
I have a formula I'm trying to get to work. Here is what I have so far (it
doesn't work yet):
=IF(C39=0,"",IF(R39=V,IF(AR39<=0,"Y",IF(AR39=0,"N ")),IF(AA39<=0,"Y",IF(AA39=1,"N"))))

I need the formula to look at column C first. If it's a 0 then display
nothing in column Q (where this formula is placed). If there's a 1 in
column
C, I need the formula to look at column R for either a V or an R.
If it's a V do this function: R39=V,IF(AR39<=0,"Y",IF(AR39=0,"N"
If it's an R, do this function: IF(AA39<=0,"Y",IF(AA39=1,"N"

Any help would be great! Thanks.
--
Gary


  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 2,389
Default Too many arguements?

I see the following problems:

1. When checking R39, the V needs to be in quotation marks.
2. After AR39=0, you have an closing parentheses which aren't needed.
So try the following:
=IF(C39=0,"",IF(R39="V",IF(AR39<=0,"Y",IF(AR39=0, "N",IF(AA39<=0,"Y",IF(AA39=1,"N"))))))

3. Next you haven't specified what happens when AA39 is between 0 and 1. I
suspect you want:
=IF(C39=0,"",IF(R39="V",IF(AR39<=0,"Y",IF(AR39=0, "N",IF(AA39<=0,"Y","N")))))

4. Finally, the check of AA39 will never be done. Prior to that you check to
see if AR39 is less than zero, then if it's greater than zero. One of these
will always be true. As soon as the If finds something that's true, it
finishes, so it will never get around to checking AA39. Do you want
something like:
=IF(C39=0,"",IF(R39="V",IF(OR(AA39<=0,AR39<=0),"Y" ,"N")))))

Regards,
Fred.

"GHall" wrote in message
...
I have a formula I'm trying to get to work. Here is what I have so far (it
doesn't work yet):
=IF(C39=0,"",IF(R39=V,IF(AR39<=0,"Y",IF(AR39=0,"N ")),IF(AA39<=0,"Y",IF(AA39=1,"N"))))

I need the formula to look at column C first. If it's a 0 then display
nothing in column Q (where this formula is placed). If there's a 1 in
column
C, I need the formula to look at column R for either a V or an R.
If it's a V do this function: R39=V,IF(AR39<=0,"Y",IF(AR39=0,"N"
If it's an R, do this function: IF(AA39<=0,"Y",IF(AA39=1,"N"

Any help would be great! Thanks.
--
Gary


  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 11
Default Too many arguements?

Okay, the formulas you presented didn't quite do what I was looking for, but
you did point out a couple problems I was having. I was able to get it to
work and do want I need with this:
=IF(C21=0,"",IF(R21="V",IF(AR21<=0,"Y",IF(AR21=1, "N")),IF(AA21<=0,"Y",IF(AA21=1,"N"))))

Thanks so much for your help!
--
Gary Hall


"Fred Smith" wrote:

I see the following problems:

1. When checking R39, the V needs to be in quotation marks.
2. After AR39=0, you have an closing parentheses which aren't needed.
So try the following:
=IF(C39=0,"",IF(R39="V",IF(AR39<=0,"Y",IF(AR39=0, "N",IF(AA39<=0,"Y",IF(AA39=1,"N"))))))

3. Next you haven't specified what happens when AA39 is between 0 and 1. I
suspect you want:
=IF(C39=0,"",IF(R39="V",IF(AR39<=0,"Y",IF(AR39=0, "N",IF(AA39<=0,"Y","N")))))

4. Finally, the check of AA39 will never be done. Prior to that you check to
see if AR39 is less than zero, then if it's greater than zero. One of these
will always be true. As soon as the If finds something that's true, it
finishes, so it will never get around to checking AA39. Do you want
something like:
=IF(C39=0,"",IF(R39="V",IF(OR(AA39<=0,AR39<=0),"Y" ,"N")))))

Regards,
Fred.

"GHall" wrote in message
...
I have a formula I'm trying to get to work. Here is what I have so far (it
doesn't work yet):
=IF(C39=0,"",IF(R39=V,IF(AR39<=0,"Y",IF(AR39=0,"N ")),IF(AA39<=0,"Y",IF(AA39=1,"N"))))

I need the formula to look at column C first. If it's a 0 then display
nothing in column Q (where this formula is placed). If there's a 1 in
column
C, I need the formula to look at column R for either a V or an R.
If it's a V do this function: R39=V,IF(AR39<=0,"Y",IF(AR39=0,"N"
If it's an R, do this function: IF(AA39<=0,"Y",IF(AA39=1,"N"

Any help would be great! Thanks.
--
Gary



  #5   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 11
Default Too many arguements?

Thanks for your assist. With your advice and the information presented by Fre
I was able to get my formula to work. Thanks for the post. Breaking it up
helped me see where the problem was.
--
Gary Hall


"Niek Otten" wrote:

Hi Gary,

You can always build a formula in several (or even many) simple steps and
than later, if really necessary (really, really necessary, otherwise,
DON'T!), integrate those intermediate formulas into one.
Just don't try to do a complex algorithm in one formula; it's *the* safe way
to failure.

Build the formula in the steps of your verbal explanation (one cell/formula
for each) and be sure to always also specify what should be done if a
condition is NOT satisfied (I miss that in your specification from the first
sentence!)

Post again in this thread if you still have problems


--
Kind regards,

Niek Otten
Microsoft MVP - Excel


"GHall" wrote in message
...
I have a formula I'm trying to get to work. Here is what I have so far (it
doesn't work yet):
=IF(C39=0,"",IF(R39=V,IF(AR39<=0,"Y",IF(AR39=0,"N ")),IF(AA39<=0,"Y",IF(AA39=1,"N"))))

I need the formula to look at column C first. If it's a 0 then display
nothing in column Q (where this formula is placed). If there's a 1 in
column
C, I need the formula to look at column R for either a V or an R.
If it's a V do this function: R39=V,IF(AR39<=0,"Y",IF(AR39=0,"N"
If it's an R, do this function: IF(AA39<=0,"Y",IF(AA39=1,"N"

Any help would be great! Thanks.
--
Gary





  #6   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 2,389
Default Too many arguements?

Glad you got it working. As an observation, the formula doesn't cover the
cases where AR21 is between 0 and 1. Same problem with AA21. If you want to
handle these cases, try:
=IF(C21=0,"",IF(R21="V",IF(AR21<=0,"Y","N"),IF(AA2 1<=0,"Y","N")))


"GHall" wrote in message
...
Okay, the formulas you presented didn't quite do what I was looking for,
but
you did point out a couple problems I was having. I was able to get it to
work and do want I need with this:
=IF(C21=0,"",IF(R21="V",IF(AR21<=0,"Y",IF(AR21=1, "N")),IF(AA21<=0,"Y",IF(AA21=1,"N"))))

Thanks so much for your help!
--
Gary Hall


"Fred Smith" wrote:

I see the following problems:

1. When checking R39, the V needs to be in quotation marks.
2. After AR39=0, you have an closing parentheses which aren't needed.
So try the following:
=IF(C39=0,"",IF(R39="V",IF(AR39<=0,"Y",IF(AR39=0, "N",IF(AA39<=0,"Y",IF(AA39=1,"N"))))))

3. Next you haven't specified what happens when AA39 is between 0 and 1.
I
suspect you want:
=IF(C39=0,"",IF(R39="V",IF(AR39<=0,"Y",IF(AR39=0, "N",IF(AA39<=0,"Y","N")))))

4. Finally, the check of AA39 will never be done. Prior to that you check
to
see if AR39 is less than zero, then if it's greater than zero. One of
these
will always be true. As soon as the If finds something that's true, it
finishes, so it will never get around to checking AA39. Do you want
something like:
=IF(C39=0,"",IF(R39="V",IF(OR(AA39<=0,AR39<=0),"Y" ,"N")))))

Regards,
Fred.

"GHall" wrote in message
...
I have a formula I'm trying to get to work. Here is what I have so far
(it
doesn't work yet):
=IF(C39=0,"",IF(R39=V,IF(AR39<=0,"Y",IF(AR39=0,"N ")),IF(AA39<=0,"Y",IF(AA39=1,"N"))))

I need the formula to look at column C first. If it's a 0 then display
nothing in column Q (where this formula is placed). If there's a 1 in
column
C, I need the formula to look at column R for either a V or an R.
If it's a V do this function: R39=V,IF(AR39<=0,"Y",IF(AR39=0,"N"
If it's an R, do this function: IF(AA39<=0,"Y",IF(AA39=1,"N"

Any help would be great! Thanks.
--
Gary




  #7   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 11
Default Too many arguements?

Yeah, I see that. But the 0 and 1 are just code numbers anyway, will never be
any other number. Thanks for pointing it out though! :) You two were a big
help with this.
--
Gary Hall


"Fred Smith" wrote:

Glad you got it working. As an observation, the formula doesn't cover the
cases where AR21 is between 0 and 1. Same problem with AA21. If you want to
handle these cases, try:
=IF(C21=0,"",IF(R21="V",IF(AR21<=0,"Y","N"),IF(AA2 1<=0,"Y","N")))


"GHall" wrote in message
...
Okay, the formulas you presented didn't quite do what I was looking for,
but
you did point out a couple problems I was having. I was able to get it to
work and do want I need with this:
=IF(C21=0,"",IF(R21="V",IF(AR21<=0,"Y",IF(AR21=1, "N")),IF(AA21<=0,"Y",IF(AA21=1,"N"))))

Thanks so much for your help!
--
Gary Hall


"Fred Smith" wrote:

I see the following problems:

1. When checking R39, the V needs to be in quotation marks.
2. After AR39=0, you have an closing parentheses which aren't needed.
So try the following:
=IF(C39=0,"",IF(R39="V",IF(AR39<=0,"Y",IF(AR39=0, "N",IF(AA39<=0,"Y",IF(AA39=1,"N"))))))

3. Next you haven't specified what happens when AA39 is between 0 and 1.
I
suspect you want:
=IF(C39=0,"",IF(R39="V",IF(AR39<=0,"Y",IF(AR39=0, "N",IF(AA39<=0,"Y","N")))))

4. Finally, the check of AA39 will never be done. Prior to that you check
to
see if AR39 is less than zero, then if it's greater than zero. One of
these
will always be true. As soon as the If finds something that's true, it
finishes, so it will never get around to checking AA39. Do you want
something like:
=IF(C39=0,"",IF(R39="V",IF(OR(AA39<=0,AR39<=0),"Y" ,"N")))))

Regards,
Fred.

"GHall" wrote in message
...
I have a formula I'm trying to get to work. Here is what I have so far
(it
doesn't work yet):
=IF(C39=0,"",IF(R39=V,IF(AR39<=0,"Y",IF(AR39=0,"N ")),IF(AA39<=0,"Y",IF(AA39=1,"N"))))

I need the formula to look at column C first. If it's a 0 then display
nothing in column Q (where this formula is placed). If there's a 1 in
column
C, I need the formula to look at column R for either a V or an R.
If it's a V do this function: R39=V,IF(AR39<=0,"Y",IF(AR39=0,"N"
If it's an R, do this function: IF(AA39<=0,"Y",IF(AA39=1,"N"

Any help would be great! Thanks.
--
Gary




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 - too many arguements. Dave Excel Worksheet Functions 2 February 14th 08 11:35 PM
how can i have more than 30 arguements in a SUM RobG2007 Excel Discussion (Misc queries) 6 July 25th 07 08:28 PM
Too many arguements pj Excel Discussion (Misc queries) 3 December 6th 05 02:13 PM
Formula using IF, AND and OR Arguements DaveG Excel Worksheet Functions 2 October 26th 05 10:26 PM
NPV calc with more than 29 arguements? Felix Excel Worksheet Functions 3 April 13th 05 11:25 PM


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