+ Reply to Thread
Results 1 to 7 of 7

OR function

Hybrid View

  1. #1
    Registered User
    Join Date
    01-30-2013
    Location
    Texas
    MS-Off Ver
    Excel 2010
    Posts
    3

    OR function

    Is there a way to use the OR function with a range of cells such as a1-a1000 so that if any of the a1-a1000=c1(cell with set value) b1 would change to yes. I have tried a lot of formulas but they all will only work with the cell value in the same row so if I put a3=c1 I still get b1=false but if I get a1=c1 I get b1=true. I would like that if any of the cells whether its a1 or a598 to change b1 to yes if the value in c1 is entered. Please help

  2. #2
    Forum Contributor
    Join Date
    12-14-2012
    Location
    Doha, State of Qatar
    MS-Off Ver
    excel 2003, 2007, 2010, 2016
    Posts
    124

    Re: OR function

    why dont you use countifs....!

    regards
    abdul

  3. #3
    Registered User
    Join Date
    01-30-2013
    Location
    Texas
    MS-Off Ver
    Excel 2010
    Posts
    3

    Re: OR function

    OMG!! Ty so much lol. To think I spent that much time on it and that just took me 5 seconds.

  4. #4
    Registered User
    Join Date
    01-30-2013
    Location
    Texas
    MS-Off Ver
    Excel 2010
    Posts
    3

    Re: OR function

    Ok for the second part of the question. when I click and drag the formula =IF(countif(a1:a1000,C1),"yes","no") I need c1 to change to c2 like it does but I need a1:a1000 to stay the same. Is there any way to do that?

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

    Re: OR function

    Try
    =IF(countif(a1:a1000,C1),"yes","no")

  6. #6
    Forum Expert dilipandey's Avatar
    Join Date
    12-05-2011
    Location
    Dubai, UAE
    MS-Off Ver
    1997 - 2016
    Posts
    8,191

    Re: OR function

    Hi ryan77705

    Welcome to the forum.
    Range A1:A1000 can be checked for a value using Match function with syntax as =match(<value to match>, < range in which match is to be checked>,0) and you can use this function in B1 as =if(isnumber(match( < above formula>)),"Yes","No"). Upload a sample workbook if you stuck. Thanks.

    Regards,
    DILIPandey
    <click on below * if this helps>
    DILIPandey, Excel rMVP
    +919810929744 (India), +971528225509 (Dubai), dilipandey@gmail.com

  7. #7
    Forum Contributor
    Join Date
    12-14-2012
    Location
    Doha, State of Qatar
    MS-Off Ver
    excel 2003, 2007, 2010, 2016
    Posts
    124

    Re: OR function

    $a$1:$a$1000

    change it as above


    regards,
    abdul

+ 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