Football Box Pool - Help With Formula??

olimits7

Board Regular
Joined
Oct 29, 2004
Messages
229
Office Version
  1. 365
Platform
  1. Windows
Hello,

I created a football box pool in excel and I used a combination of the OFFSET and MATCH formulas to find out who the winner is in each quarter depending on what score I put in the box. The formula works fine with single digit numbers, but I get a #N/A error for double digit scores.

For double digit scores it should just look at the last digit in the score to determine who won that quarter. Does anybody know of a way that I can just look at the second digit??

Here is a copy of the formula I used:

Code:
=IF(OR(ISBLANK($C$15),ISBLANK($C$16)),"No Score",OFFSET($B$2,MATCH($C$16,$B$3:$B$12,0),MATCH($C$15,$C$2:$L$2,0)))

Thank you,

olimits7
 

Excel Facts

Ambidextrous Undo
Undo last command with Ctrl+Z or Alt+Backspace. If you use the Undo icon in the QAT, open the drop-down arrow to undo up to 100 steps.
I'd suggest that INDEX is a better function to use than OFFSET in this situation but, nevertheless, for your specific request, if I understand correctly, try replacing C15 in the formula with MOD(C15,10) and similar for C16, i.e.

=IF(COUNT(C15:C16)=2,INDEX(C3:L12,MATCH(MOD(C16,10),B3:B12,0),MATCH(MOD(C15,10),C2:L2,0)),"No Score")
 
Upvote 0

Forum statistics

Threads
1,214,593
Messages
6,120,434
Members
448,961
Latest member
nzskater

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