+ Reply to Thread
Results 1 to 5 of 5

Lookup Function

  1. #1
    Registered User
    Join Date
    03-06-2006
    Location
    Clayton, NC
    MS-Off Ver
    MS Office 2010
    Posts
    61

    Lookup Function

    I am trying to do a Lookup Function to populate some data, but am having an issue. Here is the basic Lookup code I have.
    Please Login or Register  to view this content.
    It works fine, but if there isn't a match, then it pulls the data above where it would be.

    Any thoughts?

    Thanks
    Last edited by RevJeff; 10-21-2014 at 10:07 AM.

  2. #2
    Forum Expert martindwilson's Avatar
    Join Date
    06-23-2007
    Location
    London,England
    MS-Off Ver
    office 97 ,2007
    Posts
    19,320

    Re: Lookup Function

    thats what lookup does
    from the help files
    If the LOOKUP function can't find the lookup_value, the function matches the largest value in lookup_vector that is less than or equal to lookup_value.
    what are you trying to do?
    =LOOKUP(D29,'drivers number'!B:B) would just return whatever is in d29
    do you want to check if d29 is in 'drivers number'!B:B?
    then you could use =if(countif( 'drivers number'!B:B,d29),d29,"")
    or
    =if(isnumber(match(D29,'drivers number'!B:B,0)),d29,"")
    Last edited by martindwilson; 10-21-2014 at 09:02 AM.
    "Unless otherwise stated all my comments are directed at OP"

    Mojito connoisseur and now happily retired
    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

  3. #3
    Registered User
    Join Date
    03-06-2006
    Location
    Clayton, NC
    MS-Off Ver
    MS Office 2010
    Posts
    61

    Re: Lookup Function

    Here is the whole formula.
    Please Login or Register  to view this content.
    Basically I am looking up the values in D:D and matching them against B:B from the 'drivers number' tab and then pulling the value of T:T from the 'drivers number' tab.

  4. #4
    Forum Expert martindwilson's Avatar
    Join Date
    06-23-2007
    Location
    London,England
    MS-Off Ver
    office 97 ,2007
    Posts
    19,320

    Re: Lookup Function

    try
    =index('drivers number'!T:T,match(d1,'drivers number'!B:B,0))

  5. #5
    Registered User
    Join Date
    03-06-2006
    Location
    Clayton, NC
    MS-Off Ver
    MS Office 2010
    Posts
    61

    Re: Lookup Function

    Thanks! That took care if it!

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Time Intervals, Ranges, IF function, Lookup Function
    By HDTV in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 07-23-2014, 03:52 PM
  2. [SOLVED] A lookup function based on two criteria; one unique & one not unique to the lookup table
    By Trevasaurus in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 07-18-2014, 11:35 AM
  3. Create a lookup formula with an If or Lookup function
    By afountas21 in forum Excel General
    Replies: 2
    Last Post: 09-05-2012, 06:53 PM
  4. [SOLVED] Nested IF Function or LOOKUP Function
    By rstephen in forum Excel General
    Replies: 4
    Last Post: 07-03-2012, 09:42 PM
  5. [SOLVED] Pivot table doing a lookup without using the lookup function?
    By NGASGELI in forum Excel General
    Replies: 0
    Last Post: 08-02-2005, 01:05 AM

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