+ Reply to Thread
Results 1 to 11 of 11

If with Match and multiple cells

  1. #1
    Registered User
    Join Date
    11-13-2012
    Location
    TX
    MS-Off Ver
    Excel 2007
    Posts
    9

    If with Match and multiple cells

    Hello,

    I use this forum all the time for help, but this is my first post.

    I am not very good with creating formulas and functions myself, but I can usually find one with similar results and modify it for my use.
    After several hours of searching and modifying, I am stumped and hope someone can help.

    In range L2:AK2, each cell will have a value entered from a dropdown.
    If any of these cells contain the value Disagree or Strongly Disagree, I need cell F2 to have an N as the value.
    If these values are not found, I need F2 to remain blank.

    I appreciate the help!

  2. #2
    Forum Contributor
    Join Date
    09-13-2012
    Location
    Atlanta, USA
    MS-Off Ver
    Office 2003, 2010
    Posts
    230

    Re: If with Match and multiple cells

    Try placing this in F2:


    =IF(COUNTIF(L2:AK2, "Disagree")+COUNTIF(L2:AK2, "Strongly Disagree")<>0, "N","")

  3. #3
    Forum Moderator jeffreybrown's Avatar
    Join Date
    02-19-2009
    Location
    Cibolo, TX
    MS-Off Ver
    Office 365
    Posts
    10,327

    Re: If with Match and multiple cells

    Maybe...

    =IF(COUNTIF(L2:AK2,"*Disagree")>0,"N","")
    HTH
    Regards, Jeff

  4. #4
    Registered User
    Join Date
    11-13-2012
    Location
    NY, NY
    MS-Off Ver
    Excel 2010
    Posts
    6

    Re: If with Match and multiple cells

    This also helps me. Thanks!

  5. #5
    Forum Expert Pepe Le Mokko's Avatar
    Join Date
    05-14-2009
    Location
    Belgium
    MS-Off Ver
    O365 v 2402
    Posts
    13,610

    Re: If with Match and multiple cells

    Still (a bit) shorter
    Please Login or Register  to view this content.

  6. #6
    Registered User
    Join Date
    11-13-2012
    Location
    TX
    MS-Off Ver
    Excel 2007
    Posts
    9

    Thumbs up Re: If with Match and multiple cells

    Both of these work perfectly!
    Thank you so much!

  7. #7
    Registered User
    Join Date
    10-02-2012
    Location
    Baku
    MS-Off Ver
    Excel 2010
    Posts
    273

    Re: If with Match and multiple cells

    =IF(OR(SUM((L2:AK2="Strongly Disagree")*1)>=1,SUM((L2:AK2="Disagree")*1)>=1),"N","") Control+Shift+Enter

  8. #8
    Forum Moderator jeffreybrown's Avatar
    Join Date
    02-19-2009
    Location
    Cibolo, TX
    MS-Off Ver
    Office 365
    Posts
    10,327

    Re: If with Match and multiple cells

    You are very welcome and glad one of the solutions worked out for you...

    =====================================================

    If you are satisfied with the solution(s) provided, please mark your thread as Solved.

    New quick method:
    Select Thread Tools-> Mark thread as Solved. To undo, select Thread Tools-> Mark thread as Unsolved.

  9. #9
    Forum Expert Pepe Le Mokko's Avatar
    Join Date
    05-14-2009
    Location
    Belgium
    MS-Off Ver
    O365 v 2402
    Posts
    13,610

    Re: If with Match and multiple cells

    Quote Originally Posted by eisayew View Post
    =IF(OR(SUM((L2:AK2="Strongly Disagree")*1)>=1,SUM((L2:AK2="Disagree")*1)>=1),"N","") Control+Shift+Enter
    Why should an array formula be needed and why use multiple functions when 2 are sufficient?

  10. #10
    Registered User
    Join Date
    10-02-2012
    Location
    Baku
    MS-Off Ver
    Excel 2010
    Posts
    273

    Re: If with Match and multiple cells

    Quote Originally Posted by Pepe Le Mokko View Post
    Why should an array formula be needed and why use multiple functions when 2 are sufficient?
    You are right. Sometimes I am not able to see easier solutions. But this is first solution what came to my mind at that moment.
    In this site I always get surprised of smart and short formulas you guys give.

    Thanx and sorry:

  11. #11
    Forum Contributor
    Join Date
    09-13-2012
    Location
    Atlanta, USA
    MS-Off Ver
    Office 2003, 2010
    Posts
    230

    Re: If with Match and multiple cells

    Sorry I used more than two functions..

    Clearly that was the best solution I could think of, there's no need to heckle us. If the OPs doesn't like our formulas, they are more than welcome to not use them.

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

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