+ Reply to Thread
Results 1 to 3 of 3

Using a =lookup() for text. no numerical values

  1. #1
    Registered User
    Join Date
    09-14-2009
    Location
    texas
    MS-Off Ver
    Excel 2003
    Posts
    16

    Using a =lookup() for text. no numerical values

    Long story short i have a a spreadsheet that is exported from a program. it lists various items that are assigned to different consultants. this program does not have the consultants managers. I need to add a column in which i can input a look up function to read the consultant name and provide the team managers name.

    i.e.

    Tab1
    column A is consultant names

    Tab2
    column A is consultant names (exactly how they would appear on Tab1)
    column B is consultant's Manager name

    I've tried

    " =lookup(Tab1!A1, Tab2!A:A, Tab2!B:B) "

    it's providing manager names but completely wrong ones. Am i missing something... i imagine i am.

    Thanks for your time.
    Last edited by screamnyak; 03-05-2010 at 04:25 PM.

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

    Re: Using a =lookup() for text. no numerical values

    Lookup by default conducts what can be described as "approximate" matches - and assumes that data (names) are listed in alphabetical order.
    If the data is not sorted or names are missing you may get unexpected results...

    You may find that a VLOOKUP with an exact match parameter is better suited to your requirements, eg:

    Tab1!B2: =VLOOKUP($A2,Tab2!$A:$B,2,0)

    If the names is not found the above would return an error to handle that:

    Tab1!B2: =IF(ISNA(MATCH($A2,Tab2!$A:$A,0)),"Missing",VLOOKUP($A2,Tab2!$A:$B,2,0))

  3. #3
    Registered User
    Join Date
    09-14-2009
    Location
    texas
    MS-Off Ver
    Excel 2003
    Posts
    16

    Re: Using a =lookup() for text. no numerical values

    perfect... i knew i was missing something!

    Thanks!

+ 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