Urgent

K

kiran

Dear All,

A B C D E
Date Time Date Time Output
04.07.08 9:18:56 AM 01.08.08 7:41:33 PM
04.08.08 9:18:56 PM 01.08.08 7:41:33 PM
24.08.08 10:05:03 AM 22.08.08 12:13:30 PM

Check date time in column A, B, C & D if date & time of column C & D is
greater that date time of column A & B I should get "No" else "Yes" in column
E.

TIA
 
S

Sheeloo

Kiran,

Can you have date AND time in column?
Assuming you have one in Col A and the other in Col B then in C2 you can enter
=If(A2>B2,"Yes","No")

You can enter in F2
=A1+B1
and in G2
=C1+D1
to combine the date & time

Then your formula will become
=IF(F2>G2,"Yes","No")

Let me know how it works out.

Makse sure that A & C have dates and D & E have times...
I had to retype the values provided by you as they did not automatically
convert to date in A & C
 
S

Sheeloo

By mistake typed A1... etc
Replace by A2,..

assuming row 1 has headers
You will have to copy the formulae down
 
M

MartinW

Hi Kiran,

Provided they are real dates and times and not text, this should work.
=IF(C1+D1>A1+B1,"NO","YES")

put it in E1 and drag down as far as needed.

HTH
Martin
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads


Top