+ Reply to Thread
Results 1 to 6 of 6

Format the previous cell based on the value of the current cell.

  1. #1
    Registered User
    Join Date
    12-03-2011
    Location
    Bangalore, India
    MS-Off Ver
    Excel 2007
    Posts
    14

    Format the previous cell based on the value of the current cell.

    I need a VBA for the below!

    In column A the names are followed by their presence (Absent/Present),
    I just want to color the names based on present or absent.

    Example: So Sunny was present so color that cell in Green
    & Rocky was absent so mark him in Red

    A1 Names (Header)
    A2 Sunny
    A3 Present
    A4 Sam
    A5 Present
    A6 Tom
    A7 Present
    A8 Rocky
    A9 Absent
    A10 Raw
    A11 Absent
    A12 Dave
    A13 Absent
    Last edited by IamHarish; 12-12-2011 at 06:18 PM.

  2. #2
    Forum Expert Mordred's Avatar
    Join Date
    07-06-2010
    Location
    Winnipeg, Canada
    MS-Off Ver
    2007, 2010
    Posts
    2,787

    Re: Format the previous cell based on the value of the current cell.

    Try
    Please Login or Register  to view this content.
    If you're happy with someone's help, click that little star at the bottom left of their post to give them Reps.

    ---Keep on Coding in the Free World---

  3. #3
    Registered User
    Join Date
    12-03-2011
    Location
    Bangalore, India
    MS-Off Ver
    Excel 2007
    Posts
    14

    Re: Format the previous cell based on the value of the current cell.

    Superb! Thanks also
    I need a msgBox saying
    1. No. of present
    2. No. of Absent
    3. Total Number of Employees.

  4. #4
    Registered User
    Join Date
    12-03-2011
    Location
    Bangalore, India
    MS-Off Ver
    Excel 2007
    Posts
    14

    Re: Format the previous cell based on the value of the current cell.

    oooops NO REPLY

  5. #5
    Forum Expert Mordred's Avatar
    Join Date
    07-06-2010
    Location
    Winnipeg, Canada
    MS-Off Ver
    2007, 2010
    Posts
    2,787

    Re: Format the previous cell based on the value of the current cell.

    Hello IamHarish, sorry this took so long but try:
    Please Login or Register  to view this content.

  6. #6
    Registered User
    Join Date
    12-03-2011
    Location
    Bangalore, India
    MS-Off Ver
    Excel 2007
    Posts
    14

    SOLVED: Format the previous cell based on the value of the current cell.

    Just Awesome! Thank you

+ 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