Results 1 to 5 of 5

Lookup Formula: why does this work

Threaded View

  1. #1
    Forum Guru
    Join Date
    08-05-2004
    Location
    NJ
    MS-Off Ver
    365
    Posts
    13,582

    Lookup Formula: why does this work

    In A previous post,

    http://www.excelforum.com/excel-gene...ain-value.html

    in which the OP was trying to find the maximum date (Col B) in which the value in Col A occurred, DonkeyOte used this formula as a possible solution
    =LOOKUP(2,1/(Sheet1!$A$1:$A$100=$A1),Sheet1!$B$1:$B$100)
    I understand the formula somewhat; 1/Sheet1!A1:A100=A1 will give either Infinity (or #DiV/0) or a 1. However, since the values in A are not in order (thus giving a search of something like 1, #DIV, # DIV, 1, ...) how would the formula know when the last value is? Does it go to the end and work backwards?

    Thanks
    Last edited by ChemistB; 11-10-2009 at 12:04 PM.
    ChemistB
    My 2?

    substitute commas with semi-colons if your region settings requires
    Don't forget to mark threads as "Solved" (Edit First post>Advanced>Change Prefix)
    If I helped, Don't forget to add to my reputation (click on the little star at bottom of this post)

    Forum Rules: How to use code tags, mark a thread solved, and keep yourself out of trouble

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