+ Reply to Thread
Results 1 to 5 of 5

How to ask formula to search for multiple values within one search?

  1. #1
    Registered User
    Join Date
    08-17-2011
    Location
    Austin
    MS-Off Ver
    Excel 2010
    Posts
    4

    How to ask formula to search for multiple values within one search?

    I need one formula to copy and paste the checkcard data changing it from this "CHECKCARD XXXXXX5623" to "CHECKCARD 5623", but I need one formula to look for multiple known checkcard numbers. I will have more then one typically in the bank download so I need to search and copy at least two known numbers as shown below.

    I am providing the formula that I am using right now, "=IF(ISNUMBER(SEARCH("5623",B3)),RIGHT(B3,41),"")" but it only works for one checkcard number? Also I don't really need to capture the DEBIT or CREDIT that will always be at the end, it would be redundant. If it's easier to write the formula including that data that is no problem. What I want to copy and move into an adjacent cell is in red.

    Here is the source data:
    Row 2 - SONIC DRIVE IN#1531 AUSTIN TXDEBIT FOR CHECKCARD XXXXXX5623 DEBIT
    Row 3 - JASON'S DELI # 125 Q64 AUSTIN TXDEBIT FOR CHECKCARD XXXXXX9718 DEBIT

    Thanks for your help.
    Buzz57

  2. #2
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,938

    Re: How to ask formula to search for multiple values within one search?

    Not exactly sure what you are trying to do, but maybe take a look at using the built-in Find/replace function?

    or show us what you want the final product to look like?
    1. Use code tags for VBA. [code] Your Code [/code] (or use the # button)
    2. If your question is resolved, mark it SOLVED using the thread tools
    3. Click on the star if you think someone helped you

    Regards
    Ford

  3. #3
    Forum Expert Tony Valko's Avatar
    Join Date
    12-31-2011
    Location
    Pittsburgh
    MS-Off Ver
    2002, 2007:2013
    Posts
    18,890

    Re: How to ask formula to search for multiple values within one search?

    Maybe something like this...

    =MID(A2,SEARCH("checkcard",A2),20)
    Biff
    Microsoft MVP Excel
    Keep It Simple Stupid

    Let's Go Pens. We Want The Cup.

  4. #4
    Registered User
    Join Date
    08-17-2011
    Location
    Austin
    MS-Off Ver
    Excel 2010
    Posts
    4

    Re: How to ask formula to search for multiple values within one search?

    Tony,
    Problem solved, thank you very much.

    Regards,
    Buzz57

  5. #5
    Forum Expert Tony Valko's Avatar
    Join Date
    12-31-2011
    Location
    Pittsburgh
    MS-Off Ver
    2002, 2007:2013
    Posts
    18,890

    Re: How to ask formula to search for multiple values within one search?

    You're welcome. Thanks for the feedback!

+ 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. Truncate text strings using LEFT and FIND/SEARCH for multiple search terms
    By ngdoherty in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 04-17-2013, 07:51 PM
  2. Replies: 4
    Last Post: 12-21-2012, 10:35 AM
  3. Replies: 5
    Last Post: 03-29-2012, 04:12 AM
  4. Search Multiple Worksheets Against List of Non-Exact Search Criteria?
    By thump4r in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 12-17-2010, 03:46 PM
  5. Formula to Search Column for Multiple Values
    By amyxkatexx in forum Excel Programming / VBA / Macros
    Replies: 10
    Last Post: 08-03-2010, 04:11 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