# Complex IF Statements

#### Zmaxx

##### New Member
Hi Guys

I am trying and struggling to create a nested IF statement for risk assessment that works this way:
The risk factor is calculated by multiplying the consequence(ranges from 1-7) and probability(ranges from 1-9). Based on the product of the two the values can be categorised as very low, low....high. Now the part where I'm struggling is:
#Each consequence range (1-7) has it's own criteria for whether a value is considered very low, low etc.
#I want to create an IF statement that will first check the value of consequence, then based on that value it will check the value of the product (consequence x probability) and return very low, low, torable etc
For example:
Consequence = 1, Probability = 4
Risk Score = 1×4 = 4
Risk Category = Low

Consequence = 2, Probability = 6
Risk Score = 2x6 = 12
Risk Category = Tolerable

What is the best way to approach this? Thank You

#### AlanY

##### Well-known Member
firstly, you need to define the ranges for the very low, low & high categories.

secondly, let say score 12 = tolerable, does it matter if it's resulted from 2x6 or 3x4 etc?

#### Zmaxx

##### New Member
I managed to do it by creating a grid table with the labels and used a combination of VLOOKUP and MATCH to find the point of intersection for each possible combination. Thank You

1,082,359
Messages
5,364,916
Members
400,815
Latest member
Joaquin Phoenix

### This Week's Hot Topics

• populate from drop list with multiple tables
Hi All, i have a drop list that displays data, what i want is when i select one of those from the list to populate text from different tables on...
• Find list of words from sheet2 in sheet1 before a comma and extract text vba
Hi Friends, Trying to find the solution on my task. But did not find suitable one to the need. Here is my query and sample file with details...
• Dynamic Formula entry - VBA code sought
Hello, really hope one of you experts can help with this - i've spent hours on this and getting no-where. .I have a set of data (more rows than...