+ Reply to Thread
Results 1 to 5 of 5

Excel 2007 : Conditional Formatting - Cell value equal to multiple possibilities

  1. #1
    Registered User
    Join Date
    11-24-2010
    Location
    Canada
    MS-Off Ver
    Excel 2007
    Posts
    2

    Conditional Formatting - Cell value equal to multiple possibilities

    Hello,
    I've searched all over google for a way to execute properly my requirement, but had no success.
    Basically, I'm trying to create a Bingo game for my employees here.
    I have the "Bingo Cards" which are simply 5x5 tables with random numbers in them, and I'd like to implement a conditional formatting rule that would highlight only the cells that contain the drawn numbers every day.
    I can easily put a rule that says: If Cell Value is equal to THIS number, then highlight it. Which works fine. But the problem is, we draw 15 numbers every day, so I don't want to have to create a rule for every single number drawn (i.e. 15 rules every morning).
    So is there any way to write a rule that says: If Cell Value is equal to NUMBER or NUMBER or NUMBER or NUMBER... etc?

    I'd like to avoid macros if possible.

    Thank you.
    Last edited by NBVC; 11-24-2010 at 01:15 PM.

  2. #2
    Forum Expert NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003:2010
    Posts
    34,898

    Re: Conditional Formatting - Cell value equal to multiple possibilities

    See your Bingo card is in A1:E6, where A1:E1 are the header cells, then say your list of drawn numbers is located in say column D

    Select A2:E6 and apply conditional formatting with Formula =MATCH(A2,$D:$D,0)

    and select and apply the colour.
    Where there is a will there are many ways.

    If you are happy with the results, please add to the contributor's reputation by clicking the reputation icon (star icon) below left corner

    Please also mark the thread as Solved once it is solved. Check the FAQ's to see how.

  3. #3
    Forum Moderator - RIP Richard Buttrey's Avatar
    Join Date
    01-14-2008
    Location
    Stockton Heath, Cheshire, UK
    MS-Off Ver
    Office 365, Excel for Windows 2010 & Excel for Mac
    Posts
    29,464

    Re: Conditional Formatting - Cell value equal to multiple possibilities

    Hi,

    Yes just name the range containing your 15 numbers as 'numbers' then in the conditional formats of your 5x5 matrix, assuming this starts in A1, use the Conditional format

    Please Login or Register  to view this content.
    and copy this across and down

    HTH
    Richard Buttrey

    RIP - d. 06/10/2022

    If any of the responses have helped then please consider rating them by clicking the small star icon below the post.

  4. #4
    Forum Expert sweep's Avatar
    Join Date
    04-03-2007
    Location
    Great Sankey, Warrington, UK
    MS-Off Ver
    2003 / 2007 / 2010 / 2016 / 365
    Posts
    3,443

    Re: Conditional Formatting - Cell value equal to multiple possibilities

    Hi,

    With the range of 5x5 cells highlighted, use this conditional formatting rule, and enter the drawn numbers in F1:F15

    =OR(A1=$F$1:$F$15)
    Rule 1: Never merge cells
    Rule 2: See rule 1

    "Tomorrow I'm going to be famous. All I need is a tennis racket and a hat".

  5. #5
    Registered User
    Join Date
    11-24-2010
    Location
    Canada
    MS-Off Ver
    Excel 2007
    Posts
    2

    Re: Conditional Formatting - Cell value equal to multiple possibilities

    Quote Originally Posted by NBVC View Post
    See your Bingo card is in A1:E6, where A1:E1 are the header cells, then say your list of drawn numbers is located in say column D

    Select A2:E6 and apply conditional formatting with Formula =MATCH(A2,$D:$D,0)

    and select and apply the colour.

    This worked flawlessly.
    Thanks everyone for the quick reply.

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

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