Welcome Guest! The IOSH forums are a free resource to both members and non-members. Login or register to use them

Postings made by forum users are personal opinions. IOSH is not responsible for the content or accuracy of any of the information contained in forum postings. Please carefully consider any advice you receive.

Notification

Icon
Error

Options
Go to last post Go to first unread
mihaibertea  
#1 Posted : 15 December 2020 14:10:20(UTC)
Rank: Forum user
mihaibertea

Hi all, 

I am reaching out for some help with excel formulas on a H&S audit template, and some advice how to weight the questions to have a final audit score. My template has 111 questions on different topics and I am using the grading based on ISO (Critical, Major, Minor, OFI, Conforms and N/A). At the moment I give the same grade to a Critical as to a Minor, which I know that's not a true represenatation, and that's why I would appreciate some help with formulas and how to set up my excel template. Thanks 

chris42  
#2 Posted : 15 December 2020 14:43:45(UTC)
Rank: Super forum user
chris42

Not sure what you are trying to do exactly. However, my best guess is you would like to score critical as say 4, Major as 3 and so on. Then add all the scores up at the end of the 111 questions.

Again, not sure why you would want to do this. However, If in column a1 you have any of the listed question outcomes ie Critical would score 4 in descending order of score value. Then you could try a nested if statement.

=IF(A1="critical",4,IF(A1="Major",3,IF(A1="minor",2,IF(A1="OFI",1,IF(A1="Conforms",0,0)))))

This assumes the answer is in cell a4 (obviously when you copy it down it will auto change to a2, a3 etc. You just need to change this to be whatever cell your answer is in. I have scored both Conforms and anything not the others as zero. You have to ensure spelling is exact each time, not good as “criticl” would score 0. Then just sum that column at the bottom

In the above example formula critical=4, Major=3, Minor=2, OFI=1 and Conforms or N/A or Banana would score 0

Why not do it the other way ie type 4 and it puts “critical” in the box next to it.

Have fun, sometimes you need to try things to see its not a good idea. But hay

Chris

mihaibertea  
#3 Posted : 15 December 2020 14:58:44(UTC)
Rank: Forum user
mihaibertea

Hi Chris, what I want to do is to have a final audit score. If all answers are Conforms the score will be 100%, workplace is fully compliant.

But then as non-conformances are identified I will need to deduct points. So having 20 Minors will deduct 20%, but then I need to deduct more for a Critical, let's say 5% for each critical found, therefore having 5 Criticals will deduct 20%. Does this makes sense?

I am hoping that someone will have an audit template to share with me. 

achrn  
#4 Posted : 15 December 2020 15:29:16(UTC)
Rank: Super forum user
achrn

It can't really be percentages, becasue if you're saying a critical is 5%, and you have 111 questions tehre's potential to score -455%, which makes no sense.

So it's just a score, and chris42's equation will owrk as well as any, it's just that instead of scoring 4, 3, 2, 1, 0, you'll be scopring -5, something, -1, something, 0.

Actually, I prefer one of two differnet approaches to chris42's: Mostly I'd rather have a separate scopre table that lists teh answers and teh possible score, then use a vlookup to get teh score.  Thsi makes it trivial to regrade (e.g. if you decide a mnor should be -2 instead of -1, or a critical tshoudl be -20) - you just change teh value in teh lookup table.

If you don't want to use a lookup, rather than a long nested chain of 'if' statements, I find it tidier to use e.g.

=CHOOSE(MATCH(A1,{"conforms","OFI","minor","major","critical"},0),0,-1,-2,-5,-10)

So here, the 'MATCH(A1,{"conforms","OFI","minor","major","critical"},0)' looks up what is in A1 in the list (between {} marks) and returns 1 if it's the first, 2 if it's the second, 3 if it's the third, etc.  (Match is not case-sensitive btw so 'Conforms' and 'conforms' and even coNfOrMS wills core correctly.)

Then the CHOOSE(??,0,-1,-2,-5,-10) returns the first value (0) if ?? is 1, the second value (-1) if ?? is 2, the third value (-2) if ?? is 3, etc.

So together it returns 0 for 'Conforms', -1 for 'OFI', -2 for 'Minor'. Sum them, add them to 100.  Or set the scores as positive values and subtract the sum from 100.

You might want to use a validation and possibly a drop-down for the input cells so only recognised values can be entered in the cells - look at data tab on the ribbon and 'data validation'.  This depends how consistent your typing (and that of the people using the sheet) is.

Edited by user 15 December 2020 15:30:00(UTC)  | Reason: fix percentage (doh)

thanks 1 user thanked achrn for this useful post.
Acorns on 16/12/2020(UTC)
mihaibertea  
#5 Posted : 15 December 2020 15:41:35(UTC)
Rank: Forum user
mihaibertea

That's what I can't understand. I could potentially have negative score, which I agree doesn't make sense. But then even with scoring a -5, -3 etc I could end up to -555 for example if all questions are marked as Critical. 

chris42  
#6 Posted : 15 December 2020 16:17:43(UTC)
Rank: Super forum user
chris42

To be honest I would probably use lookup tables also, but I thought it easier for someone to get their head around a good old “if statement”. I could be wrong on that though. Tweaking at a later date wouldn’t be much of an issue you only need to the first one then copy and past down the 111 questions, a little more work only.

To get rid of the negativity, score the way I suggested ( ie think of it as taking points off. So, if you want to go to 5 for critical then the max bad score would be 555 (max good score is zero). If you then score 333 when added up, you take this away from 555, so you get 222 which you then calc as a percentage of the max so you end up with (222/555) x 100 for you score. In this case that would be 40%. If everything is perfect then you add up all the zeros to get zero take this from 555 and you get 555 and so 555/555 x 100 =100%

This is far more interesting than writing up audit reports as I’m supposed to be doing.

Chris

mihaibertea  
#7 Posted : 15 December 2020 16:46:31(UTC)
Rank: Forum user
mihaibertea

Thank you Chris. It’s starting to make sense to me so thank yon for taking the time. Is there a way to automate the score calculation a based on the below to have a final score? How do you score your audits?
chris42  
#8 Posted : 15 December 2020 17:24:16(UTC)
Rank: Super forum user
chris42

Where column D is where all the scores are from d1 to d111 (you can adjust if different)

=((555-SUM(D1:D111))/555)*100

My audits are in Word which is scored just to note overall improvement and I just add it up manually.  Well I add up what I will take off, so like you they start with 100% and go down hill from there on :0)  I inherited it from my predecessor, but it seems to work for them.

Things have improved significantly since I started so I may change it completely next year.

You now have three different ways of getting the score (1 from me and 2 from Achrn) in column D and the above should work to do the score at the bottom.

Chris

thanks 1 user thanked chris42 for this useful post.
Acorns on 16/12/2020(UTC)
mihaibertea  
#9 Posted : 15 December 2020 17:40:02(UTC)
Rank: Forum user
mihaibertea

Thanks Chris. If you need any help I am more than happy to assist. Anything else apart from formulas in excel 😂
thanks 1 user thanked mihaibertea for this useful post.
Acorns on 16/12/2020(UTC)
Users browsing this topic
Guest (3)
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.