+ Reply to Thread
Results 1 to 3 of 3

Thread: Help with Lookup or Lookdown

  1. #1
    Registered User
    Join Date
    04-25-2007
    Posts
    24

    Help with Lookup or Lookdown

    Can this somehow be done on Lookup or Lookdown?

    A number X is in H540 and I want to know if a number > or = exists in the range E541:E1320. If the answer is yes, I'd like to know what row it is in. I'm only interested in the first incidence of the number.

    Thanks

  2. #2
    Forum Guru shg's Avatar
    Join Date
    06-20-2007
    Location
    The Great State of Texas
    MS-Off Ver
    2003, 2007, 2010
    Posts
    25,773

    Re: Help with Lookup or Lookdown

    =MATCH(TRUE, H541:H1320 >= H540, 0) + ROW(H540)

    This is an array formula, which means it MUST be confirmed with Ctrl+Shift+Enter rather than just Enter. You'll know you did it right if curly braces appear around it.
    Microsoft MVP - Excel
    Entia non sunt multiplicanda sine necessitate

  3. #3
    Forum Guru martindwilson's Avatar
    Join Date
    06-23-2007
    Location
    London,England
    MS-Off Ver
    office 97 ,2007
    Posts
    10,791

    Re: Help with Lookup or Lookdown

    =MATCH(TRUE,INDEX(H541:H1320>=H540,0),0)+ROW(H540)
    normally entered
    Last edited by martindwilson; 09-03-2009 at 05:31 PM.
    "Unless otherwise stated all my comments are directed at OP"

    Mojito connoisseur and a dabbler in Cisco
    where does code go ?
    look here
    how to insert code

    how to enter array formula

    why use -- in sumproduct
    recommended reading
    wiki Mojito

    how to say no convincingly

    most important thing you need
    Martin Wilson: SPV
    and RSMBC

+ 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.2.0