Hi guys,
First time poster looking for some help with a formula i am writing.
I am writing a formula that take date away from another to calculate the rest period between shifts
Here is where I am right now:
=IF(ISBLANK(J26),(I27-J25)+TIME(24,0,0),IF(ISBLANK(AND(J25,J26)),(I27-J24)+TIME(48,0,0),IF(ISBLANK(AND(J24,J25,J26)),(I27-J23)+TIME(72,0,0),IF(ISBLANK(I27),0,(I27-J26)))))
But the issue I am having is when J25,J26 are blank because there is a conflict where it also sees just J26 as blank.
Is the there a way to weight the true statementsso if one is true any others are ignored.
First time poster looking for some help with a formula i am writing.
I am writing a formula that take date away from another to calculate the rest period between shifts
Here is where I am right now:
=IF(ISBLANK(J26),(I27-J25)+TIME(24,0,0),IF(ISBLANK(AND(J25,J26)),(I27-J24)+TIME(48,0,0),IF(ISBLANK(AND(J24,J25,J26)),(I27-J23)+TIME(72,0,0),IF(ISBLANK(I27),0,(I27-J26)))))
But the issue I am having is when J25,J26 are blank because there is a conflict where it also sees just J26 as blank.
Is the there a way to weight the true statementsso if one is true any others are ignored.