Why does this appear as #NAME? on this page when it properly puts values on other pages?

Tomeegee

New Member
Joined
Mar 9, 2021
Messages
30
Office Version
  1. 365
Platform
  1. MacOS
MrExcel helped me set up this page a couple of years ago for when my tournament had a woman join and I needed to populate the proper handicap on the scoring set up. The page properly distribute values to the pages it needs to, but when I need to add new courses here, I can't understand why it returns #NAME? what it is. This page is set up to show values if a Player is a woman "Gina M" or just a "Player". I don't get why all courses return #NAME? in the "if with Player" row for all courses and FALSE in the "if With Gina M" row when PineLakes is chosen. In the sheets that draw from this page, the values appear without these NAME and FALSE returns, but I don't know why they happen here. Arrays are way above my pay grade at the moment, so figuring this one out has been burdensome. Thanks for your help.

problem formula.xlsx
ABCDEFGHIJKLMNOPQRSTUVWX
1
2Player
3Tom GMGolf Course:PineLakes
4
5FRONT
6
7HOLE123456789Total
8Score Card Par54344354436
9Hole Handicap9131573171115
10
11123456789101112131415161718
12
13PineLakes543443544364544354343672
14Men's Handicap913157317111582101218416146
15Ladies Handicap371591713511118614101241682
16
17Oleander443545434364543453443672
18Men's Handicap135151371117910421612818146
19Ladies Handicap135151371117910421612818146
20
21IndianMound435443544365434443543672
22Men's Handicap111711371539541418612101628
23Ladies Handicap515113111739741418612101628
24
25Sanctuary445343454364443453543672
26Men's Handicap313151171795114610184121682
27Ladies Handicap171117591315314612188101624
28
29
30If with Player#NAME?#NAME?#NAME?#NAME?#NAME?#NAME?#NAME?#NAME?#NAME?{=IF(AND(B3=Player,$B5="FRONT",$I3="PineLakes"),$C$14:$K$14,IF(AND($B5="BACK",$I3="PineLakes"),$M$14:$U$14,IF(AND($B5="FRONT",$I3="Oleander"),$C$18:$K$18,IF(AND($B5="BACK",$I3="Oleander"),$M$18:$U$18,IF(AND($B5="FRONT",$I3="IndianMound"),$C$22:$K$22,IF(AND($B5="BACK",$I3="IndianMound"),$M$22:$U$22,IF(AND($B5="FRONT",$I3="Sanctuary"),$C$26:$K$26,IF(AND($B5="BACK",$I3="Sanctuary"),$M$26:$U$26))))))))}
31if With Gina MFALSEFALSEFALSEFALSEFALSEFALSEFALSEFALSEFALSE{=IF(AND(B3="Gina M",$B5="FRONT",$I3="PineLakes"),$C$15:$K$15,IF(AND($B5="BACK",$I3="PineLakes"),$M$15:$U$15,IF(AND($B5="FRONT",$I3="Oleander"),$C$19:$K$19,IF(AND($B5="BACK",$I3="Oleander"),$M$19:$U$19,IF(AND($B5="FRONT",$I3="IndianMound"),$C$23:$K$23,IF(AND($B5="BACK",$I3="IndianMound"),$M$23:$U$23,IF(AND($B5="FRONT",$I3="Sanctuary"),$C$27:$K$27,IF(AND($B5="BACK",$I3="Sanctuary"),$M$27:$U$27))))))))}
32
33Comparison9131573171115=@INDEX(INDIRECT($I$3),IF($C$3="M",2,3),IF($B$5="FRONT",COLUMN(B1),COLUMN(L1)))
34
35
ParHCPs
Cell Formulas
RangeFormula
C3C3=IF(B3="Gina M","F","M")
C7:K7C7=IF(B5="FRONT",C11:K11,IF(B5="BACK",M11:U11))
C8:K8C8=INDEX(INDIRECT($I$3),1,IF($B$5="FRONT",COLUMN(B1),COLUMN(L1)))
L8,V25,L25,V21,L21,V17,L17,V13,L13L8=SUM(C8:K8)
C9:K9C9=INDEX(INDIRECT($I$3),IF($C$3="M",2,3),IF($B$5="FRONT",COLUMN(B1),COLUMN(L1)))
W13,W25,W21,W17W13=SUM(L13+V13)
C30:K30C30=IF(AND(B3=Player,$B5="FRONT",$I3="PineLakes"),$C$14:$K$14,IF(AND($B5="BACK",$I3="PineLakes"),$M$14:$U$14,IF(AND($B5="FRONT",$I3="Oleander"),$C$18:$K$18,IF(AND($B5="BACK",$I3="Oleander"),$M$18:$U$18,IF(AND($B5="FRONT",$I3="IndianMound"),$C$22:$K$22,IF(AND($B5="BACK",$I3="IndianMound"),$M$22:$U$22,IF(AND($B5="FRONT",$I3="Sanctuary"),$C$26:$K$26,IF(AND($B5="BACK",$I3="Sanctuary"),$M$26:$U$26))))))))
C31:K31C31=IF(AND(B3="Gina M",$B5="FRONT",$I3="PineLakes"),$C$15:$K$15,IF(AND($B5="BACK",$I3="PineLakes"),$M$15:$U$15,IF(AND($B5="FRONT",$I3="Oleander"),$C$19:$K$19,IF(AND($B5="BACK",$I3="Oleander"),$M$19:$U$19,IF(AND($B5="FRONT",$I3="IndianMound"),$C$23:$K$23,IF(AND($B5="BACK",$I3="IndianMound"),$M$23:$U$23,IF(AND($B5="FRONT",$I3="Sanctuary"),$C$27:$K$27,IF(AND($B5="BACK",$I3="Sanctuary"),$M$27:$U$27))))))))
M30:M31,M33M30=FORMULATEXT(C30)
C33:K33C33=INDEX(INDIRECT($I$3),IF($C$3="M",2,3),IF($B$5="FRONT",COLUMN(B1),COLUMN(L1)))
Press CTRL+SHIFT+ENTER to enter array formulas.
Dynamic array formulas.
Cells with Data Validation
CellAllowCriteria
B3List=S22_90!$J$2:$J$19
B5List=Side
B13List=S22_90!$O$2:$O$6
B17List=S22_90!$O$2:$O$6
B21List=S22_90!$O$2:$O$6
B25List=S22_90!$O$2:$O$6
I3List=S22_90!$O$2:$O$6
 

