+ Reply to Thread
Results 1 to 5 of 5

Counter based on cell color

  1. #1
    Registered User
    Join Date
    02-09-2007
    Posts
    18

    Counter based on cell color

    hi
    i was trying to make my roster sheet in which , i have 5 rows with 5 columns each, i have made three counters as well
    1. Annual leave -red
    2. no of days worked -blue
    3. sickness - green

    and these three have 3 diff colors like red blue and green
    what i want to know is
    if i take an annual leave the color of the cell, i change to red manually, then the corresponding counter ie annual leave counter should say 1.
    then if i take more annual leave (ie changing the color of the cell to red) the counter should incrrease correspondingly to 2,3 ...so on
    how can i do that in excel
    could anyone pls help me with this
    thx in adv

  2. #2
    Forum Moderator Leith Ross's Avatar
    Join Date
    01-15-2005
    Location
    San Francisco, Ca
    MS-Off Ver
    2000, 2003, & 2010
    Posts
    23,258

    Re: Counter based on cell color

    Hello dolphin_m70,

    It would help to know how these cells are colored. Are you using VBA to change the cell's interior color or are you using Conditional Formatting?
    Sincerely,
    Leith Ross

    Remember To Do the Following....

    1. Use code tags. Place [CODE] before the first line of code and [/CODE] after the last line of code.
    2. Thank those who have helped you by clicking the Star below the post.
    3. Please mark your post [SOLVED] if it has been answered satisfactorily.


    Old Scottish Proverb...
    Luathaid gu deanamh maille! (Rushing causes delays!)

  3. #3
    Registered User
    Join Date
    02-09-2007
    Posts
    18

    Re: Counter based on cell color

    thx for reply leith
    im coloring it manually, im changing the color to red blue or green , no condnl formatting has been used

  4. #4
    Registered User
    Join Date
    02-09-2007
    Posts
    18

    Re: Counter based on cell color

    anybody pls

  5. #5
    Forum Moderator Leith Ross's Avatar
    Join Date
    01-15-2005
    Location
    San Francisco, Ca
    MS-Off Ver
    2000, 2003, & 2010
    Posts
    23,258

    Re: Counter based on cell color

    Hello dolphin_m70,

    Sorry about the delay, can you provide a sample of the layout or post your workbook? It will make it easier and faster to write the code.

+ 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