+ Reply to Thread
Results 1 to 9 of 9

Simple Find Values?

  1. #1
    Registered User
    Join Date
    11-24-2008
    Location
    UK
    Posts
    28

    Exclamation Simple Find Values?

    Ok so I got a cell value and I want to check if it exists in another table. Problem is the second table splits the value and moves the last 2 chars on the right into the next column like this :

    4112JJPV

    4112JJ PV



    Ive tried using vlookup with a LEFT(cell1,6)
    and a RIGHT(cell1,2) in place of other values but im having no luck.

    I need to check for the first 6 characters then if the next column the value is equal to the last 2 character on the right I would like a True value returned.

    I eve tried IF(AND(COUNTIF( but im just getting errors ect

    any help please??


    Thanks - James
    Last edited by James_C; 07-06-2009 at 07:49 AM.

  2. #2
    Forum Contributor
    Join Date
    02-23-2006
    Location
    Near London, England
    MS-Off Ver
    Office 2003
    Posts
    770

    Re: Simple Find Values?

    You should be able to do it like this:

    Please Login or Register  to view this content.
    Where in this example;
    A1 contained 4112JJPV

    C1 contained 4112JJ
    D1 contained PV

    So C1 and D1 would be the cells in your 'other table' and A1 would be the cell you are comparing it to.

    EDIT Ooops, sorry, I think perhaps I didn't quite understand the question, in which case the above will be no use to you. I don't think you can use VLOOKUP as that will only return the first instance of the first 6 characters it finds in your 'other' table. You would perhaps either need to add another column to your 'other table' that joins the 2 parts together again, and then check against that, or else use a VBA macro.
    Last edited by Phil_V; 07-06-2009 at 06:22 AM. Reason: Misunderstood
    If you find the response helpful please click the scales in the blue bar above and rate it
    If you don't like the response, don't bother with the scales, they are not for you

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

    Re: Simple Find Values?

    If we assume

    Sheet1!A1: 4112JJPV

    Sheet2!A holds 6 chars and B 2 chars

    Sheet1!B1:
    =ISNUMBER(LOOKUP(2,1/(Sheet2!$A$1:$A$100&Sheet2!$B$1:$B$100=$A1)))

    TRUE means match found.

  4. #4
    Registered User
    Join Date
    11-24-2008
    Location
    UK
    Posts
    28

    Cool Re: Simple Find Values?

    That is beautifully simple compared to the monster i got myself into earlier lol but C1 and D1 is too specific unfortunately. They would infact have to be Column C and D if thats possible ?

    Thanks

  5. #5
    Registered User
    Join Date
    11-24-2008
    Location
    UK
    Posts
    28

    Re: Simple Find Values?

    Quote Originally Posted by DonkeyOte View Post
    If we assume

    Sheet1!A1: 4112JJPV

    Sheet2!A holds 6 chars and B 2 chars

    Sheet1!B1:
    =ISNUMBER(LOOKUP(2,1/(Sheet2!$A$1:$A$100&Sheet2!$B$1:$B$100=$A1)))

    TRUE means match found.



    Awsome tyvm!

  6. #6
    Forum Contributor
    Join Date
    02-23-2006
    Location
    Near London, England
    MS-Off Ver
    Office 2003
    Posts
    770

    Question Re: Simple Find Values?

    Quote Originally Posted by DonkeyOte View Post
    If we assume

    Sheet1!A1: 4112JJPV

    Sheet2!A holds 6 chars and B 2 chars

    Sheet1!B1:
    =ISNUMBER(LOOKUP(2,1/(Sheet2!$A$1:$A$100&Sheet2!$B$1:$B$100=$A1)))

    TRUE means match found.
    D.O:

    Would you mind explaining the breakdown of that LOOKUP for me please? Is it evaluating and comparing the whole range in one go somehow?

    Thanks

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

    Re: Simple Find Values?

    Have a look at this similar thread in which I tried to provide a detailed explanation - hopefully it gives you the info you want ?

    http://www.excelforum.com/excel-2007...-function.html

  8. #8
    Registered User
    Join Date
    11-24-2008
    Location
    UK
    Posts
    28

    Re: Simple Find Values?

    Truelt brilliant explaination... one day id hope to have knowledge like that .. Until that day I'll just get older

  9. #9
    Forum Contributor
    Join Date
    02-23-2006
    Location
    Near London, England
    MS-Off Ver
    Office 2003
    Posts
    770

    Re: Simple Find Values?

    Thanks D.O, off to have a read

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Tags for this Thread

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