+ Reply to Thread
Results 1 to 5 of 5

Testing colour of cell and result cell not updating automatically

  1. #1
    Registered User
    Join Date
    03-06-2013
    Location
    UK
    MS-Off Ver
    Excel 2007
    Posts
    7

    Testing colour of cell and result cell not updating automatically

    Hi,

    I'm attempting to put together a spreadsheet that measures the difference between an actual assessed score for a person and their "ideal" score. The assessed scores are entered into the sheet manually and then then the user can double click on a score between 1 and 7 to denote their "ideal" score (for a range of components). Then the gap between the assessed and ideal will be calculated for each component. (Hope that makes sense) :-)

    So, what I have done so far is insert some Visual Basic, so that one can double click on a score between 1 and 7 for all the components and then that score will be highlighted in blue. (Each score is in an individual cell). This all seems to work well. What I needed to do then was create a function that would look at each cell of the 7 and see whether it had been highlighted or not.

    I then created 7 new functions called colour7, colour6, colour 5 etc This is identify for each of the 7 scores, whether they have been selected or not. The example below is colour7. colour6 would have "-6" at the end as it would denote 6 columns to the left etc.)

    =GET.CELL(63,OFFSET(INDIRECT("RC",FALSE),0,-7))
    [ Details of the GET.CELL macro function can be found here http://www.mrexcel.com/forum/excel-q...arguments.html ]

    In the 'result cell I have the formula:
    =IF(Colour7=37,C5,"False")
    So, if the cell is blue, which is code 37), the result would return the contents of the cell, otherwise it would just return "FALSE"

    This is all good and well, but my problem is that the result does not update automatically. So if I double click on the cell to select a score, or unselect as the case may be, the result does not update automatically. If I click on Calculate now the result cell updates. I have checked the calculation options and they are all set to automatic, so I am at a bit of a loss. Can anyone help?

    Thanks,

    Mark

  2. #2
    Registered User
    Join Date
    03-02-2013
    Location
    India
    MS-Off Ver
    Excel 2010
    Posts
    67

    Re: Testing colour of cell and result cell not updating automatically

    Can you submit the workbook with sample data and your attempt so far. The problem on hand seems to be fairly easy and the point of issue is not very clear because it is attempted in a particular manner.

  3. #3
    Registered User
    Join Date
    03-06-2013
    Location
    UK
    MS-Off Ver
    Excel 2007
    Posts
    7

    Re: Testing colour of cell and result cell not updating automatically

    Hi, thanks for the response. I've attached the sheet which I hope is self explanatory. I've put a few notes in the sheet itself. Please come back should you have any questions. Kind regards and thanks,

    Mark
    Attached Files Attached Files

  4. #4
    Forum Expert
    Join Date
    12-11-2011
    Location
    Netherlands
    MS-Off Ver
    office 365
    Posts
    3,255

    Re: Testing colour of cell and result cell not updating automatically

    Please Login or Register  to view this content.
    Willem
    English is not my native language sorry for errors
    Please correct me if I'm completely wrong

  5. #5
    Registered User
    Join Date
    03-06-2013
    Location
    UK
    MS-Off Ver
    Excel 2007
    Posts
    7

    Re: Testing colour of cell and result cell not updating automatically

    Popipipo - You are a life saver! You have been such a great help! Such a small thing has caused me so much pain. Thank you!
    Mark

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Tags for this Thread

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