Excel Facts

Repeat Last Command
Pressing F4 adds dollar signs when editing a formula. When not editing, F4 repeats last command.
Your formula refers to the named range Player. However, although you provided a copy of your sheet, we cannot see how this range is defined in your workbook, or whether it is defined at all. If it is not defined at all, you will get a #NAME error.

Go to Formulas > Name Manager and see if the name Player is defined. If it is not, that is the problem, but I don't have enough of your file to figure out how it's supposed to be defined.
 
Upvote 0
I think that it is just that you have omitted inverted commas in the row 30 formula.

Row 31 starts with: =IF(AND(B3="Gina M",
Row 30 starts with: =IF(AND(B3=Player,
but shouldn't it be: =IF(AND(B3="Player",

Actually, I think that I am changing my mind & it is possibly more likely if you mean B3 is any player except Gina M then
=IF(AND(B3<>"Gina M",
Also, given that you have Excel 365 the formula in C30 does not need to be entered with Ctrl+Shift+Enter or entered in D30:K30 - see C30 below.

If I am understanding what you are trying to do, then I have suggested a much simpler formula in cell C31 that should work whether it is Gina M or a male player in B3 and also whether it if FRONT or BACK in B5

23 08 27.xlsm
BCDEFGHIJK
1
2Player
3Tom GMGolf Course:Oleander
4
5FRONT
6
7HOLE123456789
10
11123456789
12
13PineLakes543443544
14Men's Handicap9131573171115
15Ladies Handicap3715917135111
16
17Oleander443545434
18Men's Handicap1351513711179
19Ladies Handicap1551319711173
20
28
29
30If with Player1351513711179
31If with Player or Gina M1351513711179
Sheet2 (2)
Cell Formulas
RangeFormula
C3C3=IF(B3="Gina M","F","M")
C7:K7C7=IF(B5="FRONT",C11:K11,IF(B5="BACK",M11:U11))
C30:K30C30=IF(AND(B3<>"Gina M",$B5="FRONT",$I3="PineLakes"),$C$14:$K$14,IF(AND($B5="BACK",$I3="PineLakes"),$M$14:$U$14,IF(AND($B5="FRONT",$I3="Oleander"),$C$18:$K$18,IF(AND($B5="BACK",$I3="Oleander"),$M$18:$U$18,IF(AND($B5="FRONT",$I3="IndianMound"),$C$22:$K$22,IF(AND($B5="BACK",$I3="IndianMound"),$M$22:$U$22,IF(AND($B5="FRONT",$I3="Sanctuary"),$C$26:$K$26,IF(AND($B5="BACK",$I3="Sanctuary"),$M$26:$U$26))))))))
C31:K31C31=INDEX(C14:U27,MATCH(I3,B13:B26,0)+(C3="F"),SEQUENCE(,9,IF(B5="FRONT",1,11)))
Dynamic array formulas.
 
Last edited:
Upvote 0
Solution
I think that it is just that you have omitted inverted commas in the row 30 formula.

Row 31 starts with: =IF(AND(B3="Gina M",
Row 30 starts with: =IF(AND(B3=Player,
but shouldn't it be: =IF(AND(B3="Player",

Actually, I think that I am changing my mind & it is possibly more likely if you mean B3 is any player except Gina M then
=IF(AND(B3<>"Gina M",
Also, given that you have Excel 365 the formula in C30 does not need to be entered with Ctrl+Shift+Enter or entered in D30:K30 - see C30 below.

If I am understanding what you are trying to do, then I have suggested a much simpler formula in cell C31 that should work whether it is Gina M or a male player in B3 and also whether it if FRONT or BACK in B5

23 08 27.xlsm
BCDEFGHIJK
1
2Player
3Tom GMGolf Course:Oleander
4
5FRONT
6
7HOLE123456789
10
11123456789
12
13PineLakes543443544
14Men's Handicap9131573171115
15Ladies Handicap3715917135111
16
17Oleander443545434
18Men's Handicap1351513711179
19Ladies Handicap1551319711173
20
28
29
30If with Player1351513711179
31If with Player or Gina M1351513711179
Sheet2 (2)
Cell Formulas
RangeFormula
C3C3=IF(B3="Gina M","F","M")
C7:K7C7=IF(B5="FRONT",C11:K11,IF(B5="BACK",M11:U11))
C30:K30C30=IF(AND(B3<>"Gina M",$B5="FRONT",$I3="PineLakes"),$C$14:$K$14,IF(AND($B5="BACK",$I3="PineLakes"),$M$14:$U$14,IF(AND($B5="FRONT",$I3="Oleander"),$C$18:$K$18,IF(AND($B5="BACK",$I3="Oleander"),$M$18:$U$18,IF(AND($B5="FRONT",$I3="IndianMound"),$C$22:$K$22,IF(AND($B5="BACK",$I3="IndianMound"),$M$22:$U$22,IF(AND($B5="FRONT",$I3="Sanctuary"),$C$26:$K$26,IF(AND($B5="BACK",$I3="Sanctuary"),$M$26:$U$26))))))))
C31:K31C31=INDEX(C14:U27,MATCH(I3,B13:B26,0)+(C3="F"),SEQUENCE(,9,IF(B5="FRONT",1,11)))
Dynamic array formulas.
Thank you SO much. That works like a charm and it frees me from those cumbersome arrays! MrExcel is the best
 
Upvote 0
Thank you SO much. That works like a charm and it frees me from those cumbersome arrays!
Keep in mind that they are still array formulas. It's just that 365 does not require to you do anything special to make them so; it is able to determine it from context. The only thing you are freed from is having to hit CTRL+SHIFT+ENTER and the brackets. But do be aware of possible performance issues whenever you use array formulas.
 
Upvote 0

Forum statistics

Threads
1,224,823
Messages
6,181,175
Members
453,021
Latest member
Justyna P

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