#1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 57
Default IF Statement Help

I have a IF statement that is not working please help.

=if(AF3<=660,"Yes",if(AE3=50%,"Yes","No"). When I input 49% in AE3
it says Yes, when I need it to say No. It is counting AF3 as a 0,
when it is blank. I would also like to have the cell blank when both
AF3 and AE3 are blank.


Please help
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 2,722
Default IF Statement Help

you didn't specifically say. but did you want it blank if AF3 is blank?

If so,
=IF(ISBLANK(AF3),"",IF(AF3<=660,"Yes",IF(AE3=50%, "Yes","No")))
If you only want it blank when both cells are empty
=IF(AND(ISBLANK(AF3),ISBLANK(AE3)),"",
IF(AF3<=660,"Yes",IF(AE3=50%,"Yes","No")))
--
Best Regards,

Luke M
*Remember to click "yes" if this post helped you!*


"Maggie" wrote:

I have a IF statement that is not working please help.

=if(AF3<=660,"Yes",if(AE3=50%,"Yes","No"). When I input 49% in AE3
it says Yes, when I need it to say No. It is counting AF3 as a 0,
when it is blank. I would also like to have the cell blank when both
AF3 and AE3 are blank.


Please help

  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 857
Default IF Statement Help

Hi,

You haven't spelled out all the possible results: What do you want to do
if only AF3 is blank or only AE3 is blank.

These might meet your needs:

=IF(AND(E3="",F3=""),"",IF(AND(F3<=660,F3<""),"Ye s",IF(E3=50%,"Yes","No")))
but this one is shorter
=IF(AND(E3="",F3=""),"",IF(OR(AND(F3<=660,F3<""), E350%),"Yes","No"))

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

Cheers,
Shane Devenshire

"Maggie" wrote in message
...
I have a IF statement that is not working please help.

=if(AF3<=660,"Yes",if(AE3=50%,"Yes","No"). When I input 49% in AE3
it says Yes, when I need it to say No. It is counting AF3 as a 0,
when it is blank. I would also like to have the cell blank when both
AF3 and AE3 are blank.


Please help


  #4   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 35,218
Default IF Statement Help

Check your other post, too.

Maggie wrote:

I have a IF statement that is not working please help.

=if(AF3<=660,"Yes",if(AE3=50%,"Yes","No"). When I input 49% in AE3
it says Yes, when I need it to say No. It is counting AF3 as a 0,
when it is blank. I would also like to have the cell blank when both
AF3 and AE3 are blank.

Please help


--

Dave Peterson
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
Sum if statement with a left statement Eric D Excel Discussion (Misc queries) 4 July 23rd 08 05:31 PM
Can an If statement answer an If statement? M.A.Tyler Excel Discussion (Misc queries) 2 June 24th 07 04:14 AM
appending and IF statement to an existing IF statement spence Excel Worksheet Functions 1 February 28th 06 11:00 PM
If statement and Isblank statement Rodney C. Excel Worksheet Functions 0 January 18th 05 08:39 PM
Help please, IF statement/SUMIF statement Brad_A Excel Worksheet Functions 23 January 11th 05 02:24 PM


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