Prev Previous Post   Next Post Next
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 244
Default If with and

I want to write a simple formula. In column A and B I have values. In column
C I write my formula. I want to check if A and B anre not zero and if they
are both not zero I want to take A minus B. Now I tried writing it like this:

=IF((A22<0 & B22<0);A22-B22;"-")

It does not work. It taks A-B regardless of their values. Please help me
with this forumla!c Thanks alot!
 
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 09:06 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"