• Hi All

    Please note that at the Chandoo.org Forums there is Zero Tolerance to Spam

    Post Spam and you Will Be Deleted as a User

    Hui...

  • When starting a new post, to receive a quicker and more targeted answer, Please include a sample file in the initial post.

How to create Bucket with help of If Functions

Dear Friends,

i have this list where i have to put as per the timings given.
Bucket for below timing is 9,2 and 6:30 respectively
17:00:01 23:00:00 is 9 am

23:00:01 12:00:00 is 2pm

12:00:01 17:00:00 is 6:30pm

Just wanted to know how to apply if and formula for the above criteria.

Thanks in advance for your help.

Regards,
Gaurang
 

Attachments

=IF(AND(D2>=TIMEVALUE("17:00:01"),D2<=TIMEVALUE("23:00:0")),TIMEVALUE("09:00:00"),IF(AND(D2>=TIMEVALUE("23:00:01"),D2<=TIMEVALUE("12:00:00")),TIMEVALUE("14:00:00"),TIMEVALUE("18:30:00")))
 
=IF(AND(A2>=TIMEVALUE("17:00:01"),A2<=TIMEVALUE("23:00:0")),TIMEVALUE("09:00:00"),IF(OR(A2>=TIMEVALUE("23:00:01"),A2<=TIMEVALUE("12:00:00")),TIMEVALUE("14:00:00"),TIMEVALUE("18:30:00")))

The OR was AND... Sorry about that...

Respectfully,
PaulF
 

Attachments

Hi,
Not sure this is okay:
=VALUE(LOOKUP(VALUE(D2),{0.00013,0.70833,0.95834,0.5},{"2:00:00 PM","9:00:00 AM","6:30:00 PM","2:00:00 PM"}))

Can you confirm plz?

Regards,
 
Back
Top