• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 203
  • Last Modified:

Multiple if and or statements

Hi All!

I have a table that requires us to look at the time variance and assess if it is between X and Y then give us Z.  Also, it is possible that time 1 could be smaller than time 2.  

I've attached a small excel sheet for clarity.  

Thanks so much!  

1 Solution
barry houdiniCommented:
Try this formula in C2 copied down


If you want to do it without the table

=LOOKUP(ABS(A2-B2)*1440,{0;16;31;46;61},{"0-15 Minutes";"16-30 Minutes";"31-45 Minutes";"46-60 Minutes";"> 61 Minutes"})

regards, barry
Not sure but is this what you want?

barry houdiniCommented:
Actually Stephen, I was just coming round to that myself, presumably you don't need the ABS though, perhaps


regards, barry
What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

Barry, indeed not, I began by thinking the direction of difference didn't matter, but then realised probably not so but forgot to remove the ABS.
kgerbChief EngineerCommented:
Another alternative:

spudmccAuthor Commented:
Thank you all!  

The response from barryhoudini was the best fit for my requirements.  I so much appreciate all of your talent, time and patience with us "newbies".  

spudmcc (Andy)

Featured Post

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Tackle projects and never again get stuck behind a technical roadblock.
Join Now