Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 89
Default Check IF statement please

I'm getting confused!!
Here is what I am tryng to accomplish:

IF K23 and <= 4
AND
D20 and <25

put in a 10

IF K22.4 and <=3
AND
D20 and <25

put in an 11


Do I have an extra AND at the beginning of the IF's in this formula?

=IF(AND(AND($K23,$K2<=4),AND($D20,$D2<25)),10,IF (AND(AND($K22.4,$K2<=3,AND($D20,$D2<25)),11,""))
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 8,520
Default Check IF statement please

You dont need those extra AND()'s. You can have those together in one.

=IF(AND($K23,$K2<=4,$D20,$D2<25),10,IF(AND($K22 .4,$K2<=3,$D20,$D2<25),11,""))

If this post helps click Yes
---------------
Jacob Skaria


"Iriemon" wrote:

I'm getting confused!!
Here is what I am tryng to accomplish:

IF K23 and <= 4
AND
D20 and <25

put in a 10

IF K22.4 and <=3
AND
D20 and <25

put in an 11


Do I have an extra AND at the beginning of the IF's in this formula?

=IF(AND(AND($K23,$K2<=4),AND($D20,$D2<25)),10,IF (AND(AND($K22.4,$K2<=3,AND($D20,$D2<25)),11,""))

  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 89
Default Check IF statement please

Sorry, Jacob has it the way I want.

Thank again

"Jacob Skaria" wrote:

You dont need those extra AND()'s. You can have those together in one.

=IF(AND($K23,$K2<=4,$D20,$D2<25),10,IF(AND($K22 .4,$K2<=3,$D20,$D2<25),11,""))

If this post helps click Yes
---------------
Jacob Skaria


"Iriemon" wrote:

I'm getting confused!!
Here is what I am tryng to accomplish:

IF K23 and <= 4
AND
D20 and <25

put in a 10

IF K22.4 and <=3
AND
D20 and <25

put in an 11


Do I have an extra AND at the beginning of the IF's in this formula?

=IF(AND(AND($K23,$K2<=4),AND($D20,$D2<25)),10,IF (AND(AND($K22.4,$K2<=3,AND($D20,$D2<25)),11,""))

  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 1,696
Default Check IF statement please

=IF(AND(K23,K2<=4,D20,D2<25),10,IF(AND(K22.4,K2 <=3,D20,D2<25),11))

No need to separate the criteria...

"Iriemon" wrote:

I'm getting confused!!
Here is what I am tryng to accomplish:

IF K23 and <= 4
AND
D20 and <25

put in a 10

IF K22.4 and <=3
AND
D20 and <25

put in an 11


Do I have an extra AND at the beginning of the IF's in this formula?

=IF(AND(AND($K23,$K2<=4),AND($D20,$D2<25)),10,IF (AND(AND($K22.4,$K2<=3,AND($D20,$D2<25)),11,""))

  #5   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 89
Default Check IF statement please

Both of you came up with the same solution, but when I tried it and neither
condition is met, it returns "FALSE".

How do I get it to return "" (empty string) instead?

Thanks



"Iriemon" wrote:

I'm getting confused!!
Here is what I am tryng to accomplish:

IF K23 and <= 4
AND
D20 and <25

put in a 10

IF K22.4 and <=3
AND
D20 and <25

put in an 11


Do I have an extra AND at the beginning of the IF's in this formula?

=IF(AND(AND($K23,$K2<=4),AND($D20,$D2<25)),10,IF (AND(AND($K22.4,$K2<=3,AND($D20,$D2<25)),11,""))



  #6   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 2,389
Default Check IF statement please

They are not the same. Use Jacob's solution. It will return the empty string
for you.

Regards,
Fred.

"Iriemon" wrote in message
...
Both of you came up with the same solution, but when I tried it and
neither
condition is met, it returns "FALSE".

How do I get it to return "" (empty string) instead?

Thanks



"Iriemon" wrote:

I'm getting confused!!
Here is what I am tryng to accomplish:

IF K23 and <= 4
AND
D20 and <25

put in a 10

IF K22.4 and <=3
AND
D20 and <25

put in an 11


Do I have an extra AND at the beginning of the IF's in this formula?

=IF(AND(AND($K23,$K2<=4),AND($D20,$D2<25)),10,IF (AND(AND($K22.4,$K2<=3,AND($D20,$D2<25)),11,""))


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
IF statement to check for numerical value Toan Excel Worksheet Functions 3 September 16th 09 11:29 PM
IF Statement to Check for Blanks Daren Excel Worksheet Functions 5 October 15th 08 11:08 PM
Using contents of a check box for an in statement Erin Excel Discussion (Misc queries) 3 June 21st 07 05:23 PM
How do I use a "check(ed) box" as a criteria in an "=if" statement Bill Bromback Excel Worksheet Functions 1 August 19th 05 05:28 PM
How do I check formatting in an if-then statement bfmartiniv Excel Worksheet Functions 1 December 14th 04 12:42 AM


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