#1   Report Post  
Dahlman
 
Posts: n/a
Default combining IF and AND

I want my cell to the following:

If cell E7 does not equal zero and K7 does equal zero then in J7 display
"100.00%"

But if E7 does equal zero the display an emply cell.

But if E7 doesn't equal zero and neither does K7 then do the formula
(1-(K7/E7)).

End

I just can't figure out how to do this...I can enter my statements into an
AND function but it only display true or false. Why can't I decide what it
displays?

Please help if you can. Thanks in advance

Travis Dahlman
  #2   Report Post  
N Harkawat
 
Posts: n/a
Default

=IF(E7=0,"",IF(AND(E7<0,K7=0),TEXT(1,"0.00%"),IF( AND(E7<0,K7<0),(1-(K7/E7)))))



"Dahlman" wrote in message
...
I want my cell to the following:

If cell E7 does not equal zero and K7 does equal zero then in J7 display
"100.00%"

But if E7 does equal zero the display an emply cell.

But if E7 doesn't equal zero and neither does K7 then do the formula
(1-(K7/E7)).

End

I just can't figure out how to do this...I can enter my statements into an
AND function but it only display true or false. Why can't I decide what it
displays?

Please help if you can. Thanks in advance

Travis Dahlman



  #3   Report Post  
Peo Sjoblom
 
Posts: n/a
Default

=IF(AND(E7<0,K7=0),100%,IF(AND(E7<0,K7<0),(1-(K7/E7)),""))


--
Regards,

Peo Sjoblom


"Dahlman" wrote in message
...
I want my cell to the following:

If cell E7 does not equal zero and K7 does equal zero then in J7 display
"100.00%"

But if E7 does equal zero the display an emply cell.

But if E7 doesn't equal zero and neither does K7 then do the formula
(1-(K7/E7)).

End

I just can't figure out how to do this...I can enter my statements into an
AND function but it only display true or false. Why can't I decide what it
displays?

Please help if you can. Thanks in advance

Travis Dahlman


  #4   Report Post  
Duke Carey
 
Posts: n/a
Default

=IF(e7=0,"",IF(k7=0,100%,1-k7/e7))

"Dahlman" wrote:

I want my cell to the following:

If cell E7 does not equal zero and K7 does equal zero then in J7 display
"100.00%"

But if E7 does equal zero the display an emply cell.

But if E7 doesn't equal zero and neither does K7 then do the formula
(1-(K7/E7)).

End

I just can't figure out how to do this...I can enter my statements into an
AND function but it only display true or false. Why can't I decide what it
displays?

Please help if you can. Thanks in advance

Travis Dahlman

  #5   Report Post  
Mexage
 
Posts: n/a
Default

=If(AND(E7<0,K7<0),100%,SOMETHING_ELSE)

If it helps, vote for it with the buttons below.

"Dahlman" wrote:

I want my cell to the following:

If cell E7 does not equal zero and K7 does equal zero then in J7 display
"100.00%"

But if E7 does equal zero the display an emply cell.

But if E7 doesn't equal zero and neither does K7 then do the formula
(1-(K7/E7)).

End

I just can't figure out how to do this...I can enter my statements into an
AND function but it only display true or false. Why can't I decide what it
displays?

Please help if you can. Thanks in advance

Travis Dahlman



  #6   Report Post  
patrick
 
Posts: n/a
Default

Try this with an IF statement
=-IF(AND(E7<0,K7=0),1*-1,(1-(K7/E7)))
Pat

"Dahlman" wrote:

I want my cell to the following:

If cell E7 does not equal zero and K7 does equal zero then in J7 display
"100.00%"

But if E7 does equal zero the display an emply cell.

But if E7 doesn't equal zero and neither does K7 then do the formula
(1-(K7/E7)).

End

I just can't figure out how to do this...I can enter my statements into an
AND function but it only display true or false. Why can't I decide what it
displays?

Please help if you can. Thanks in advance

Travis Dahlman

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



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