Link to home
Start Free TrialLog in
Avatar of Jagwarman
Jagwarman

asked on

Help with Excel Formula

Can an expert help me with a formula please, I have attached a file that hopefully will assist.

I need column T to either say Yes or No depending on the result.

Col L has a Day which populates when Sign Off date/Time is completed.
Col M has a Day [this is fixed].
Col N has a time [fixed]
Col O has a time [fixed]
Q and R are populated when Tick box in P is completed. [removed in this file]
Col S either Yes or No [with formula]
In col T I need formula that will say Yes or No based on:

If L & M are the same and the Time in  Q is less than or equal to the time in O the answer in Col T is No

If L & M are the different and the Time in  Q is less than or equal to the time in O the answer in Col T is Yes
deadline.xlsx
Avatar of Tj a
Tj a

You can try this formula in cell T6

=IF(L6 = M6, IF(Q6 <= O6, "No", ""), IF(Q6 <= O6, "Yes", ""))

Open in new window

Avatar of Jagwarman

ASKER

Thanks but not sure you picked up on the fact that Cell O is Time only [i.e 15:00] and Q is Date and Time [i.e. 12/08/2015  15:29:59]

Regards
Avatar of Subodh Tiwari (Neeraj)
Your explanation for Yes and No is not clear. Why T8 should be Yes if T7 is a No.
Anyways try the following formula in T6 and copy it down.

=IF(Q6="","",IF(AND(MATCH(M6,{"Sun","Mon","Tue","Wed","Thu","Fri","Sat"},0)<WEEKDAY(Q6),N6<O6),"No","Yes"))

Open in new window

Edit:

I think this should be the formula you need......

In T6
=IF(Q6="","",IF(AND(MATCH(M6,{"Sun","Mon","Tue","Wed","Thu","Fri","Sat"},0)<WEEKDAY(Q6),(Q6-INT(Q6))<O6),"No","Yes"))

Open in new window

sktneer I agree my explanation for Yes and No is not clear

does this help

if the day due [Col M] was Mon and today [Col L] is Wed then the Day Deadline Missed should be Yes.

if the day due [Col M] was Thu and today [Col L] is Wed then the Day Deadline Missed should be No
Oh. sorry about that. I think I misunderstood the question.
Did you try the edited formula I suggested?
Hi sktneer, I did but it still does not give me the answer I am looking for.
That's still quite confusing.

Does that simply means, If Executed Day (Col. L) is greater than the Day Due (Col. M), it should be a No else Yes.

In other words if the the task is executed after the due day, it is missed and should display a No?

If so, have your shown the correct output in your sample file?
I think all your answers should be a Yes because all the executed days are greater than the due days.

BTW try the following formula, you will get a Yes for all of them....
=IF(Q6="","",IF(WEEKDAY(Q6)>MATCH(M6,{"Sun","Mon","Tue","Wed","Thu","Fri","Sat"},0),"Yes",IF(AND(WEEKDAY(Q6)=MATCH(M6,{"Sun","Mon","Tue","Wed","Thu","Fri","Sat"},0),(Q6-INT(Q6))>O6),"Yes","No")))

Open in new window

I think I wrote it in reverse order...

It should be actually this...

Does that simply means, If Executed Day (Col. L) is greater than the Day Due (Col. M), it should be a Yes (Missed) else No (Not Missed).

But the last formula remains unchanged.
sorry sktneer the more I look at it I am also confusing myself as well as you.

Does that simply means, If Executed Day (Col. L) is greater than the Day Due (Col. M), it should be a Yes (Missed) else No (Not Missed).

in answer to that question, yes
ASKER CERTIFIED SOLUTION
Avatar of Subodh Tiwari (Neeraj)
Subodh Tiwari (Neeraj)
Flag of India image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
sktneer

thanks and sorry for all the confusion. Was away from work Thurs and Fri which is why I have only just answered.
No problem. Glad that your issue is resolved.