+ Reply to Thread
Results 1 to 10 of 10

How do I automatically highlight a cell?

  1. #1
    Registered User
    Join Date
    02-29-2012
    Location
    NJ
    MS-Off Ver
    Excel 2010
    Posts
    14

    How do I automatically highlight a cell?

    I need to cross check data. I would like to do it visually.

    I have a list of employees and a row of months

    I have a "1" in any month where the employee received earnings.

    I would like to cross check it with an hourly report.

    I have a list of employee numbers, followed by months, and hours worked.

    If they worked in a given month, I would like to highlight that cell..lets say green.

    So if a cell is green and has a "1" in it, it checks.
    Any cell that is green without a "1" needs to be examined further.

    I'll attach an example

    Thanks guys/gals


    Example 2.xlsx

  2. #2
    Forum Guru Winon's Avatar
    Join Date
    02-20-2007
    Location
    East Rand, R.S.A.
    MS-Off Ver
    2010
    Posts
    6,113

    Re: How do I automatically highlight a cell?

    Hi bmiranda,

    Have you tried Conditional Formatting?
    Please consider:

    Be polite. Thank those who have helped you. Then Click on the star icon in the lower left part of the contributor's post and add Reputation. Cleaning up when you're done. If you are satisfied with the help you have received, then Please do Mark your thread [SOLVED] .

  3. #3
    Registered User
    Join Date
    02-29-2012
    Location
    NJ
    MS-Off Ver
    Excel 2010
    Posts
    14

    Re: How do I automatically highlight a cell?

    I'm trying that, but I can't seem to get it right

  4. #4
    Forum Guru Winon's Avatar
    Join Date
    02-20-2007
    Location
    East Rand, R.S.A.
    MS-Off Ver
    2010
    Posts
    6,113

    Re: How do I automatically highlight a cell?

    One moment, let me have a look.

  5. #5
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,944

    Re: How do I automatically highlight a cell?

    a quick tip for future reference...
    excel has no way of knowing that when you type in 1, you mean January. likewise, it has no idea that when you type Jan, you mean January. dates/months/time are very special values in excel and need to calculated in a special way.

    So, the way you have those tables set up, excel has no way to see that a value "1" is, to you, the same as a text "Jan".

    If you can change your tables to make them more calc-friendly, that would be great, else we will have to work out a whole bunch of formulas to do the conversions for you. For instance, to chane the val;ue "1" into the month "January", would take a formula like...
    =MONTH(DATE(2013,B2,1))
    1. Use code tags for VBA. [code] Your Code [/code] (or use the # button)
    2. If your question is resolved, mark it SOLVED using the thread tools
    3. Click on the star if you think someone helped you

    Regards
    Ford

  6. #6
    Forum Guru Winon's Avatar
    Join Date
    02-20-2007
    Location
    East Rand, R.S.A.
    MS-Off Ver
    2010
    Posts
    6,113

    Re: How do I automatically highlight a cell?

    Hi bmiranda,

    Do you want it like this?
    Attached Files Attached Files

  7. #7
    Forum Guru Winon's Avatar
    Join Date
    02-20-2007
    Location
    East Rand, R.S.A.
    MS-Off Ver
    2010
    Posts
    6,113

    Re: How do I automatically highlight a cell?

    @ FDibbins,

    Good point/s you have raised. Maybe the OP wants to dictate months as numbers only, who knows?

  8. #8
    Registered User
    Join Date
    02-29-2012
    Location
    NJ
    MS-Off Ver
    Excel 2010
    Posts
    14

    Re: How do I automatically highlight a cell?

    We do want months as numbers only, for other data involved.

    The example re-posted is close. The third tab is the desired outcome. See how it differs from what was posted?

  9. #9
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,944

    Re: How do I automatically highlight a cell?

    posting months as numbers (or text - Jan/Feb etc) is fine, as long as you dont want to do anything with them later, as if they were dates

  10. #10
    Forum Guru Winon's Avatar
    Join Date
    02-20-2007
    Location
    East Rand, R.S.A.
    MS-Off Ver
    2010
    Posts
    6,113

    Re: How do I automatically highlight a cell?

    Hi bmiranda,

    Just a note, with Conditional Formatting, if a Cell is Empty, it turns green for furthter investigation, else if any cell within the specified range contains any value, it will show as "white", which does not require any further investigation.

    Hope that helps!

    As per the revised attached WorkBook.

    Also see the "Please consider" note at the bottom of this post.
    Attached Files Attached Files
    Last edited by Winon; 01-08-2013 at 04:05 PM. Reason: Sample WorkBook did not upload

+ 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