+ Reply to Thread
Results 1 to 12 of 12

VLOOKUP Search String Against List of Numbers

  1. #1
    Registered User
    Join Date
    09-02-2014
    Location
    Texas
    MS-Off Ver
    2010
    Posts
    5

    VLOOKUP Search String Against List of Numbers

    I am a little stumped by this. I have a column with application names and unique IDs, comma separated. APPNAME - (APPID), APPNAME - (APPID), etc., variable number of records per row. I have a list of appid numbers as well, and I'd like to mark every row that contains an appid from my list.

    So, I have

    A | B | C
    RowID | Apps | Match?
    Row1 | APPNAME - (APPID), APPNAME - (APPID), APPNAME - (APPID), APPNAME - (APPID), APPNAME - (APPID) | X
    Row2 | APPNAME - (APPID), APPNAME - (APPID), APPNAME - (APPID) |
    Row3 | APPNAME - (APPID) | X

    And
    A | B
    AppID | X

    Is there an easy way to do this?

  2. #2
    Valued Forum Contributor
    Join Date
    01-19-2012
    Location
    Barrington, IL
    MS-Off Ver
    Excel 2007/2010
    Posts
    1,211

    Re: VLOOKUP Search String Against List of Numbers

    Try this:

    =IF(ISERROR(SEARCH("APPID",A1)),"","X")
    You should hit F5, because chances are I've edited this post at least 5 times.
    Example of Array Formulas
    Quote Originally Posted by Jacc View Post
    Sorry, your description makes no sense. I just made some formula that looks interesting cause I had nothing else to do.
    Click the * below on any post that helped you.

  3. #3
    Registered User
    Join Date
    09-02-2014
    Location
    Texas
    MS-Off Ver
    2010
    Posts
    5

    Re: VLOOKUP Search String Against List of Numbers

    No dice, but maybe I didn't put it in right (or maybe I didn't describe my issue enough). I have a list of APPID numbers that I need to find in bigger strings of varying sizes.

  4. #4
    Valued Forum Contributor
    Join Date
    01-19-2012
    Location
    Barrington, IL
    MS-Off Ver
    Excel 2007/2010
    Posts
    1,211

    Re: VLOOKUP Search String Against List of Numbers

    =IF(ISERROR(SEARCH("APPID",A1)),"","X")


    Change A1 to match the cell your string is in.

  5. #5
    Registered User
    Join Date
    09-02-2014
    Location
    Texas
    MS-Off Ver
    2010
    Posts
    5

    Re: VLOOKUP Search String Against List of Numbers

    The formula resolves, but it's not returning positive results.

    =IF(ISERROR(SEARCH(Sheet1!$A$1:$A$123,BF2)),"","X")

    The range specified contains the list of numbers I'm trying to match against, and the cell BF2 contains one of the strings.

  6. #6
    Valued Forum Contributor mahju's Avatar
    Join Date
    11-27-2010
    Location
    Pakistan, Faisalabad
    MS-Off Ver
    Excel 2010 plus
    Posts
    730

    Re: VLOOKUP Search String Against List of Numbers

    How your list of App. Id is organized
    see attached for an example
    Thanks
    Attached Files Attached Files
    Mark the thread as solved if you are satisfied with the answer.


    In your first post under the thread tools.

    Mahju

  7. #7
    Valued Forum Contributor
    Join Date
    01-19-2012
    Location
    Barrington, IL
    MS-Off Ver
    Excel 2007/2010
    Posts
    1,211

    Re: VLOOKUP Search String Against List of Numbers

    Nevermind this post.
    Last edited by Speshul; 09-02-2014 at 03:12 PM.

  8. #8
    Forum Expert newdoverman's Avatar
    Join Date
    02-07-2013
    Location
    Port Dover, Ontario, Canada
    MS-Off Ver
    2010
    Posts
    10,330

    Re: VLOOKUP Search String Against List of Numbers

    If you are trying to determine if APID is in any cell in a row, you can use a formula with this syntax that counts the number of times that APPID is found in the cells A1 to D1. (short example).

    Formula: copy to clipboard
    Please Login or Register  to view this content.


    You can then surround this with an IF to give a message instead of a number if you want

    Formula: copy to clipboard
    Please Login or Register  to view this content.
    <---------If you like someone's answer, click the star to the left of one of their posts to give them a reputation point for that answer.
    Ron W

  9. #9
    Registered User
    Join Date
    09-02-2014
    Location
    Texas
    MS-Off Ver
    2010
    Posts
    5

    Re: VLOOKUP Search String Against List of Numbers

    Quote Originally Posted by mahju View Post
    How your list of App. Id is organized
    see attached for an example
    Thanks
    It is a column of numbers:

    APPID
    12345
    12346
    12347
    12349
    etc.

    Quote Originally Posted by newdoverman View Post
    If you are trying to determine if APID is in any cell in a row, you can use a formula with this syntax that counts the number of times that APPID is found in the cells A1 to D1. (short example).

    Formula: copy to clipboard
    Please Login or Register  to view this content.


    You can then surround this with an IF to give a message instead of a number if you want

    Formula: copy to clipboard
    Please Login or Register  to view this content.
    If APPID is an array, will this still work?

    I appreciate your guys' help on this.

  10. #10
    Forum Expert newdoverman's Avatar
    Join Date
    02-07-2013
    Location
    Port Dover, Ontario, Canada
    MS-Off Ver
    2010
    Posts
    10,330

    Re: VLOOKUP Search String Against List of Numbers

    With your values in a column, change the cell references to the column rather than rows.

    The above formulae for a column instead of a row.

    Formula: copy to clipboard
    Please Login or Register  to view this content.


    Formula: copy to clipboard
    Please Login or Register  to view this content.


    This YouTube video may be of help to you.

    https://www.youtube.com/watch?v=xl5YVzw%2DDYQ

  11. #11
    Registered User
    Join Date
    09-02-2014
    Location
    Texas
    MS-Off Ver
    2010
    Posts
    5

    Re: VLOOKUP Search String Against List of Numbers

    "APPID," that I'm trying to find in various strings, is a list of several possible values, though. There is not just one APPID to match. Sorry if I was not clear on that.

    One hacky solution that I'm playing around with right now is to make an column for each of the 123 possible APPIDs, search the string for each one individually, and then add up the results, anything > 0 being a match.

  12. #12
    Forum Expert newdoverman's Avatar
    Join Date
    02-07-2013
    Location
    Port Dover, Ontario, Canada
    MS-Off Ver
    2010
    Posts
    10,330

    Re: VLOOKUP Search String Against List of Numbers

    The video that I gave you the link for, gives you a good example of using "wild cards" with a list to lookup against a list. I think that the video is a good "fit" for what you want to do. All that it really comes down to is replacing the "APPID" with a cell reference in a formula.

    It sounds like you should have 1 column with all of the APPIDS rather that having a column for each...

    If the video doesn't help, post a workbook with a good representation of what you want to do.

+ 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. [SOLVED] search for all unique numbers down a column and print a list of those numbers in another
    By JJGF in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 06-05-2014, 11:08 PM
  2. [SOLVED] Vlookup, Match (Search or Find) partial string within string in a Cell
    By dluhut in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 05-28-2013, 12:40 PM
  3. Search for a string different sequences same numbers in array
    By ricklou in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 12-19-2012, 10:18 AM
  4. [SOLVED] Search part of a string using vlookup
    By newbi004 in forum Excel Programming / VBA / Macros
    Replies: 15
    Last Post: 10-19-2012, 01:25 PM
  5. string search w/ vlookup
    By VTdude12 in forum Excel Programming / VBA / Macros
    Replies: 8
    Last Post: 10-09-2009, 01:32 PM

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