Cumberground
New Member
- Joined
- Feb 28, 2025
- Messages
- 2
- Office Version
- 365
- Platform
- Windows
I'm trying to convert a working formula to use Let() in order to simplify things but I'm getting #Name error for the name1 variable.
Old:
New:
The formula looks-up the player name from cell $AL6 and returns the index/matched score from another worksheet - 'Scoresheet 1'!$CA$34:$CA$57
It works perfectly on the old formula but won't work on the new, it fails even if I (rather redundantly) do the following:
The array from Scoresheet 1 is returned correctly as {53;47;43;41;40;39;36;36;36;35;34;32;31;31;31;30;29;28;28;27;27;23;22;19} in all three formula
Any ideas why it doesn't like the name1 variable?
I've tried using different variable names just in case...
Thanks
Old:
Excel Formula:
=IFERROR(IF($AL6="","",INDEX('Scoresheet 1'!$CF$34:$CF$57,MATCH($AL6,'Scoresheet 1'!$CA$34:$CA$57,0))),"")
Excel Formula:
=LET(vScores,'Scoresheet 1'!$CF$34:$CF$57,IFERROR(IF($AL6="","",INDEX(vScores,MATCH($AL6,vScores,0))),""))
It works perfectly on the old formula but won't work on the new, it fails even if I (rather redundantly) do the following:
Excel Formula:
=LET(vScores,'Scoresheet 1'!$CF$34:$CF$57,IFERROR(IF($AL6="","",INDEX('Scoresheet 1'!$CF$34:$CF$57,MATCH($AL6,'Scoresheet 1'!$CF$34:$CF$57,0))),""))
The array from Scoresheet 1 is returned correctly as {53;47;43;41;40;39;36;36;36;35;34;32;31;31;31;30;29;28;28;27;27;23;22;19} in all three formula
Any ideas why it doesn't like the name1 variable?
I've tried using different variable names just in case...
Thanks