+ Reply to Thread
Results 1 to 5 of 5

How do i look up a time in a row data that is specific to a name

  1. #1
    Forum Contributor
    Join Date
    04-02-2010
    Location
    penrith
    MS-Off Ver
    Excel 2007
    Posts
    522

    How do i look up a time in a row data that is specific to a name

    Hi,

    I am trying to display a date and time from a list that uses 2 criteria to lookup the required values (Name and Appointment Nunber). Please see attached sheet,

    Thanks in advance.
    Attached Files Attached Files

  2. #2
    Forum Expert
    Join Date
    03-23-2004
    Location
    London, England
    MS-Off Ver
    Excel 2019
    Posts
    7,064

    Re: How do i look up a time in a row data that is specific to a name

    in C2
    =INDEX(Data!A$2:D$11,MATCH(B2,IF(A2=Data!A$2:A$11,Data!B$2:B$11,""),0),3)
    in D2
    =INDEX(Data!A$2:D$11,MATCH(B2,IF(A2=Data!A$2:A$11,Data!B$2:B$11,""),0),4)

    NOTE: These are Array formulas, enter using Ctrl-Shift-Enter
    Regards
    Special-K

    Ensure you describe your problem clearly, I have little time available to solve these problems and do not appreciate numerous changes to them.

  3. #3
    Forum Contributor
    Join Date
    04-02-2010
    Location
    penrith
    MS-Off Ver
    Excel 2007
    Posts
    522

    Re: How do i look up a time in a row data that is specific to a name

    That works great but how would i incorporate it into the following formula?

    =IF(VLOOKUP($F$4,client_list2,30,FALSE)="","",VLOOKUP($F$4,client_list2,29,FALSE)&" "&VLOOKUP($F$4,client_list2,30,FALSE)&" "&$X$4&" "&TEXT($AC$4,"dddd dd mmmm yyyy"&" "&"at"))

    I need the result to follow the formulas actions soI would need it to look something like this

    =IF(VLOOKUP($F$4,client_list2,30,FALSE)="","",VLOOKUP($F$4,client_list2,29,FALSE)&" "&VLOOKUP($F$4,client_list2,30,FALSE)&" "&$X$4&" "&TEXT($AC$4,"dddd dd mmmm yyyy"&" "&"at"&" "&INDEX(Appointments!B5:H1233,MATCH(2,IF($F$4=Appointments!B5:B1233,Appointments!H5:H1233,""),0),5)

    It wont accept the new longer formula even as a array formula any ideas?

    Cheers

    JD

  4. #4
    Forum Contributor
    Join Date
    04-02-2010
    Location
    penrith
    MS-Off Ver
    Excel 2007
    Posts
    522

    Re: How do i look up a time in a row data that is specific to a name

    Also is there a shorter way to get the same result?

  5. #5
    Forum Expert azumi's Avatar
    Join Date
    12-10-2012
    Location
    YK, Indonesia
    MS-Off Ver
    Excel 2019
    Posts
    2,368

    Re: How do i look up a time in a row data that is specific to a name

    in C2
    =VLOOKUP($A$2,IF(Data!$B$2:$B$11=$B$2,Data!$A$2:$D$11,""),3,FALSE)

    in D2
    =VLOOKUP($A$2,IF(Data!$B$2:$B$11=$B$2,Data!$A$2:$D$11,""),4,FALSE)

    NOTE: These are Array formulas, enter using Ctrl-Shift-Enter

+ 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