+ Reply to Thread
Results 1 to 2 of 2

Array Formula: my problem for some help

Hybrid View

  1. #1
    Registered User
    Join Date
    12-07-2007
    Location
    Philadelphia, PA
    Posts
    18

    Array Formula: my problem for some help

    Hello,

    Please find attached a sample copy of the spreadsheet I'm working with.

    In it, you'll see 4 columns. The first 3, Classroom, Start, and End, are my knowns. The last column, I'd like to create a formula to solve for either TRUE or FALSE based on the other columns. The cell should return TRUE if the Start and End times conflict with another Start and End time for the same Classroom, and FALSE if there are no conflicts.

    I think you need to use an array formula to make it work, but since I'm so bad with those, I thought I might post my problem for some help. Any and all help would be greatly appreciated!

    Thank you so much in advance

    John
    Attached Files Attached Files
    Last edited by XLHead; 10-06-2010 at 12:36 PM.

  2. #2
    Forum Guru DonkeyOte's Avatar
    Join Date
    10-22-2008
    Location
    Northumberland, UK
    MS-Off Ver
    O365
    Posts
    21,531

    re: Array Formula: my problem for some help

    If I've understood...

    D2:
    =IF(COUNTIF($A$2:$A$5,$A2)=1,FALSE,SUMPRODUCT(--($A$2:$A$5=$A2),--(ROW($A$2:$A$5)<>ROW()),SIGN((($B$2:$B$5>=$B2)*($B$2:$B$5<=$C2))+(($C$2:$C$5>=$B2)*($C$2:$C$5<=$C2))+(($B$2:$B$5<=$B2)*($C$2:$C$5>=$C2))))>0)
    copied down
    on large datasets the above will not perform well however... SUMPRODUCT (like an Array) is pretty inefficient.

+ 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