+ Reply to Thread
Results 1 to 3 of 3

If function to catch any text within a string

  1. #1
    Registered User
    Join Date
    01-15-2015
    Location
    California
    MS-Off Ver
    2010
    Posts
    96

    If function to catch any text within a string

    I'm using an IF function to control what comes out on a mail merge (Mailing or Physical Address). Both examples below are located in cell A15. I want the IF statement to be able to differentiate the blank cells just before the word "Out?", where any type of text can precede after the word "Hire Date".



    example of a blank mailing address string (therefore the function would default to a different line for the physical address)
    │ Hire Date 10/13/2014 Group Wt Per 30 │ Out? │


    example of a Mailing Address data string
    │ Hire Date 09/14/2015 Group Wt Per 30 │ 1033 LANCASTER DRIVE Out? │


    Thank you

  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
    53,048

    Re: If function to catch any text within a string

    I think you will need to upload a small (clean) sample workbook (not a pic) of what you are working with, and what your expected outcome would 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 José Augusto's Avatar
    Join Date
    10-29-2014
    Location
    Portugal
    MS-Off Ver
    2013-2016
    Posts
    3,329

    Re: If function to catch any text within a string

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

+ 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. Replies: 2
    Last Post: 05-27-2016, 12:30 AM
  2. [SOLVED] Catch 22 on “Top 10” auto filter function
    By ibenam in forum Excel General
    Replies: 6
    Last Post: 03-06-2014, 12:44 PM
  3. Advanced Split Function: Need to pull text string in quotes, within a text string
    By Zamboni in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 11-27-2013, 04:38 PM
  4. [SOLVED] Find partial text string within another text string return original text into cell.
    By mikey42979 in forum Excel Formulas & Functions
    Replies: 9
    Last Post: 06-17-2013, 02:58 PM
  5. Replies: 2
    Last Post: 07-11-2012, 10:48 AM
  6. String function to get selective text from long string
    By MWHLFC in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 03-29-2011, 02:51 PM
  7. string function to get selective text from long string
    By MWHLFC in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 03-25-2011, 05:00 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