+ Reply to Thread
Results 1 to 4 of 4

Search a cell for a string that exists in a list of values

  1. #1
    Registered User
    Join Date
    01-23-2013
    Location
    Webster, MA
    MS-Off Ver
    Excel 2010
    Posts
    2

    Search a cell for a string that exists in a list of values

    Hello all -

    This one has me stumped, but would make my life MUCH easier if someone could help me out, so here goes... I have a spreadsheet which is updated monthly with approximately 1000 rows of general ledger data. In the text field from our G/L system, our AP group enters one of our budget codes, which we must extract and enter into a new field. We currently have a formula that searches for the "BL#" prefix and then pulls in the next six characters, which is supposed to be the budget code. The problem is that the folks entering the data often time type "BL #" or "BC#", etc., forcing us to go back and manually seach a large volume of data for the budget code. Is there a way to define a list of valid strings (budget codes), search a cell to see of that string exists, and then return the string if found? I've attached an example that I hope will help... Thanks in advance.Sample.xlsx

  2. #2
    Forum Expert
    Join Date
    07-16-2010
    Location
    Northumberland, UK
    MS-Off Ver
    Excel 2007 (home), Excel 2010 (work)
    Posts
    3,054

    Re: Search a cell for a string that exists in a list of values

    I'm not entirely sure which way round you're trying to do this, so how's this for you?
    Attached Files Attached Files

  3. #3
    Forum Expert bebo021999's Avatar
    Join Date
    07-22-2011
    Location
    Vietnam
    MS-Off Ver
    Excel 2016
    Posts
    9,471

    Re: Search a cell for a string that exists in a list of values

    Try it:
    =LOOKUP(2,1/SEARCH($B$3:$B$292,A3),$B$3:$B$292)
    Quang PT

  4. #4
    Registered User
    Join Date
    01-23-2013
    Location
    Webster, MA
    MS-Off Ver
    Excel 2010
    Posts
    2

    Re: Search a cell for a string that exists in a list of values

    This is EXACTLY what is was looking to accomplish. Thanks 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