ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Discussion (Misc queries) (https://www.excelbanter.com/excel-discussion-misc-queries/)
-   -   if question (https://www.excelbanter.com/excel-discussion-misc-queries/211318-if-question.html)

puiuluipui

if question
 
Hi, i have something like this

A B D
8:00:00 8:05:14 LATE 00:05:14
8:00:00 7:53:00 EARLY 00:07:00

I need the same formula to work for late and for early.
If i write something smaller than 8:00:00 to show early and the difference.
If i write something bigger than 8:00:00 to show late, and the diferences.
How can i do this?
Thaks in advance

Gary Mc

if question
 
Try this formula in column D
=IF(B1A1,"LATE "&TEXT(SUM(B1-A1),"h:mm:ss"),"EARLY
"&TEXT(SUM(A1-B1),"h:mm:ss"))



"puiuluipui" wrote:

Hi, i have something like this

A B D
8:00:00 8:05:14 LATE 00:05:14
8:00:00 7:53:00 EARLY 00:07:00

I need the same formula to work for late and for early.
If i write something smaller than 8:00:00 to show early and the difference.
If i write something bigger than 8:00:00 to show late, and the diferences.
How can i do this?
Thaks in advance


FSt1

if question
 
hi
try this....
=IF(A2<B2,"Late " &TEXT(B2-A2,"hh:mm:ss"),"Early "&TEXT(A2-B2,"hh:mm:ss"))

regards
FSt1

"puiuluipui" wrote:

Hi, i have something like this

A B D
8:00:00 8:05:14 LATE 00:05:14
8:00:00 7:53:00 EARLY 00:07:00

I need the same formula to work for late and for early.
If i write something smaller than 8:00:00 to show early and the difference.
If i write something bigger than 8:00:00 to show late, and the diferences.
How can i do this?
Thaks in advance


Dave Peterson

if question
 
One mo

=IF(A2<B2,"Late ","Early ")&TEXT(ABS(A2-B2),"hh:mm:ss")



puiuluipui wrote:

Hi, i have something like this

A B D
8:00:00 8:05:14 LATE 00:05:14
8:00:00 7:53:00 EARLY 00:07:00

I need the same formula to work for late and for early.
If i write something smaller than 8:00:00 to show early and the difference.
If i write something bigger than 8:00:00 to show late, and the diferences.
How can i do this?
Thaks in advance


--

Dave Peterson

puiuluipui

if question
 
Thanks alot.

"Gary Mc" wrote:

Try this formula in column D
=IF(B1A1,"LATE "&TEXT(SUM(B1-A1),"h:mm:ss"),"EARLY
"&TEXT(SUM(A1-B1),"h:mm:ss"))



"puiuluipui" wrote:

Hi, i have something like this

A B D
8:00:00 8:05:14 LATE 00:05:14
8:00:00 7:53:00 EARLY 00:07:00

I need the same formula to work for late and for early.
If i write something smaller than 8:00:00 to show early and the difference.
If i write something bigger than 8:00:00 to show late, and the diferences.
How can i do this?
Thaks in advance


puiuluipui

if question
 
Thanks alot.

"FSt1" wrote:

hi
try this....
=IF(A2<B2,"Late " &TEXT(B2-A2,"hh:mm:ss"),"Early "&TEXT(A2-B2,"hh:mm:ss"))

regards
FSt1

"puiuluipui" wrote:

Hi, i have something like this

A B D
8:00:00 8:05:14 LATE 00:05:14
8:00:00 7:53:00 EARLY 00:07:00

I need the same formula to work for late and for early.
If i write something smaller than 8:00:00 to show early and the difference.
If i write something bigger than 8:00:00 to show late, and the diferences.
How can i do this?
Thaks in advance


puiuluipui

if question
 
Thanks alot.

"Dave Peterson" wrote:

One mo

=IF(A2<B2,"Late ","Early ")&TEXT(ABS(A2-B2),"hh:mm:ss")



puiuluipui wrote:

Hi, i have something like this

A B D
8:00:00 8:05:14 LATE 00:05:14
8:00:00 7:53:00 EARLY 00:07:00

I need the same formula to work for late and for early.
If i write something smaller than 8:00:00 to show early and the difference.
If i write something bigger than 8:00:00 to show late, and the diferences.
How can i do this?
Thaks in advance


--

Dave Peterson



All times are GMT +1. The time now is 01:35 PM.

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