Forum

Notifications
Clear all

[Solved] Conditional Formatting Formular

5 Posts
3 Users
0 Reactions
89 Views
(@benjamip)
Posts: 94
Estimable Member
Topic starter
 

Hi, what formula is best to highlight cells where the 'Cell Value Contains' is a range of cells not a single cell, thanks Paul


 
Posted : 23/05/2026 12:19 am
Alan Sidman
(@alansidman)
Posts: 266
Member Moderator
 

Paul,

Are you able to upload a sample file showing an example of your source data and a mocked up solution for us to work with.  8-10 records should suffice. 


 
Posted : 23/05/2026 2:04 am
(@benjamip)
Posts: 94
Estimable Member
Topic starter
 

@alansidman

Hi Alan,

I need to see if any of the numbers in column A appear in columns B to F

Thanks, Paul


 
Posted : 25/05/2026 10:39 pm
Riny van Eekelen
(@riny)
Posts: 1440
Member Moderator
 

@benjamip 

With some trial and error I came up with a rather bulky CF formula applied to B2:F29 (pasted below). I added something in the bottom right-hand corner to test an entry with a number and a text. The formula/rule requires a modern Excel version. I feel there must be a better way, though it seems to work. Included the rule in your workbook, attached. The formula itself is also in H2 to demonstrate the array of TRUE and FALSE it produces.

=WRAPROWS(
    ISNUMBER(
        XLOOKUP(
            VALUE(
                TEXTBEFORE(
                    TOCOL(B2:F29),
                    " "
                )
            ),
            $A$2:$A$244,
            $A$2:$A$244
        )
    ),
    5
)

 
Posted : 26/05/2026 1:07 am
(@benjamip)
Posts: 94
Estimable Member
Topic starter
 

@riny 

Thanks Riny, that has worked.


 
Posted : 26/05/2026 2:30 am
Share:
0