Closed Thread
Results 1 to 2 of 2

IF, AND, OR combination in formula

  1. #1
    Forum Contributor
    Join Date
    07-09-2013
    Location
    Dunedin, New Zealand
    MS-Off Ver
    Excel 2016
    Posts
    105

    IF, AND, OR combination in formula

    Hi again

    I spoke too soon

    Martin Wilson suggested the following:-

    hm it had problems but this is better
    =IF(OR(AND(A2>=VALUE("12:00:00"),B2<VALUE("12:40:00")),AND(A2>=VALUE("16:00:00"),B2<VALUE("16:40:00"))),(A2-MOD(A2, 40/24/60)),(A2-MOD(A2,30/24/60)))

    The 40 and the 30 need reversing but I have tried this on a full set of data and......................

    The formula is producing 30 minute time buckets at times other than 12:00 - 12:39 and 16:00 thru 16:39

    How odd?

    So still not what I am seeking

    Bob M

  2. #2
    Forum Moderator jeffreybrown's Avatar
    Join Date
    02-19-2009
    Location
    Cibolo, TX
    MS-Off Ver
    Office 365
    Posts
    10,316

    Re: IF, AND, OR combination in formula

    Welcome to the Forum, unfortunately:

    This is a duplicate post and as such does not comply with Rule 5 of our forum rules. This thread will now be closed, you may continue in your other thread.

    Thread Closed.
    HTH
    Regards, Jeff

Closed Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Combination formula
    By angelina5678 in forum Excel General
    Replies: 4
    Last Post: 05-12-2010, 12:15 PM
  2. Combination Formula Help
    By cfritz in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 12-02-2006, 08:07 AM
  3. Help with a combination of formula's
    By Smiles in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 01-03-2006, 11:45 PM
  4. [SOLVED] Combination Formula
    By Phil Hageman in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 10-12-2005, 06:05 PM
  5. Sum and If combination formula
    By Kim via OfficeKB.com in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 03-01-2005, 06:06 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1