Skip to content

Instantly share code, notes, and snippets.

@terrbear
Created October 19, 2011 18:21
Show Gist options
  • Save terrbear/1299192 to your computer and use it in GitHub Desktop.
Save terrbear/1299192 to your computer and use it in GitHub Desktop.
= if((sum(arrayformula(if(sort(split(lower(indirect(address($A2, 6, true, true, "app vulnerabilities"))), " ", false)) = sort(split(lower(indirect(address($B2, 6, true, true, "app vulnerabilities"))), " ", false)), 1, 0))) * 2) = (sum(arrayformula(if(sort(split(lower(indirect(address($A2, 6, true, true, "app vulnerabilities"))), " ", false)) = sort(split(lower(indirect(address($A2, 6, true, true, "app vulnerabilities"))), " ", false)), 1, 0))) + sum(arrayformula(if(sort(split(lower(indirect(address($B2, 6, true, true, "app vulnerabilities"))), " ", false)) = sort(split(lower(indirect(address($B2, 6, true, true, "app vulnerabilities"))), " ", false)), 1, 0)))), VLOOKUP(F1, 'score values'!$A$1:$D$15, 2, false), min(sum(arrayformula(if(sort(split(lower(indirect(address($A2, 6, true, true, "app vulnerabilities"))), " ", false)) = sort(split(lower(indirect(address($B2, 6, true, true, "app vulnerabilities"))), " ", false)), 1, 0))) * VLOOKUP(F1, 'score values'!$A$1:$D$15, 3, false), VLOOKUP(F1, 'score values'!$A$1:$D$15, 2, false)-10))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment