![]() |
If function
If A2 minus 40 is less than zero then display zero in A15, or if A2 minus 40 is greater than 40 then run multiply A2 by 40 and display that in A15.
-- Message posted via http://www.officekb.com |
Put one of these in A15.
If you don't need to account for exactly zero: =IF(A2-40<0,0,A2*40) If you do need to account for exactly zero and want to just return zero in the cell, you might try something like: =IF(A2-40<=0,0,A2*40) tj "Mitch Perala via OfficeKB.com" wrote: If A2 minus 40 is less than zero then display zero in A15, or if A2 minus 40 is greater than 40 then run multiply A2 by 40 and display that in A15. -- Message posted via http://www.officekb.com |
All times are GMT +1. The time now is 03:34 AM. |
Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com