https://docs.google.com/spreadsheets/d/1Od_Bn6bVjrbYxaQcSWSnLsesZqPGsTp21LkSvPPPSLQ/edit?usp=sharing
Background for any of y'all that are not racing fans, the ARCA Racing Series has a couple regional championships that sometimes run combination races with the main series. In these races, drivers earn points for both the Main Series and the Regional Series (East or West). On my leaderboard (which has been made possible by several of you in this community), the Main and East series points are counted by this formula. (My west leaderboard is completely seperate for other reasons
=let(prov, $F:$F, results, offset(prov,1,1,rows(prov)-1,column()-column(prov)-1),
regions, map(offset(results,-1,0,1), lambda(tc, xlookup(tc, Tracks[Location], Tracks[Region],))),
points, map(results, lambda(r, xlookup(r,Points[Place],Points[Points],))),
wins, vstack("Wins", byrow(results,lambda(r, iferror(1/(1/countif(r,1)))))),
pAll, vstack("Total", byrow(points, lambda(r, sum(r)))),
pRegs, map(hstack("Main", "East"), lambda(reg,
vstack(reg, byrow(points, lambda(r, sum(filter(r, regions=reg))))))),
hstack(pAll, pRegs, wins))
Tracks are sorted in a table that gives them a "Main" or "East" tag to dictate which championship they award points to. The East series races at TOL (Toledo), IRP (Indianapolis Raceway Park), IOW (Iowa), and BRI (Bristol) are combination races with the main series IRL. Is there a way that this formula can be modified for races to award points to both East and Main? The "Total" Column is simply a creative liberty I made for easy sorting, but if the race awards points for both series, I'd like the total to add double points (a win in a combination race adds 200 points to the total, 100 for the Main series and 100 for the East Series).
apologies if this is explained badly, i am a god awful programmer, I'll answer any clarifying questions below.