+ Reply to Thread
Results 1 to 7 of 7

partially match prefix to full number

  1. #1
    Registered User
    Join Date
    09-15-2010
    Location
    bridgetown, barbados
    MS-Off Ver
    Excel 2003
    Posts
    4

    partially match prefix to full number

    I have a list of prefixes of security identifiers (column a), they range from 4 numbers to 5numbers maybe with one letter in between(within that cell). Then i have another list with the full identifier(column b), I want to compare these two lists to find full identifers with the same prefix in (column a).

    The list won't be the same in number, that is (column a) may go right down to A100 while (column b) may only go to b50.

    And most likely they won't be sorted.


    So the prefixes will be my main list, i would save in the spreadsheet alone and the numbers that would go into column b i'm importing from another spreadsheet. So I need a formula in my main spreadsheet with the prefixes to say, the full numbers i'm going to import into column b match them against all the prefixes in column a, if there's a match turn the cell in column b blue for instance.

    i hope this is clear

  2. #2
    Forum Expert teylyn's Avatar
    Join Date
    10-28-2008
    Location
    New Zealand
    MS-Off Ver
    Excel 365 Insider Fast
    Posts
    11,372

    Re: partially match prefix to full number

    A spreadsheet with some mocked up data will say more than a thousand words.

    Can you attach a file and explain in context?

    cheers,

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

    Re: partially match prefix to full number

    If you're looking to format B (complete) based on whether or not a partial match can be found in A then you could use a Conditional Format rule applied to B1:B50 along the lines of:

    Please Login or Register  to view this content.

  4. #4
    Registered User
    Join Date
    09-15-2010
    Location
    bridgetown, barbados
    MS-Off Ver
    Excel 2003
    Posts
    4

    Re: partially match prefix to full number

    I've attached a small example of what i'm looking for.
    Attached Files Attached Files

  5. #5
    Registered User
    Join Date
    09-15-2010
    Location
    bridgetown, barbados
    MS-Off Ver
    Excel 2003
    Posts
    4

    Re: partially match prefix to full number

    sorry, in my example the prefixes are in column b.

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

    Re: partially match prefix to full number

    With the revised layout - and given values are numeric - one conditional rule you could apply to A1:A11 would be:

    Please Login or Register  to view this content.

  7. #7
    Registered User
    Join Date
    09-15-2010
    Location
    bridgetown, barbados
    MS-Off Ver
    Excel 2003
    Posts
    4

    Re: partially match prefix to full number

    It works, thanks a million

+ 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