Multiple Criteria

G

ggak

I am working on a roster. I need to return results based on the length of the
shift.

For Example:

A1: Start B1: End

08:00 20:00

If the start time is 08:00 And the end time is 20:00 I need to return the
following

Morning 05:30 Afternoon 05:30

Any ideas?
 
J

Jacob Skaria

Do you mean to return text Morning 05:30 Afternoon 05:30


=IF(AND(A1=TIMEVALUE("08:00"),B1=TIMEVALUE("20:00")),"Morning 05:30
Afternoon 05:30","")

If this post helps click Yes
 
R

Ron Rosenfeld

I am working on a roster. I need to return results based on the length of the
shift.

For Example:

A1: Start B1: End

08:00 20:00

If the start time is 08:00 And the end time is 20:00 I need to return the
following

Morning 05:30 Afternoon 05:30

Any ideas?


I would assume you are not looking for something simplistic, but rather are
calculating the 05:30 in each instance.

You should start by defining Morning and Afternoon. How do you derive the
05:30 in each of those cases?

--ron
 

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