Risk score form

Andyc516b

New Member
Joined
Apr 1, 2022
Messages
20
Office Version
  1. 365
Platform
  1. Windows
I am trying to put together a manual back up for an electronic system at work which on occasion fails.
The form allocates a risk score based on 2 factors the magnitude of a reading and the proximity of the reading.
Risk factors are calculated for the location and then a multiplier is added for each (the closest proximity and the highest recorded reading) giving 2 score which may or may not differ.
I have cells allocated to record the distance to the highest and distance to the closest reading and cells to record the magnitude of the highest overall reading and the closest reading. There is then a multiplier table so for example if a reading above 50 is less than 5m away the site total would be multiplied by 8 but if the same reading was between 5 and 10m away it would be multiplied by 7 and so on.

I have tried using ifs/and but it doesn’t seem to work For the above example I used
IFS(E39<50,AND(D37>=5)*E43*8,
(E39<50,AND(D37<5>10)*E43*7,
Etc etc
Where E39 is the strength of reading, D37 is the distance to the highest reading and E43 is the site specific score which is constant throughout the job.

There are 20 possible combinations of distance against strength.
Using the above formula if E39 is above 50 and D37 is below 5 the result is multiplied by 8 correctly, if either number falls out of that parameter I just get a zero as the result.
Is there a more elegant solution if not what am I doing wrong after the first logic test to only get zeros?
 

Excel Facts

How can you turn a range sideways?
Copy the range. Select a blank cell. Right-click, Paste Special, then choose Transpose.
Welcome to the Board! If possible, it would be very helpful if you could upload a small working example of your sheet (edited to eliminate any sensitive information) using the XL2BB add-in available here (see link in my signature block). If that is problematic, then link to a small sample worksheet (Dropbox, Google Drive, etc.) or, as a last resort, upload a partial screenshot showing the general layout of your worksheet and the ranges where the lookup information can be found.
 
Upvote 0
I can see that this part of your expression is a problem: AND(D37<5>10)
Do you want to check that D37 is less than 5 AND D37 is also greater than 10? AND(D37<5, D37>10)
 
Upvote 0
Many thanks I am currently on my mobile, I will log in when I get home and send from my tablet I’m working on, assuming work will allow me to install the program on their device
I tried uploading a screen shot but the image was too big.
 
Upvote 0
I can see that this part of your expression is a problem: AND(D37<5>10)
Do you want to check that D37 is less than 5 AND D37 is also greater than 10? AND(D37<5, D37>10)
No I want to check if d37 is more than 5 but Less than 10, if it is 9 for example if it is then the score would be multiplied by 7 if it was 13 say move onto next check
 
Upvote 0
Sorry...just looked at what I wrote before and realized it makes no sense...it would never be true!
It should read: AND(D37>5, D37<10)

Work restrictions might very well limit what you can install. A snapshot using the snipping tool will allow you to include a smaller selection of cells.
 
Last edited:
Upvote 0
@Andyc516b
Hopefully you will be able to post a visual that illustrates what you have and what you need.
If not then please do try and clarify.

I am a little confused by your text which refers to 'if a reading above 50 is less than 5m away the site total would be multiplied by 8'.
Yet your formula snippet has 'IFS(E39<50...... ?
You also refer to '20 possible combinations of distance against strength'. Are you able to define them?

IFS(E39<50,AND(D37>=5)*E43*8,
(E39<50,AND(D37<5>10)*E43*7,
Etc etc suggests subsequent multipliers 6,5,4,3,2,1 ???? That would be 8 combinations.
Are there then others using a distance other than 50?
 
Upvote 0
Depending on the structure of the magnitude-distance (M-D) factor table, there may be a more efficient way to determine the factors. Here is a mock-up, partially based on the information provided. Is the primary issue one of determining automatically which M-D factor applies for the closest distance condition and which M-D factor applies for the largest magnitude condition? If so, then more details are needed to assess whether there might be better approaches based on referencing the risk factor table rather than hard-wiring the thresholds directly into the formulas. In this example, the 20 row M-D factor lookup table has a structure such that we could filter the factors based on meeting certain criteria (such as relevant rows must have a magnitude greater than the measurement AND the corresponding distance in the lookup table must be less than the actual distance). This potentially returns no matches, one, or even multiple matches. Depending of what the specific filtering rules are, this approach might be of interest. Assumed inputs are shaded light blue. In this example, you'll see where the formula returns two matches for both cases.
MrExcel_20220401.xlsx
CDEFGHIJKLM
33IdxMagnitudeDist. (m)M-D FactorLocationSite Factor
3416059.3site A4
35260108.3site B1.5
36360157.3site C2
37distance to largest reading8460206.3site D3
38560255.3
39magnitude of largest reading --->4965058
40M-D factor for largest reading --->9.3750107
418850156
42location? --->site C950205
43site-specific factor --->21050254
44114056.5
45distance to closest reading?61240105.5
461340154.5
47magnitude of closest reading? --->481440203.5
48M-D factor for largest reading --->9.31540252.5
498163055.1
501730104.1
511830153.1
521930202.1
532030251.1
Sheet2
Cell Formulas
RangeFormula
E40:E41,E48:E49E40=FILTER($J$34:$J$53,($H$34:$H$53>E39)*($I$34:$I$53<D37),"not found")
E43E43=XLOOKUP(E42,$L$34:$L$37,$M$34:$M$37,"not found")
Dynamic array formulas.
 
Upvote 0
Sorry...just looked at what I wrote before and realized it makes no sense...it would never be true!
It should read: AND(D37>5, D37<10)

Work restrictions might very well limit what you can install. A snapshot using the snipping tool will allow you to include a smaller selection of cells.
I have tried editing as you suggested, the First logical works but if the numbers don't fit those parameters it just gives a zero
 
Upvote 0
@Andyc516b
Hopefully you will be able to post a visual that illustrates what you have and what you need.
If not then please do try and clarify.

I am a little confused by your text which refers to 'if a reading above 50 is less than 5m away the site total would be multiplied by 8'.
Yet your formula snippet has 'IFS(E39<50...... ?
You also refer to '20 possible combinations of distance against strength'. Are you able to define them?

IFS(E39<50,AND(D37>=5)*E43*8,
(E39<50,AND(D37<5>10)*E43*7,
Etc etc suggests subsequent multipliers 6,5,4,3,2,1 ???? That would be 8 combinations.
Are there then others using a distance other than 50?
There are 4 possible distance brackets
(0.5-5m, 5.1-10m, 10.1-30m, 30m plus)
And 5 magnitude brackets (50%+gas, 5-50% gas,50-99lel, 1-50lel, no trace) which makes for 20 different combinations.

On the current manual form, the distances are across the top and strength of reading down the side, you then cross reference the 2 to find the multiplier.

This is repeated for the closest and the highest reading to give 2 totals and the higher of the 2 is used to give the final risk score.
 
Upvote 0

Forum statistics

Threads
1,214,826
Messages
6,121,795
Members
449,048
Latest member
greyangel23

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top