+ Reply to Thread
Results 1 to 4 of 4

Using OR within a FIND function

  1. #1
    Registered User
    Join Date
    02-02-2016
    Location
    Haverhill, MA
    MS-Off Ver
    2013
    Posts
    7

    Using OR within a FIND function

    Hi,

    I got some help here before to create a formula to grab the left information in a cell separated by a "/". Now, I have found data can also be separated by a '-' and need to incorporate this into the function as well.

    Some examples of items that need to be split are:
    Harrisburg-INTL
    Dallas/Ft. Worth
    Heathrow-LDN
    Huntsville/Decatur

    The current formula I have in place is:

    =IFERROR(LEFT(DN7,FIND("/",DN7)-1),DN7)

    This works perfect for cells using a /, but I was unable to find a way myself or online to incorporate the new construct.

    Thanks for your help!

  2. #2
    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: Using OR within a FIND function

    Try this formula in DO7 and copy down

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


    v DN DO
    1
    2
    3
    4
    5
    6
    7 Harrisburg-INTL Harrisburg
    8 Dallas/Ft. Worth Dallas
    9 Heathrow-LDN Heathrow
    10 Huntsville/Decatur Huntsville
    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

  3. #3
    Registered User
    Join Date
    02-02-2016
    Location
    Haverhill, MA
    MS-Off Ver
    2013
    Posts
    7

    Re: Using OR within a FIND function

    Thanks! That worked. May I ask what the 50 is for? Just curious

  4. #4
    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: Using OR within a FIND function

    Quote Originally Posted by someonehelppelase View Post
    Thanks! That worked. May I ask what the 50 is for? Just curious
    just an arbitrary number to accommodate the length of the string.

    Thank you for the feedback

    Please mark thread as "Solved" if your issue has been resolved. (Selecting Thread Tools-> Mark thread as Solved).

+ 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] Can I use FIND function to find specific string in a single cell?
    By bonpara in forum Excel General
    Replies: 2
    Last Post: 10-05-2015, 05:46 PM
  2. If function + Find Function to search for multiple values
    By HabsFan89 in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 01-21-2015, 12:11 PM
  3. add in the parameters to the Find function to only find an exact match.
    By jakeembx in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 01-07-2014, 08:57 AM
  4. [SOLVED] Problem with Find function. Need to find Exact match
    By SMILE in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 12-06-2012, 07:07 AM
  5. find function doesnt find imported info
    By dscott2479 in forum Excel - New Users/Basics
    Replies: 1
    Last Post: 07-12-2011, 07:11 PM
  6. Replies: 2
    Last Post: 03-30-2009, 04:04 AM
  7. Using find function to find entries in multiple cells
    By stanigator in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 07-11-2007, 08:45 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