• 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.

Checking Multiple conditions

Desiturtle

New Member
I have to check multiple conditions to return a specific value.

If between two date values + between two time values + between two day values --->all are true then return a value else a different value...I cant get to do it with if and AND as it gets too confusing.

Any simple formula to do this please?
 
Hi ,

Excel generally has many ways of doing the same thing ; here is one other way of doing what you want :

=IF(COUNTIFS(B2,">=01-01-2017",B2,"<=30-08-2017",C2,">=1", C2,"<=5", D2, ">=08:00:00", D2, "<=17:30:00"), 1.5, 1)

Narayan
Thanks...it helps !
 
Back
Top