+ Reply to Thread
Results 1 to 2 of 2

Multiple IF Statment

  1. #1
    Registered User
    Join Date
    10-06-2010
    Location
    Dunstable,England
    MS-Off Ver
    Excel 2010
    Posts
    95

    Multiple IF Statment

    Hi I have the a work book where a use would select a start and finish time (hh:mm format) which will then populate a table with 1 and 0's.


    the table looks like this but covers the 24 hour clock in 15 minute intervals.

    D E F G H I J K
    START FINISH 00:00 00:15 00:30 00:45 01:00 01:15
    21:00 23:45 0 0 0 0 0 0

    The formula i have so far is

    Please Login or Register  to view this content.
    The table will popluate fine unles the start and finsh time cross midnight.

    Would anyone be able to help or point in the right direction to solve this?

    Many thanks

    nods

    Rota.xls


    What I want to acheive for example is that if the start time is 22:00 and finish is 01:00 then the table should populate from 22:00 to 23:45 with 1's on the right and from 00:00 to 01:00 with 1's on the left.
    Last edited by nods; 12-01-2010 at 10:44 AM. Reason: additional info

  2. #2
    Forum Expert daddylonglegs's Avatar
    Join Date
    01-14-2006
    Location
    England
    MS-Off Ver
    2016
    Posts
    14,675

    Re: Multiple IF Statment

    Try like this

    =(($D4<=G$3)+($E4>=H$3)+($D4>=$E4)=2)+0
    Last edited by daddylonglegs; 12-01-2010 at 12:32 PM.
    Audere est facere

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

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