You can make a difference in the Apple Support Community!

When you sign up with your Apple Account, you can provide valuable feedback to other community members by upvoting helpful replies and User Tips.

Advance Conditional Formatting | Using "IF" formula?

Is it possible to highlight certain cells based on specific data in a different cell?


See attached image.

This is a table of all the possible pre-flop hands in poker. Row 1 shows the table position.


What I'd like to do is highlight specific cells based on the table position.

ie: if the table position is "BTN", I want AA, AKo, AKs, KK...etc highlighted. if the table position is "UTG", I only want AA, KK highlighted. Does this make sense?


I can't wrap my mind around how to do this, or if it's even possible.

MacBook Pro 16″, macOS 15.1

Posted on Nov 14, 2024 7:24 PM

Reply
4 replies

Nov 15, 2024 5:06 PM in response to paulhanon

The formulas go in the Table of Hands-1 table. The cells that are gong to get highlighted are those where the formula result is the value in Table of Hands. The other cells in the table will be blank (null string).


  1. In the Table of Hands table, select all cells from A2 to the bottom right corner of the table.
  2. Start making the conditional highlighting rule
  3. Click the green oval and select cell Table of Hands-1::A2
  4. Click the checkmark to accept it
  5. Finish making the rule

Nov 15, 2024 4:40 AM in response to paulhanon

Possible, most definitely. I'm trying to think of a better or more clever way than this but here a typical way.


Make another table with the same grid of cells.

The formula in a cell of that table would be like one of these (written for cell E2):

=IF(Table 1::$E$1="BTN",Table 1::E2,"")

=IF(OR(Table 1::$E$1="BTN",Table 1::$E$1="UTG"), Table 1::E2,"")

The highlighting rule will be "if text is [cell reference to the other table] then highlight cell"


You can create all the rules at one time by selecting all the cells that need the rule and creating the rule for the top left cell (Table 1::E2) so the cell reference in the rule will be Table 2::E2. It will adjust the cell references for all the other selected cells so they will all point to the correct cells.


To create the cell reference in the rule, click on the green oval (you'll know what I mean when you see it), select the one cell, then use the checkmark to accept it.

Nov 16, 2024 2:51 PM in response to Badunit

Got it. So helpful! THANK YOU! I made highlighting rules for 8 different table positions.


This table is continuing to evolve the more I play with it.

If you're up for a challenge, read on.


I'd like to add in another parameter: "first to act" or "three bet"

Essentially, how would I create a rule where, if the table position is "UTG" AND "first to act" it highlights specific cells. Likewise, if the table position is "UTG" AND "three bet" different cells are highlighted.

Advance Conditional Formatting | Using "IF" formula?

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple Account.