[x]
Posted via EE Mobile

Search, ask, and monitor your questions on the go with EE Mobile. Visit Experts Exchange from your mobile device and never be out of touch again.

Question
[x]
Attachment Details
[x]
The Solution Rating System

With so many solutions, how can you tell which solutions are most likely to help you and which ones are not? To provide you with a tool to use, we rate our solutions based on various elements that most accurately determine if a solution is a quality solution. To explain what factors affect the solution rating, here are the elements we take into consideration when formulating our solution rating.

  • The Grade of the Solution
  • The Zone Rank of the Expert Providing the Solution
  • The Number of Author and Expert Comments
  • The Number of Experts Contributing
  • The Feedback of the Community

Your Input Matters
Because of the way the system is set up, the most important variable in this equation is you. As a member of Experts Exchange, you are able to cast your vote on the quality of the solutions in regard to how complete, accurate, helpful and easy to understand each solution is. When you provide your feedback, each rating is adjusted accordingly. So, if you see a solution that has a poor rating that you think is a good solution, let us know by rating it. As you do, the rating will be adjusted and will become more accurate for other members of our site.

If you have any suggestions that you would like to make for our rating system, please ask a question in the Suggestions Zone of Community Support.

Thank you!

8.4

Tricky Math and VB Code Problem

Asked by Debsyl99 in Microsoft Excel Spreadsheet Software

Tags: vb

Hi
I don't know if there's a way around this but I lack the math and vba skill to sort it out.
Basically, the chart in a worksheet (it's not really a chart - it just looks a bit like one) looks like this

http://www.ghost-watch.co.uk/riskmap3.html

As you can see - with the help of a couple of experts from here I've got a button that run a macro that checks the values of probability and impact (the multiplication of which = gross risk) and puts the corresponding risk code for that row in the correct cell in the chart. This code works a treat, and is as follows:
Sub EnterRiskD()

    Dim O As Range
    Dim cell As Range
    Dim P As Range
    Dim I As Range
    Dim R As Range

    Range("ResultsD").ClearContents
    For Each cell In Range("PTableD")
        Set P = cell
        Set I = cell.Offset(0, 1)
        Set R = cell.Offset(0, -2)
        If P.Value <> "" And I.Value <> "" Then
       
        Set O = Range("ResultsD").Cells(1, 1).Offset(6 - I.Value, P.Value - 1)

         If O.Value = "" Then
            O.Value = R.Value
        Else
            O.Value = O.Value & "," & R.Value
        End If

        End If

    Next cell

End Sub

The range ResultsD is all the cells that comprise the coloured chart at the top ie from C5 over to H10. The range PTableD is from E16 down - ie more cells than I'll need.

I've now been asked to actually chart the net risk intead - given that when charting say a row that's
Risk Code - 10
Probability - 6
Impact - 6
Gross Risk - 36
Net Risk - 20
My code will happily put Risk Code 10 -in cell H5, when it would need to go in E5 - which is the only cell with impact value of 6 that could hold a value of 20. The number of management controls is 16.

The relationship between Gross Risk and Net Risk is down to the number of management controls in place which arent listed here but this could be any number between 1 and 36. The number of management controls is subtracted from gross risk to produce a value for net risk.

If you understand this so far then thanks for sticking with me. Can any of you maths&vba geniuses come up with a way of charting net risk using a macro and command button? I'm completely stumped. I've awarded the maximum but would quite happily award 20,000 points if I could. Please ask anything you need to know,
Thanks
Deb :))
[+][-]09/22/06 06:58 AM, ID: 17577586Accepted Solution

View this solution now by starting your 30-day free trial. Setting up your free trial is quick, easy, and secure. We will return you to this solution, unlocked, when you're done.

About this solution

Zone: Microsoft Excel Spreadsheet Software
Tags: vb
Sign Up Now!
Solution Provided By: rorya
Participating Experts: 2
Solution Grade: A
 
[+][-]09/22/06 04:53 AM, ID: 17576820Expert Comment

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 30-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]09/22/06 05:35 AM, ID: 17577033Author Comment

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 30-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]09/22/06 06:24 AM, ID: 17577311Expert Comment

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 30-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]09/22/06 06:54 AM, ID: 17577552Author Comment

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 30-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]09/22/06 07:20 AM, ID: 17577741Author Comment

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 30-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]09/22/06 07:25 AM, ID: 17577786Expert Comment

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 30-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]09/22/06 07:30 AM, ID: 17577824Author Comment

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 30-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]09/22/06 08:19 AM, ID: 17578205Expert Comment

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 30-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]09/22/06 08:25 AM, ID: 17578264Expert Comment

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 30-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]09/22/06 08:26 AM, ID: 17578273Author Comment

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 30-day free trial to view this Author Comment or ask the Experts your question.

 
 
Loading Advertisement...
20091111-EE-VQP-92