View Single Post
  #1   Report Post  
F6Hawk
 
Posts: n/a
Default Too many nested functions

I am trying to create a bowling scoring worksheet, and have got it worked out
great, except that I was using nested IFs to get the scores. It works great
up to the 7th one, but I need about 10 to get the job done, so am looking for
an alternative solution. My formula using IFs is:

=IF(AND(B4="X", E4="X", H4="X"), 30,
+IF(AND(B4="X", E4="X", H4="-"), 20,
+IF(AND(B4="X", E4="X", H4<""), 20+H4,
+IF(AND(B4="X", E4<"", F4="/"), 20,
+IF(AND(B4="X", E4="-", F4="-"), 10,
+IF(AND(B4="X", E4="-", F4<""), 10+F4,
+IF(AND(B4="X", E4<"", F4<""), 10+E4+F4, "")))))))

I need to continue to test B4 & C4 about 3 more times to get all the
possible entries; and until the bowling scoring parameters are met, I want a
blank in the cell.

What should I use instead? I have tried looking into a =INDEX(range,
MATCH(ball1), MATCH(ball2) and looking that up in a table, but am having
difficulties with situations such as no entry {""}, strike{X}, and spare{/}.

Thank you in advance for any assistance, and feel free to ask for any
clarification I may have overlooked.