ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Discussion (Misc queries) (https://www.excelbanter.com/excel-discussion-misc-queries/)
-   -   Conditional formatting... (https://www.excelbanter.com/excel-discussion-misc-queries/177790-conditional-formatting.html)

Patch

Conditional formatting...
 
Hi there, please help with the following...

Working with two sheets, I have a list of alpha numeric referances in col.
A. I would like the cells in col. A on sheet 1 to show up as a differant
colour if they appear appear in list in col A on sheet 2.

What formula should I use in the conditional formatting?

Many Thanks.

Rick Rothstein \(MVP - VB\)[_98_]

Conditional formatting...
 
First, go to Sheet2 and select the maximum range in Column A that you ever
expect to fill your list in with (that is, don't be afraid to include blank
cells in the range). Now, click in the Name Box (that is the edit field on
the formula bar to the left of the formula fill-in field) and type in a name
for this range (for this example, call it LookUpRange). Now, go back to
Sheet1 and select the maximum range in its Column A (again, you can include
blanks in order to handle future entries); click

Format/Conditional Formatting....

from Excel's menu bar. Once in there, select Formula Is from the first drop
down and put this formula in the second field...

=ISNUMBER(MATCH(A1,LookUpRange,0))

(where A1 is assumed to be the active cell within the selected range) and
then click the Format button to select your color.

Rick


"Patch" wrote in message
...
Hi there, please help with the following...

Working with two sheets, I have a list of alpha numeric referances in col.
A. I would like the cells in col. A on sheet 1 to show up as a differant
colour if they appear appear in list in col A on sheet 2.

What formula should I use in the conditional formatting?

Many Thanks.



Rick Rothstein \(MVP - VB\)[_99_]

Conditional formatting...
 
A point I should have made is that in order to have a reference to a range
on a different sheet in Conditional Formatting, that range must be named and
the name must be used in the formula.

Rick


"Rick Rothstein (MVP - VB)" wrote in
message ...
First, go to Sheet2 and select the maximum range in Column A that you ever
expect to fill your list in with (that is, don't be afraid to include
blank cells in the range). Now, click in the Name Box (that is the edit
field on the formula bar to the left of the formula fill-in field) and
type in a name for this range (for this example, call it LookUpRange).
Now, go back to Sheet1 and select the maximum range in its Column A
(again, you can include blanks in order to handle future entries); click

Format/Conditional Formatting....

from Excel's menu bar. Once in there, select Formula Is from the first
drop down and put this formula in the second field...

=ISNUMBER(MATCH(A1,LookUpRange,0))

(where A1 is assumed to be the active cell within the selected range) and
then click the Format button to select your color.

Rick


"Patch" wrote in message
...
Hi there, please help with the following...

Working with two sheets, I have a list of alpha numeric referances in
col.
A. I would like the cells in col. A on sheet 1 to show up as a differant
colour if they appear appear in list in col A on sheet 2.

What formula should I use in the conditional formatting?

Many Thanks.




Patch

Conditional formatting...
 
Thank you Rick that is perfect

"Rick Rothstein (MVP - VB)" wrote:

A point I should have made is that in order to have a reference to a range
on a different sheet in Conditional Formatting, that range must be named and
the name must be used in the formula.

Rick


"Rick Rothstein (MVP - VB)" wrote in
message ...
First, go to Sheet2 and select the maximum range in Column A that you ever
expect to fill your list in with (that is, don't be afraid to include
blank cells in the range). Now, click in the Name Box (that is the edit
field on the formula bar to the left of the formula fill-in field) and
type in a name for this range (for this example, call it LookUpRange).
Now, go back to Sheet1 and select the maximum range in its Column A
(again, you can include blanks in order to handle future entries); click

Format/Conditional Formatting....

from Excel's menu bar. Once in there, select Formula Is from the first
drop down and put this formula in the second field...

=ISNUMBER(MATCH(A1,LookUpRange,0))

(where A1 is assumed to be the active cell within the selected range) and
then click the Format button to select your color.

Rick


"Patch" wrote in message
...
Hi there, please help with the following...

Working with two sheets, I have a list of alpha numeric referances in
col.
A. I would like the cells in col. A on sheet 1 to show up as a differant
colour if they appear appear in list in col A on sheet 2.

What formula should I use in the conditional formatting?

Many Thanks.






All times are GMT +1. The time now is 05:06 PM.

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