ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   conditional calculating (https://www.excelbanter.com/excel-programming/357551-conditional-calculating.html)

xavier

conditional calculating
 
hello,

i have 2 calcualte the diffrence from 2 rows and a constant

example
b1-a1 -TIME(8;30;0)

example
08:00 17:00 - 00:30 ok
- -08:30 Problem!!!!! - i did not want to calcualte
dif in this case
08:00 12:00 - -04:30 ok

thanks




Toppers

conditional calculating
 
Try this:

=If(or(a1=0,b1=0),"",B1-A1-time(8,30,0))

"Xavier" wrote:

hello,

i have 2 calcualte the diffrence from 2 rows and a constant

example
b1-a1 -TIME(8;30;0)

example
08:00 17:00 - 00:30 ok
- -08:30 Problem!!!!! - i did not want to calcualte
dif in this case
08:00 12:00 - -04:30 ok

thanks




xavier

conditional calculating
 
it works .. , thanks for your help




All times are GMT +1. The time now is 05:36 PM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
ExcelBanter.com