ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Worksheet Functions (https://www.excelbanter.com/excel-worksheet-functions/)
-   -   Matching cells (https://www.excelbanter.com/excel-worksheet-functions/24302-matching-cells.html)

Sibbs

Matching cells
 
I want to match a number in a cell with 6 different columns. if the number
matches any cell in the columns I want the cell that it has matched to
highlight. Can this be done and if so how? Or am I on a hiding to nothing?

Thanks in advance

Ron Coderre

It seems like conditional formatting in the 6 columns would do what you want:
FormatConditional Formatting
Formula Is: =(your cell reference here)
Format: (whatever format you want if the cell matches your value)

Does that work for you?

--
Regards,
Ron


RagDyeR

Is this what you're looking for?

Select B1 to G1, with the focus in B1 (white), then:

<Format <ConditionalFormat
Click "Formula is", and enter this:

=AND($A1<"",$A1=B1)

Then choose your formatting options, i.e. Pattern = Yellow, Font = Red,
Bold, then <OK <OK

Now, any cell in B1 to G1, that matches the number in A1, will turn yellow
and display in red.

You can now select B1 to G1 again, and click on the "Format Painter" icon on
the tool bar (yellow brush), and select B2 to G (whatever), to copy this
format as far down as needed, so that the match to Column A will highlight
the cell in the same row.
--

HTH,

RD
==============================================
Please keep all correspondence within the Group, so all may benefit!
==============================================
..


"Sibbs" wrote in message
...
I want to match a number in a cell with 6 different columns. if the number
matches any cell in the columns I want the cell that it has matched to
highlight. Can this be done and if so how? Or am I on a hiding to nothing?

Thanks in advance




All times are GMT +1. The time now is 11:38 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com