I'm not sure it's quite that simple Adam, I've found a solution but it includes a table that calculated every eventuality then using the vlookup and match function to identify the correct value.
If your solution is possible I would much rather use it but I have limited mathematical knowledge and struggle to comprehend much of the content from the results of that google search.
Bookmarks