+ Reply to Thread
Results 1 to 3 of 3

Value based on cell formatting

Hybrid View

  1. #1
    Registered User
    Join Date
    09-22-2006
    Location
    Western Arkansas
    MS-Off Ver
    2016
    Posts
    75

    Value based on cell formatting

    I have a grid that shows which departments (listed in rows) have turned in inspection forms (listed in columns). If the department has turned in a particular inspection form, I format the cell at that intersection green.If not, I format it red. I would like to assign a zero value to red cells, and a value of 1 to green cells. That way I can quickly showed the percentage of inspection forms that have been turned in based on the total number of green cells. Can this be done and, if so, how?
    Last edited by jmoffett; 01-19-2011 at 11:15 AM.

  2. #2
    Forum Guru DonkeyOte's Avatar
    Join Date
    10-22-2008
    Location
    Northumberland, UK
    MS-Off Ver
    O365
    Posts
    21,531

    Re: Value based on cell formatting

    You should be approaching this from the opposite direction. You should be using the value of 0/1 (in your matrix) to control the formatting (Conditional Format based on 0 or 1).
    (note you can use a Custom Format to not display the 0/1 if that's your preference)

    Working in reverse as you are will only make your life more complicated.
    Assuming the formatting is controlled manually you are looking at VBA.
    Furthermore, manually altering the format of a cell is not a Volatile action - ie does not invoke any Event and as such your subsequent calculations will be open to error until a recalculation is enforced (introducing Volatility will reduce rather than remove risk of error)

  3. #3
    Registered User
    Join Date
    09-22-2006
    Location
    Western Arkansas
    MS-Off Ver
    2016
    Posts
    75

    SOLVED: Value based on cell formatting

    That answers my question. Thanks.

+ 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