+ Reply to Thread
Results 1 to 9 of 9

Extracting Key words out of a cell with numbers, letters and letter and numbers together

  1. #1
    Registered User
    Join Date
    05-19-2015
    Location
    Nebraska, United States
    MS-Off Ver
    2010
    Posts
    2

    Extracting Key words out of a cell with numbers, letters and letter and numbers together

    169 MERCHANT BNK 1680338392DEPOSIT 324050609993 09100001137600715121

    I have the following text in a cell. I am trying to export the words "merchant bnk" and Deposit so then I can do a vlookup.

    =IFERROR(INDEX({"MERCHANT";"DEPOSIT"},MATCH(1,INDEX(COUNTIF(A3,{"*Merchant*";"*DEPOSIT*"}),0),0)),"") I tried this formula but it only pulled the word "merchant" out. I have 16 different words that I need to pull out of multiple line descriptions.

    Any help would be greatly appreciated.

  2. #2
    Forum Expert Ron Coderre's Avatar
    Join Date
    03-22-2005
    Location
    Boston, Massachusetts
    MS-Off Ver
    2013, 2016, O365
    Posts
    6,996

    Re: Extracting Key words out of a cell with numbers, letters and letter and numbers togeth

    Can you give us more sanitized examples and what you want to see returned, based on the samples?
    ...and the list of words to find?
    Ron
    Former Microsoft MVP - Excel (2006 - 2015)
    Click here to see the Forum Rules

  3. #3
    Forum Moderator
    Join Date
    01-21-2014
    Location
    St. Joseph, Illinois U.S.A.
    MS-Off Ver
    Office 365 v 2403
    Posts
    13,406

    Re: Extracting Key words out of a cell with numbers, letters and letter and numbers togeth

    Welcome to the Forum jrae39.

    If you will upload a sample Excel file (not pics, please) it will be simpler / easier to answer your questions. Be sure to desensitize all your data and include enough sample representative of the data you are working with.

    To upload a file click Advance below. Then scroll down and click Manage Attachments. In the dialogue box click Add then browse (select your file) click upload and then click Done (lower right hand corner).

  4. #4
    Valued Forum Contributor
    Join Date
    05-20-2013
    Location
    Ohio, USA
    MS-Off Ver
    Excel 2013
    Posts
    941

    Re: Extracting Key words out of a cell with numbers, letters and letter and numbers togeth

    What do you want to pull out if it contains both?

    Your formula will only result in MERCHANT, DEPOSIT, or "".

  5. #5
    Registered User
    Join Date
    05-19-2015
    Location
    Nebraska, United States
    MS-Off Ver
    2010
    Posts
    2

    Re: Extracting Key words out of a cell with numbers, letters and letter and numbers togeth

    169 MERCHANT BNK 1680338392DEPOSIT 427165761995 09100001562675915124
    169 WELLPARTNEGE 931257282A340B Pay SMCH 12113752124148815121
    469 AMERICAN EXP 1134992250AXP DISCNT1260563325 09100001338808615125
    469 AMERICAN EXP 1134992250COLLECTION1260563325 09100001018850815121
    469 CATHOLIC HEA 747061737389AP 0400741NATA 11100002657117215121
    469 MCKESSON DRU 9991000992AUTO ACH ACH02503576 09100001824441515127

    MERCHANT BNK DEPOSIT
    MCKESSON DRU AUTO ACH
    AMERICAN EXP AXP DISCNT
    AMERICAN EXP COLLECTION
    CATHOLIC HEA AP
    MCKESSON DRU AUTO ACH


    The bottom information is what I am trying to extract out of the the information. It would be like the top stuff would be in column A and the info I am trying to extract would be in column B. This is the first time I have attempted a formula for extracing info.
    Last edited by jrae39; 05-20-2015 at 08:08 AM.

  6. #6
    Valued Forum Contributor
    Join Date
    05-20-2013
    Location
    Ohio, USA
    MS-Off Ver
    Excel 2013
    Posts
    941

    Re: Extracting Key words out of a cell with numbers, letters and letter and numbers togeth

    Using the following User Defined Function (UDF) will get you close(r).
    Please Login or Register  to view this content.
    You can find instructions for creating a UDF on the 'net.

    The in B1, copied down...
    Please Login or Register  to view this content.
    Used on your example list returns:
    MERCHANT BNK DEPOSIT
    WELLPARTNEGE AB Pay SMCH
    AMERICAN EXP AXP DISCNT
    AMERICAN EXP COLLECTION
    CATHOLIC HEA AP NATA
    MCKESSON DRU AUTO ACH ACH

  7. #7
    Forum Guru AlKey's Avatar
    Join Date
    07-20-2009
    Location
    Lakeland, FL USA
    MS-Off Ver
    Microsoft Office 2010/ Office 365
    Posts
    8,903

    Re: Extracting Key words out of a cell with numbers, letters and letter and numbers togeth

    or use SUBSTITUTE

    =TRIM(SUBSTITUTE(SUBSTITUTE(SUBSTITUTE(SUBSTITUTE(SUBSTITUTE(SUBSTITUTE(SUBSTITUTE(SUBSTITUTE(SUBSTITUTE(SUBSTITUTE(A1,0,""),1,""),2,""),3,""),4,""),5,""),6,""),7,""),8,""),9,""))

    Row\Col
    A
    B
    1
    169 MERCHANT BNK 1680338392DEPOSIT 427165761995 09100001562675915124 MERCHANT BNK DEPOSIT
    2
    169 WELLPARTNEGE 931257282A340B Pay SMCH 12113752124148815121 WELLPARTNEGE AB Pay SMCH
    3
    469 AMERICAN EXP 1134992250AXP DISCNT1260563325 09100001338808615125 AMERICAN EXP AXP DISCNT
    4
    469 AMERICAN EXP 1134992250COLLECTION1260563325 09100001018850815121 AMERICAN EXP COLLECTION
    5
    469 CATHOLIC HEA 747061737389AP 0400741NATA 11100002657117215121 CATHOLIC HEA AP NATA
    6
    469 MCKESSON DRU 9991000992AUTO ACH ACH02503576 09100001824441515127 MCKESSON DRU AUTO ACH ACH
    If you like my answer please click on * Add Reputation
    Don't forget to mark threads as "Solved" if your problem has been resolved

    "Nothing is so firmly believed as what we least know."
    --Michel de Montaigne

  8. #8
    Valued Forum Contributor nigelbloomy's Avatar
    Join Date
    11-06-2013
    Location
    USA
    MS-Off Ver
    Excel 2010
    Posts
    1,011

    Re: Extracting Key words out of a cell with numbers, letters and letter and numbers togeth

    This doesn't work to shorten the formula from AlKey. Any idea why?

    Please Login or Register  to view this content.
    EDIT: I have used the curly brackets inside a formula before to create an array. The formula usually searches all of the values in the array. In this case the formula just takes the first value (0) and doesn't look at the other values.
    Last edited by nigelbloomy; 05-20-2015 at 10:41 AM.

  9. #9
    Forum Expert Ron Coderre's Avatar
    Join Date
    03-22-2005
    Location
    Boston, Massachusetts
    MS-Off Ver
    2013, 2016, O365
    Posts
    6,996

    Re: Extracting Key words out of a cell with numbers, letters and letter and numbers togeth

    • Select the cell with that formula
    • Press F2....Press F9
    That will show you the formula results.

    • Press ESC to restore the formula

+ 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] Extracting numbers with letters
    By JakeMann in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 08-21-2014, 09:05 AM
  2. [SOLVED] finding letters within numbers and returning words
    By JakeMann in forum Excel Formulas & Functions
    Replies: 11
    Last Post: 09-09-2013, 09:34 AM
  3. [SOLVED] I need a macro that allows only lists of numbers and not letters or words
    By denisirio in forum Excel Programming / VBA / Macros
    Replies: 16
    Last Post: 10-24-2012, 12:01 PM
  4. Replies: 2
    Last Post: 05-10-2010, 03:17 PM
  5. Extracting Letters and Numbers in a random Alphanumeric String
    By rajbhar_s in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 01-03-2010, 08:07 AM

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