ollyhughes1982
Well-known Member
- Joined
- Nov 27, 2018
- Messages
- 795
- Office Version
- 365
- Platform
- MacOS
Hi.
I have this formula, which identifies the closest events to me from a table that contains a list of distances in column I:
=IFERROR(LET(f,FILTER('parkrun Reader Dump'!B3:J10002,('parkrun Reader Dump'!K3:K10002="")*('parkrun Reader Dump'!N3:N10002=1)*('parkrun Reader Dump'!O3:O10002=1)*('parkrun Reader Dump'!P3:P10002=1)*('parkrun Reader Dump'!AS3:AS10002<>1)*('parkrun Reader Dump'!I3:I10002<200)),SORT(INDEX(f,SEQUENCE(50),{8,9,1}),1)),"")
This works perfectly, but I now want to do the same, but pick up slightly different columns (the one for volunteering (R)), but it isn’t working for me. I have put below what I think it should be, but isn’t working:
=IFERROR(LET(f,FILTER('parkrun Reader Dump'!B3:J10002,('parkrun Reader Dump'!R3:R10002="")*('parkrun Reader Dump'!N3:N10002=1)*('parkrun Reader Dump'!O3:O10002=1)*('parkrun Reader Dump'!AS3:AS10002<>1)*('parkrun Reader Dump'!I3:I10002<200)),SORT(INDEX(f,SEQUENCE(50),{8,9,1}),1)),"")
This is what I amended:
Thanks in advance!
Olly.
I have this formula, which identifies the closest events to me from a table that contains a list of distances in column I:
=IFERROR(LET(f,FILTER('parkrun Reader Dump'!B3:J10002,('parkrun Reader Dump'!K3:K10002="")*('parkrun Reader Dump'!N3:N10002=1)*('parkrun Reader Dump'!O3:O10002=1)*('parkrun Reader Dump'!P3:P10002=1)*('parkrun Reader Dump'!AS3:AS10002<>1)*('parkrun Reader Dump'!I3:I10002<200)),SORT(INDEX(f,SEQUENCE(50),{8,9,1}),1)),"")
This works perfectly, but I now want to do the same, but pick up slightly different columns (the one for volunteering (R)), but it isn’t working for me. I have put below what I think it should be, but isn’t working:
=IFERROR(LET(f,FILTER('parkrun Reader Dump'!B3:J10002,('parkrun Reader Dump'!R3:R10002="")*('parkrun Reader Dump'!N3:N10002=1)*('parkrun Reader Dump'!O3:O10002=1)*('parkrun Reader Dump'!AS3:AS10002<>1)*('parkrun Reader Dump'!I3:I10002<200)),SORT(INDEX(f,SEQUENCE(50),{8,9,1}),1)),"")
This is what I amended:
- I swapped K to the relevant column R
- I removed the reference to the P column (as it isn’t needed for this one)
Thanks in advance!
Olly.