Football Box Pool - Help With Formula??

olimits7

Board Regular
Joined
Oct 29, 2004
Messages
202
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

Why are there 1,048,576 rows in Excel?
The Excel team increased the size of the grid in 2007. There are 2^20 rows and 2^14 columns for a total of 17 billion cells.

barry houdini

MrExcel MVP
Joined
Mar 23, 2005
Messages
20,825
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")
 

olimits7

Board Regular
Joined
Oct 29, 2004
Messages
202
Office Version
  1. 365
Platform
  1. Windows
Thank you that worked out great.

olimits7
 
Master Excel Bundle

Excel contains over 450 functions, with more added every year. That’s a huge number, so where should you start? Right here with this bundle.

Forum statistics

Threads
1,167,834
Messages
5,855,901
Members
431,772
Latest member
dannyboi1

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
Top