+ Reply to Thread
Results 1 to 3 of 3

VLookup

  1. #1
    Registered User
    Join Date
    04-16-2004
    Posts
    2

    Thumbs up VLookup

    I have a spreadsheet with two worksheets.

    Sheet 1 contains the following columns and data.

    Column A
    XYZ000009
    XYZ000010
    XYZ000011
    XYZ000012

    Column B
    Bloggs & Co
    Smith Ltd
    Acme & Co
    Cooper Ltd

    Sheet 2 contains the following:

    Column A
    XYZ00001
    XYZ00009
    XYZ000010
    XYZ000011
    XYZ000012

    Column B
    NO ID
    #REF!
    #REF!
    #REF!
    #REF!

    I basically want column B to be populated with the details from Sheet1, Column B if A = A and if not found populate with the text "NO ID". However for valid results, I'm getting #REF!

    The formula I'm using is:

    =IF(ISNA(VLOOKUP(A1,Sheet1!A:A,Sheet1!B:B,FALSE)),"No APW ID",VLOOKUP(A1,Sheet1!A:A,Sheet1!B:B,FALSE))

    I'm assuming this is because the value of Column A is text and not a numerical value but am having a real blonde moment as to how I can solve this.

    Thanks in advance for any help with this
    Last edited by caros; 01-14-2009 at 07:10 AM. Reason: Resolved

  2. #2
    Forum Contributor EdMac's Avatar
    Join Date
    01-23-2006
    Location
    Exeter, UK
    MS-Off Ver
    2003
    Posts
    1,264
    =IF(ISNA(VLOOKUP(A1,Sheet1!A:A,Sheet1!B:B,FALSE)),"No APW ID",VLOOKUP(A1,Sheet1!A:A,Sheet1!B:B,FALSE))
    try

    Please Login or Register  to view this content.
    Ed
    _____________________________
    Always learning, but never enough!
    _____________________________

  3. #3
    Registered User
    Join Date
    04-16-2004
    Posts
    2
    Wonderful, works a treat.

    Thanks you so much

+ 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