+ Reply to Thread
Results 1 to 2 of 2

IF OR return match

  1. #1
    Registered User
    Join Date
    05-22-2015
    Location
    Sweden
    MS-Off Ver
    2013
    Posts
    1

    IF OR return match

    Hi

    I need help with the following:
    I have to look for 4 different words in two different cells and if one of the words is found i want to the return value to be the word that was found.

    An easy example of what i want. If cell A5 contains one of the following numbers 1,2,3,4 or if cell B5 contains on of the following numbers 1,2,3,4 return that number, e.g. if the value 4 was found in either cell A5 or cell B5 then i want the return value to be 4. If no value is found it should return an empty cell.

    This is how i wrote my formula but i dont know how to return the value that was found in the cell. See the question marksin formula

    =IF(OR(ISNUMBER(SEARCH({"1";"2";"3";"4"};A5));ISNUMBER(SEARCH({"1";"2";"3";"4"};A5)));"????"; "")

    I would appreciate it alot if someone can help me with this.

    Regards,
    Petar

  2. #2
    Forum Guru samba_ravi's Avatar
    Join Date
    07-26-2011
    Location
    Hyderabad, India
    MS-Off Ver
    Excel 2021
    Posts
    8,911

    Re: IF OR return match

    Please attach a sample file with 2 or 3 examples with expected result
    Samba

    Say thanks to those who have helped you by clicking Add Reputation star.

+ 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] Combining 3 Formulas: Return all Names that Match Criteria Using Index/Match
    By bchilme in forum Excel Formulas & Functions
    Replies: 20
    Last Post: 09-29-2014, 09:28 AM
  2. Replies: 3
    Last Post: 05-08-2013, 02:10 PM
  3. Match string in one column, return value in same row, skip rows that down't match
    By anilsen0711 in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 05-01-2013, 05:35 AM
  4. [SOLVED] Two Excel sheets trying to match text data and return the match from the second column!
    By bankcott in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 02-02-2013, 02:17 PM
  5. Replies: 2
    Last Post: 11-12-2012, 06:26 AM

Tags for this Thread

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