#REF Error in LAMBDA function when inserting rows

macfuller

Active Member
Joined
Apr 30, 2014
Messages
319
Office Version
  1. 365
Platform
  1. Windows
I have MAP functions in rows 10 and 11 that references defined tables and named ranges on a sheet. The functions work fine.

When I try to insert a row below row 9 or 12 to make more room, all the MAP functions in rows 10/11 get a #REF error. The table range has moved but everything still seems to be the same in the formula? I hate to reconstruct the entire sheet, but I don't know what's going on.

2022 MCC NCAA.xlsx
BCDEF
2ScoringRoundPoints
3110
4220
5340
64100
75150
86300
9
10Player Points00
11Max Remaining Pts00
12Rank12
13TeamsRounds WonStill PlayingPlayer 1Player 2
14Akron (13)0TRUE
15Alabama (6)0TRUE
16Arizona (1)0TRUE
17Arkansas (4)0TRUE
18Auburn (2)0TRUE
19Baylor (1)0TRUE
20Boise State (8)0TRUE
21Chattanooga (13)0TRUE
22Colgate (14)0TRUE
PPR Player Picks
Cell Formulas
RangeFormula
E10E10=SUM( MAP( tblPPRPicks[Rounds Won], tblPPRPicks[Player 1]+0, LAMBDA(a,b,SUMPRODUCT( (RndPoints) * ((RndName) <= MIN(a,b)) ) ) ) )
F10F10=SUM( MAP( tblPPRPicks[Rounds Won], tblPPRPicks[Player 2]+0, LAMBDA(a,b,SUMPRODUCT( (RndPoints) * ((RndName) <= MIN(a,b)) ) ) ) )
E11E11=SUM( MAP(tblPPRPicks[Rounds Won], tblPPRPicks[Still Playing], tblPPRPicks[Player 1], LAMBDA(a,b,c, SUMPRODUCT( RndPoints, (RndName > a) * ((RndName <= c) * b) ) ) ) )
F11F11=SUM( MAP(tblPPRPicks[Rounds Won], tblPPRPicks[Still Playing], tblPPRPicks[Player 2], LAMBDA(a,b,c, SUMPRODUCT( RndPoints, (RndName > a) * ((RndName <= c) * b) ) ) ) )
E12:F12E12=RANK.EQ(E10,$E$10:$X$10) + COUNTIF($E$10:E$10,E$10) - 1
B14:B22B14=INDEX(SortedTeamList,ROW(1:1))
C14:C22C14=XLOOKUP($B14,TeamList,WinList)
D14:D22D14=XLOOKUP([@Teams],TeamList,LostList)
Named Ranges
NameRefers ToCells
LostList='Results Bracket'!$AH$88:$AH$151D14:D22
RndName='PPR Player Picks'!$E$3:$E$8B16, E10:F11
RndPoints='PPR Player Picks'!$F$3:$F$8B16, E10:F11
SortedTeamList='Results Bracket'!$X$88:$X$151B14:B22
TeamList='Results Bracket'!$V$88:$V$151C14:D22
WinList='Results Bracket'!$Z$88:$Z$151C14:C22
 

Excel Facts

Create a Pivot Table on a Map
If your data has zip codes, postal codes, or city names, select the data and use Insert, 3D Map. (Found to right of chart icons).

Forum statistics

Threads
1,223,893
Messages
6,175,249
Members
452,623
Latest member
Techenthusiast

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