ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   =IF((OR(B11="",B10="")),0,IF((B11<B10),((B11-B10)*24)+24,(B11-B10 (https://www.excelbanter.com/excel-programming/369398-%3Dif-b11%3D-b10%3D-0-if-b11-b10-b11-b10-%2A24-24-b11-b10.html)

Dave

=IF((OR(B11="",B10="")),0,IF((B11<B10),((B11-B10)*24)+24,(B11-B10
 
This is from a time sheet download. I am trying to figure out how this
statement works.

Les

=IF((OR(B11="",B10="")),0,IF((B11<B10),((B11-B10)*24)+24,(B11-B10
 
If either B11 or B10 is blank, set the value of the cell to zero
Otherwise, if B11 is less than B10 set the value of the cell to .....

I could expand on this, but the formula was cut off in the subject line.

--
Les Torchia-Wells


"Dave" wrote:

This is from a time sheet download. I am trying to figure out how this
statement works.


John[_88_]

=IF((OR(B11="",B10="")),0,IF((B11<B10),((B11-B10)*24)+24,(B11-B10
 
Dave,

The formula you've put in the subject looks clipped so this may not be
everything, but basically:

If B11 Or B10 are empty the result is 0 and the rest of the formula is
ignored.

If B11 Or B10 contain any value at all then another condition is tested:
If B11 < B10 then the result will be ((B11 - B10) * 24) + 24
If B11 B10 then the result will be B11 - B10

Hope that helps

Best regards

John


"Dave" wrote in message
...
This is from a time sheet download. I am trying to figure out how this
statement works.




John[_88_]

=IF((OR(B11="",B10="")),0,IF((B11<B10),((B11-B10)*24)+24,(B11-B10
 
.....Sorry revise the second part to:

If 'both' B11 and B10 contain any value at all then another condition is
tested:
If B11 < B10 then the result will be ((B11 - B10) * 24) + 24
If B11 B10 then the result will be B11 - B10

.....must read the question:)

"John" wrote in message
...
Dave,

The formula you've put in the subject looks clipped so this may not be
everything, but basically:

If B11 Or B10 are empty the result is 0 and the rest of the formula is
ignored.

If B11 Or B10 contain any value at all then another condition is tested:
If B11 < B10 then the result will be ((B11 - B10) * 24) + 24
If B11 B10 then the result will be B11 - B10

Hope that helps

Best regards

John


"Dave" wrote in message
...
This is from a time sheet download. I am trying to figure out how this
statement works.







All times are GMT +1. The time now is 08:37 AM.

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