Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
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.programming
external usenet poster
 
Posts: 5,934
Default IF Statement Help

Try this...

=IF(AND(AF3<=660,AF3<""),"Yes",IF(AE3=50%,"Yes", "No"))

--
Rick (MVP - Excel)


"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


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

You can not use AF3=50%, you must use AF3=.5

=IF(AND(ISBLANK(AE3),ISBLANK(AF3)),"",IF(AF3<=660, "Yes",IF(AE3=0.5,"Yes","No")))
HTH,

"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

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

Yes, you can use: af3=50%

It may make it easier for the OP to read the formula.

DataHog wrote:

You can not use AF3=50%, you must use AF3=.5

=IF(AND(ISBLANK(AE3),ISBLANK(AF3)),"",IF(AF3<=660, "Yes",IF(AE3=0.5,"Yes","No")))
HTH,

"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
  #5   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 57
Default IF Statement Help

On Jan 7, 1:39*pm, Dave Peterson wrote:
Yes, you can use: af3=50%

It may make it easier for the OP to read the formula.





DataHog wrote:

You can not use AF3=50%, you must use AF3=.5


=IF(AND(ISBLANK(AE3),ISBLANK(AF3)),"",IF(AF3<=660, "Yes",IF(AE3=0..5,"Yes","*No")))
HTH,


"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- Hide quoted text -

- Show quoted text -


What if I want if AE3 and AF3 are blank then leave blank.


  #6   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 9
Default IF Statement Help

Okay AE350% does work just fine, my bad.

This formula works if

ae3 and af3 are both blank or
ae3 has a value and af3 is blank or
ae3 has a value and af3 has a value

=IF(AND(ISBLANK(AE3),ISBLANK(AF3)),"",IF(AND(AF3<= 660,
AF3<""),"Yes",IF(AE3=50%,"Yes","No")))

HTH,
Jim K
"Maggie" wrote:

On Jan 7, 1:39 pm, Dave Peterson wrote:
Yes, you can use: af3=50%

It may make it easier for the OP to read the formula.





DataHog wrote:

You can not use AF3=50%, you must use AF3=.5


=IF(AND(ISBLANK(AE3),ISBLANK(AF3)),"",IF(AF3<=660, "Yes",IF(AE3=0..5,"Yes","Â*No")))
HTH,


"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- Hide quoted text -

- Show quoted text -


What if I want if AE3 and AF3 are blank then leave blank.

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

You already have that answer.

Maggie wrote:

On Jan 7, 1:39 pm, Dave Peterson wrote:
Yes, you can use: af3=50%

It may make it easier for the OP to read the formula.





DataHog wrote:

You can not use AF3=50%, you must use AF3=.5


=IF(AND(ISBLANK(AE3),ISBLANK(AF3)),"",IF(AF3<=660, "Yes",IF(AE3=0.5,"Yes","*No")))
HTH,


"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- Hide quoted text -

- Show quoted text -


What if I want if AE3 and AF3 are blank then leave blank.


--

Dave Peterson
  #8   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 35,218
Default IF Statement Help

=if(and(af3="",ae3=""),"",if(af3<=660,....

Maybe you really want =or()

=if(or(af3="",ae3=""),"",if(af3<=660,....

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
IF statement inside a SUMIF statement.... or alternative method Sungibungi Excel Worksheet Functions 3 December 4th 09 06:22 PM
Reconcile Bank statement & Credit card statement & accounting data Bklynhyc Excel Worksheet Functions 0 October 7th 09 09:07 PM
Embedding an OR statement in an IF statement efficiently Chatnoir11 Excel Discussion (Misc queries) 4 February 2nd 09 08:12 PM
appending and IF statement to an existing IF statement spence Excel Worksheet Functions 1 February 28th 06 11:00 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 09:56 AM.

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"