Search columns on multiple worksheets

  • Thread starter Thread starter wally
  • Start date Start date
W

wally

In a workbook I have a worksheet for each month of the year. How would I be
able to automatically determine whether the entry currently being made has
been entered in the same column previously on any of the worksheets?
(Similar to “Find†under Edit) If so, would it be possible to indicate the
previously entered data by highlighting each duplicate cell?
 
Hi,


Go to each of the other sheets and highlight the range where the data is,
suppose B1:B100. In the Name Box, left side of the Formula Bar, enter
FirstColumn and press Enter. Move to the next sheet and do the same by give
it the name SecondColumn.

Highlight the cells where you want the formatting to alert you to
duplicates. Choose Format, Conditional Formatting, and pick Formula is from
the first drop down. In the second box enter the formula

=OR(B1=FirstColumn,B1=SecondColumn)

Click the Format button and choose a color on the Patterns tab, click OK
twice.
 
Back
Top