INDEX curly bracket issue likely

ollyhughes1982

Well-known Member
Joined
Nov 27, 2018
Messages
677
Office Version
  1. 365
Platform
  1. 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:
  • I swapped K to the relevant column R
  • I removed the reference to the P column (as it isn’t needed for this one)
I’m guessing it’s the part in curly brackets ({8,9,1}) that it wrong, but I don’t know what that is doing, so am not sure how it would be amended.

Screenshot 2022-09-27 at 18.29.08.jpg


Thanks in advance!

Olly.
 
Probably just pure coincidence, if it is actually working.
Yes, you have inadvertently just found an issue with the original one! I just tested it on the original one, by amending to your way, and it is now working correctly. I thought it was previously, but I can now see ones that it had indeed been missing out. Thanks again, this has been a big help! I hadn't bothered you for at least a few weeks! 😬
 
Upvote 0

Excel Facts

Bring active cell back into view
Start at A1 and select to A9999 while writing a formula, you can't see A1 anymore. Press Ctrl+Backspace to bring active cell into view.

Forum statistics

Threads
1,215,043
Messages
6,122,825
Members
449,096
Latest member
Erald

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