+ Reply to Thread
Results 1 to 3 of 3

Index & Match

  1. #1
    Forum Contributor
    Join Date
    05-05-2006
    Posts
    143

    Index & Match

    Hi all,

    I have traditionally used the following forumula:
    =INDEX($E$1:$AZ$1,MATCH(MAX(E3:AZ3),E3:AZ3,0))

    to match a value from row 3 with the corresponding header in Row 1.

    I have made a quick table that shows up times staff are supposed to work on a specific task.

    example:
    in Row E1 to AZ1 are the times of the day ~ 00:00 to 23:30
    in
    A3 SamPrince & E3 to AZ3 cells in which I can put a 1 in if I am working then.

    These are then conditionally formatted to go Orange if I put a 1 in.

    in AR1:AU1 I have entered 1's

    as such to showing working from 19:30 to 21:30

    in C3 I wish to match the start time I.e the furst colum left with a 1 in it, & in D3 match the end time, ie the colum furthest right with a 1 in it.

    Any ideas?
    Ty
    SP

  2. #2
    Forum Contributor
    Join Date
    03-13-2005
    Posts
    6,195
    Quote Originally Posted by samprince
    Hi all,

    I have traditionally used the following forumula:
    =INDEX($E$1:$AZ$1,MATCH(MAX(E3:AZ3),E3:AZ3,0))

    to match a value from row 3 with the corresponding header in Row 1.

    I have made a quick table that shows up times staff are supposed to work on a specific task.

    example:
    in Row E1 to AZ1 are the times of the day ~ 00:00 to 23:30
    in
    A3 SamPrince & E3 to AZ3 cells in which I can put a 1 in if I am working then.

    These are then conditionally formatted to go Orange if I put a 1 in.

    in AR1:AU1 I have entered 1's

    as such to showing working from 19:30 to 21:30

    in C3 I wish to match the start time I.e the furst colum left with a 1 in it, & in D3 match the end time, ie the colum furthest right with a 1 in it.

    Any ideas?
    Ty
    SP
    Hi,

    =OFFSET($F$1,0,MATCH(1,F2:AZ2,0)-1)

    will find the first

    and

    =OFFSET($F$1,0,MATCH(1,F2:AZ2,0)-1+COUNTIF(F2:AZ2,1))

    the second

    hth
    ---
    Last edited by Bryan Hessey; 02-15-2007 at 08:11 PM.
    Si fractum non sit, noli id reficere.

  3. #3
    Forum Expert daddylonglegs's Avatar
    Join Date
    01-14-2006
    Location
    England
    MS-Off Ver
    Microsoft 365
    Posts
    14,719
    I'm assuming that the cells without 1s are blank.....

    Try this formula in C3

    =INDEX(E$1:AZ$1,MATCH(1,E3:AZ3,0))

    and this in D3

    =LOOKUP(2,E3:AZ3,E$1:AZ$1)+1/48

    both formatted as time

+ 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