+ Reply to Thread
Results 1 to 13 of 13

If then and scanning for specifc text with index and match ?

  1. #1
    Forum Contributor
    Join Date
    01-28-2013
    Location
    Spencerport, NY
    MS-Off Ver
    Excel 2016
    Posts
    270

    If then and scanning for specifc text with index and match ?

    Hello All
    A 2 part question, am getting hung up with if then and match and scanning for a text in a cell.

    I would like to match the # in Column A with the # in Column H , and if there is a YES anywhere in column O that corresponds to the # in Column A then I would like to return a YES in column C. If there is a NO in column O then I would like to return a NO

    EXAMPLES COLORED IN ORANGE


    Secondly I would like to do the following

    I would like to match the # in Column A with the # in Column E, and scan the text in corresponding sell in Column F for the word "*delirium". If that word resides in that cell, I would like to return a YES to column B, if not, then return a NO

    Examples colored and highlighted in RED


    Many thanks in advance

  2. #2
    Forum Expert
    Join Date
    09-07-2014
    Location
    Israel
    MS-Off Ver
    office 365 for MAC
    Posts
    3,105

    Re: If then and scanning for specifc text with index and match ?

    Hi,
    column O is empty...
    which column did you mean?

  3. #3
    Forum Contributor
    Join Date
    01-28-2013
    Location
    Spencerport, NY
    MS-Off Ver
    Excel 2016
    Posts
    270

    Re: If then and scanning for specifc text with index and match ?

    So sorry, I meant column N

    Thank you Belinda200

  4. #4
    Forum Expert
    Join Date
    09-07-2014
    Location
    Israel
    MS-Off Ver
    office 365 for MAC
    Posts
    3,105

    Re: If then and scanning for specifc text with index and match ?

    Thanks.....!

  5. #5
    Forum Expert
    Join Date
    09-07-2014
    Location
    Israel
    MS-Off Ver
    office 365 for MAC
    Posts
    3,105

    Re: If then and scanning for specifc text with index and match ?

    Deleted-----

  6. #6
    Forum Expert
    Join Date
    09-07-2014
    Location
    Israel
    MS-Off Ver
    office 365 for MAC
    Posts
    3,105

    Re: If then and scanning for specifc text with index and match ?

    Try this -

    B2 and down:

    =IFNA(IF(SEARCH("delirium",INDEX($F$2:$F$21,MATCH(A2,$E$2:$E$21,0)))>0,"YES",""),"")

    C2 and down:
    =IFNA(IF(MATCH(A2,($H$2:$H$21)*($N$2:$N$21="yes"),0)>0,"YES",""),"")
    Last edited by Limor_OP; 07-08-2021 at 04:30 PM.

  7. #7
    Forum Expert
    Join Date
    09-07-2014
    Location
    Israel
    MS-Off Ver
    office 365 for MAC
    Posts
    3,105

    Re: If then and scanning for specifc text with index and match ?

    I'm also attaching the file.
    Let me know if this was what you meant....

  8. #8
    Forum Contributor
    Join Date
    01-28-2013
    Location
    Spencerport, NY
    MS-Off Ver
    Excel 2016
    Posts
    270

    Re: If then and scanning for specifc text with index and match ?

    Belinda200
    Thanks so much. Is there a way I can return a "NO" in column C instead of a blank cell ? For some reason when I try to substitute a NO for the blank, it makes the formula invalid
    Thank you again ! This is wonderful

  9. #9
    Forum Expert
    Join Date
    09-07-2014
    Location
    Israel
    MS-Off Ver
    office 365 for MAC
    Posts
    3,105

    Re: If then and scanning for specifc text with index and match ?

    Hi
    Sure,
    Try this in C2 :
    =IFNA(IF(MATCH(A2,($H$2:$H$21)*($N$2:$N$21="yes"),0)>0,"YES",""),"NO")

  10. #10
    Forum Contributor
    Join Date
    01-28-2013
    Location
    Spencerport, NY
    MS-Off Ver
    Excel 2016
    Posts
    270

    Re: If then and scanning for specifc text with index and match ?

    I am so sorry to be a bother Belinda200. For some reason when I use that formula , it returns a "NO" in every cell. That does not make sense to me ..Any ideas ?

  11. #11
    Forum Expert
    Join Date
    09-07-2014
    Location
    Israel
    MS-Off Ver
    office 365 for MAC
    Posts
    3,105

    Re: If then and scanning for specifc text with index and match ?

    Cells 5,7, and 16 show "YES"

  12. #12
    Forum Contributor
    Join Date
    01-28-2013
    Location
    Spencerport, NY
    MS-Off Ver
    Excel 2016
    Posts
    270

    Re: If then and scanning for specifc text with index and match ?

    Thank you Belinda200. I must be doing something wrong, I greatly appreciate your help

  13. #13
    Forum Expert
    Join Date
    09-07-2014
    Location
    Israel
    MS-Off Ver
    office 365 for MAC
    Posts
    3,105

    Re: If then and scanning for specifc text with index and match ?

    You're welcome : )

+ 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. Creating INDEX MATCH MATCH formula based off text in cells
    By bbkdude in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 04-26-2017, 10:37 AM
  2. specifc text in a cell
    By rao2016 in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 09-28-2016, 07:52 AM
  3. Replies: 5
    Last Post: 04-20-2016, 07:43 AM
  4. Index Formula using max and excluding specifc value
    By bswitalski in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 04-17-2013, 09:26 AM
  5. Replies: 3
    Last Post: 12-18-2012, 07:19 PM
  6. Replies: 13
    Last Post: 12-13-2012, 11:44 AM
  7. [SOLVED] If certain columns in a row match the rows beneath then sum a specifc column and delete
    By wbrown in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 10-14-2012, 12:01 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