+ Reply to Thread
Results 1 to 4 of 4

Double lookup condition required

  1. #1
    Registered User
    Join Date
    08-08-2005
    Posts
    76

    Double lookup condition required

    I am having trouble with the attached excel file. In simple terms, the user needs to fill in 2, non related values (day and time) and Excel is suppose to find the unique combination and return 4 individual values which is unique to that date and time.

    I have tried INDEX with double MATCH commands and it refuses to work . I prefer not to use VLOOKUP as the data need to be arranged in ascending order and I don't think it is possible. The date is in ascending order but the time cycles every new day (6 hour periods).

    Any assistance would be highly appreciated.
    Attached Files Attached Files
    Last edited by DonkeyOte; 08-03-2009 at 03:11 AM.

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

    Re: Double lookup condition required - confusing!

    Based on your file

    D19: =LOOKUP(2,1/(($B$4:$B$11=$B19)*($C$4:$C$11=$C19)),D$4:D$11)
    copied across to G19

    (if you're running XL2007 you could use SUMIFS)

  3. #3
    Registered User
    Join Date
    08-08-2005
    Posts
    76

    Re: Double lookup condition required

    Thank you DonkeyOte! Thats perfect - exactly what I was looking for.

    For my future understanding (rather than just copying someone else's code) - I understand the part after "2,1/", however looking at Microsoft Office Help lookup menu - I could not find the meaning of the 2, 1 and the "/" divide sign.

    Can you pl shed a little light on what the parameters mean?

    Many thanks again

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

    Re: Double lookup condition required

    There have been a few explanations of the 2/1 method recently, daddylonglegs put a nice one together yesterday... I did one a while back and though the syntax of the test itself is not the same (ie that after the 1/... ) the general premise behind the method is identical, hopefully you will be able to make sense of it from that ?

    http://www.excelforum.com/excel-2007...-function.html

    (post #11 onwards really)

+ 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