+ Reply to Thread
Results 1 to 6 of 6

Help with Conditional formatting in a cell range.

Hybrid View

  1. #1
    Registered User
    Join Date
    10-27-2013
    Location
    san diego
    MS-Off Ver
    Excel 2010
    Posts
    9

    Help with Conditional formatting in a cell range.

    I have a sheet that our employees update with a two digit code (a solution code to a problem) I have a list of codes that flag for equipment codes (about 100 codes) to be entered into another system. What I would like to accomplish is to have the spreadsheet highlight the cell if one of those codes for equipment are used on the spreadsheet they use for updating. I have tried the conditional formating "equal to" function but it will not allow me to select a row of codes regardless if they are on another sheet or column on the same sheet.

    If there a formula that I can use to accomplish what I am trying to do?
    Attached Files Attached Files

  2. #2
    Forum Guru benishiryo's Avatar
    Join Date
    03-25-2011
    Location
    Singapore
    MS-Off Ver
    Excel 2013
    Posts
    5,156

    Re: Help with Conditional formatting in a cell range.

    welcome to the forum, abaumgartner.

    1. go to Code detail sheet & select A2:A120.

    2. you should see a name box below the ribbon & on the left of the formula bar. it shows the cell reference. click on that & type a name. i'll type Reference. Press ENTER

    3. go to Dispatch sheet & select from C2:C10 or more rows you want to end at. in Excel 2007 & above, go to Home -> Conditional Formatting -> New Rule -> Use a formula to determine which cells to format -> Format values where this formula is true:
    =COUNTIF(Reference,C2)

    4. format to the colour you desire & click ok

    that will colour the cell if it is found in another sheet. if you want to colour those that didn't appear:
    =COUNTIF(Reference,C2)=0

    Thanks, if you have clicked on the * and added our rep.

    If you're satisfied with the answer, click Thread Tools above your first post, select "Mark your thread as Solved".

    "Contentment is not the fulfillment of what you want, but the realization of what you already have."


    Tips & Tutorials I Compiled | How to Get Quick & Good Answers

  3. #3
    Registered User
    Join Date
    10-27-2013
    Location
    san diego
    MS-Off Ver
    Excel 2010
    Posts
    9

    Angry Re: Help with Conditional formatting in a cell range.

    Hi and thank you for the speedy reply. Sorry I have been out of town for a week and just got back. I tried what you said but I am unable to get it to work.

    I selected a2-a120 and named it DET and than followed your instruction for setting up the conditional formatting but I am unable to get it to work. I have attached my sheet with my attempt at it. Can you please let me know what I am doing wrong?
    Attached Files Attached Files

  4. #4
    Forum Contributor Steve N.'s Avatar
    Join Date
    12-22-2011
    Location
    USA
    MS-Off Ver
    Excel 2007, 2010
    Posts
    298

    Re: Help with Conditional formatting in a cell range.

    Like this?
    Attached Files Attached Files

  5. #5
    Registered User
    Join Date
    10-27-2013
    Location
    san diego
    MS-Off Ver
    Excel 2010
    Posts
    9

    Re: Help with Conditional formatting in a cell range.

    Yes, What did I do wrong?

  6. #6
    Forum Contributor Steve N.'s Avatar
    Join Date
    12-22-2011
    Location
    USA
    MS-Off Ver
    Excel 2007, 2010
    Posts
    298

    Re: Help with Conditional formatting in a cell range.

    Your formula referenced cell A2 rather than $C2 which holds the criteria you're formatting. You'll also notice I converted your data range to a 'table' so that any time you add a new line of data, the table automatically extends and the CF is applied to each new row.

    Hope that helps...

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Replies: 3
    Last Post: 08-13-2013, 09:44 AM
  2. Conditional Formatting via VBA: Change formatting in range based on value of each cell
    By ralphjmedia in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 04-12-2013, 10:37 AM
  3. Conditional Formatting - Grey Out and Lock A range based on a cell value in that range
    By Excelgnome in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 05-14-2012, 07:31 PM
  4. conditional formatting on a cell range
    By mdchachi in forum Excel General
    Replies: 3
    Last Post: 05-03-2006, 12:48 PM

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