Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 2
Default combine if(and statement

Hi,

I would like to combine the following into one formula.
Could you please help? Getting frustrated ...:-)

=IF(AND(W19=0%,W19<"",W19<25%),"On Plan
OVER",IF(AND(W19=-25%,W19<"",W19<0%),"On Plan Under",""))
cobine with
=IF(W19="","",IF(W190.25,"OVER", IF(W19-0.25,"ON
PLAN",IF(W19=0,"n/a","UNDER"))))
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 2,389
Default combine if(and statement

What result do you want? Both statements check for virtually the same thing
(eg, 25% and .25 are the same number). Do you want something like:

=if(w19="","",if(w19=0,"n/a",if(w1925%,"More than 25%",if(w190,"On Plan
Over",if(w19-25%,"On Plan Under","Less than -25%")))))

If not, tell us what result you want for each range of w19.

Regards,
Fred.

"
m wrote in message
...
Hi,

I would like to combine the following into one formula.
Could you please help? Getting frustrated ...:-)

=IF(AND(W19=0%,W19<"",W19<25%),"On Plan
OVER",IF(AND(W19=-25%,W19<"",W19<0%),"On Plan Under",""))
cobine with
=IF(W19="","",IF(W190.25,"OVER", IF(W19-0.25,"ON
PLAN",IF(W19=0,"n/a","UNDER"))))


  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 964
Default combine if(and statement

You could try using a LOOKUP function:

=IF(W19="","",LOOKUP(W19,{-1,-0.25,0,0.01,0.25},{"UNDER","On Plan
Under","N/A","On Plan Over","OVER"}))

HTH
Elkar


" wrote:

Hi,

I would like to combine the following into one formula.
Could you please help? Getting frustrated ...:-)

=IF(AND(W19=0%,W19<"",W19<25%),"On Plan
OVER",IF(AND(W19=-25%,W19<"",W19<0%),"On Plan Under",""))
cobine with
=IF(W19="","",IF(W190.25,"OVER", IF(W19-0.25,"ON
PLAN",IF(W19=0,"n/a","UNDER"))))

  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 857
Default combine if(and statement

These two if function give different results for the same criteria, You need
to rework you question.

For example:
IF(W19-0.25,"ON PLAN"
and
W19=-25%,W19<"",W19<0%),"On Plan Under"
overlap each other??

Also you are check for W19="" and W19<"" this is redundent.

(maybe) You are also missing a value for W19=.25 ?

Further W18=0 and W19=0 are in conflict.


Why make a nice little table
<-.25 x
=-.25 to <0 y

0 to <.25 z
.25 w


--
If this helps, please click the Yes button.

Cheers,
Shane Devenshire


" wrote:

Hi,

I would like to combine the following into one formula.
Could you please help? Getting frustrated ...:-)

=IF(AND(W19=0%,W19<"",W19<25%),"On Plan
OVER",IF(AND(W19=-25%,W19<"",W19<0%),"On Plan Under",""))
cobine with
=IF(W19="","",IF(W190.25,"OVER", IF(W19-0.25,"ON
PLAN",IF(W19=0,"n/a","UNDER"))))

  #5   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 2
Default combine if(and statement

Hi Shane,

I finally figured it out.
Thanks everyone for your help.
Have a wonderful day!

Thanks,
Margie

"Shane Devenshire" wrote:

These two if function give different results for the same criteria, You need
to rework you question.

For example:
IF(W19-0.25,"ON PLAN"
and
W19=-25%,W19<"",W19<0%),"On Plan Under"
overlap each other??

Also you are check for W19="" and W19<"" this is redundent.

(maybe) You are also missing a value for W19=.25 ?

Further W18=0 and W19=0 are in conflict.


Why make a nice little table
<-.25 x
=-.25 to <0 y

0 to <.25 z
.25 w


--
If this helps, please click the Yes button.

Cheers,
Shane Devenshire


" wrote:

Hi,

I would like to combine the following into one formula.
Could you please help? Getting frustrated ...:-)

=IF(AND(W19=0%,W19<"",W19<25%),"On Plan
OVER",IF(AND(W19=-25%,W19<"",W19<0%),"On Plan Under",""))
cobine with
=IF(W19="","",IF(W190.25,"OVER", IF(W19-0.25,"ON
PLAN",IF(W19=0,"n/a","UNDER"))))

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
Combine an "IF" and "OR" statement Picman Excel Worksheet Functions 4 January 2nd 09 07:47 PM
Combine cells with the same reference and combine quantities brandon Excel Discussion (Misc queries) 2 September 17th 08 05:44 PM
How to combine IF statement and Vlookup function? mcmilja Excel Discussion (Misc queries) 2 June 6th 08 06:07 PM
combine IF, AND and OR operstors in a statement Vince Excel Worksheet Functions 10 December 19th 07 10:39 PM
HLookup, IF statement, multiple sort, somehow combine all of these Gita at CASTLE Excel Worksheet Functions 0 May 2nd 06 07:43 PM


All times are GMT +1. The time now is 01:59 PM.

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"