+ Reply to Thread
Results 1 to 3 of 3

How can I use conditional formating between two sheets in one work

  1. #1
    Samad
    Guest

    How can I use conditional formating between two sheets in one work

    If employee number 5263 found in sheet 2, show the raw in main data on sheet
    1 in red, for instance.

  2. #2
    Forum Contributor
    Join Date
    02-23-2005
    Location
    England
    Posts
    110
    If you do not want to resort to VBA, you will need to use an area on Sheet 1 to make a copy of the column on Sheet 2 that contains the Employee No. This can be done quite simply by making a column e.g. Column Z on Sheet 1 where you enter an equation such as:

    =Sheet2!A1 (assuming Cell A1 is where your first employee No appears on Sheet 2)

    and copy this down the Sheet 1 rows as far as you need to get all the entries on Sheet 2 (plus more rows for any envisaged expansion)

    Then you would use a Conditional Formatting equation like:

    ==IF(ISNA(MATCH($A2,$G$2:$G$48,0)),FALSE,TRUE) (assumes copied Employee Nos are in the cell range Z1 to Z48)
    Last edited by PeterB; 02-07-2007 at 08:52 AM.

  3. #3
    Forum Expert daddylonglegs's Avatar
    Join Date
    01-14-2006
    Location
    England
    MS-Off Ver
    2016
    Posts
    14,675
    You can do this by creating a named range in one worksheet, i.e. use

    Insert > Name > define to create a named range where you expect to find the employee number, e.g. datalist

    then in the worksheet with your main data, for row 2 with employee number in A2, select whole row and use conditional formatting with formula is option

    =COUNTIF(datalist,A$2)

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1