Hello and thank you in advance for any help provided,
One row is all values regarding one single entry and I would like to create a formula (or how many necessary, or any other suggestions or is it even possible to do so?) which would analyze every single row taking into consideration 8 rows above and 8 below without counting with the row itself, giving me the probability to have any of the "B5", "B4", "B3", "B2" or "B1" in Column C rather than "B0" when there's a row with "R" in Column I, and then the same in another column but now checking up to 20 rows away (above or below). I do something similar (regarding to check the rows above and below) with the formula =LET(A,B2:INDEX(B:B,MATCH("ZZzz",B:B)),B,C2:INDEX(C:C,MATCH("ZZzz",C:C)),C,X2:X7,D,Y2:Y7,F,ROW(B),BYROW(A,LAMBDA(z,LET(G,FILTER(B,(F>ROW(z)-9)*(F<ROW(z)+9)*(F<>ROW(z))),SUM(IFERROR(XLOOKUP(G,C,D),0)))))) which gives me a score based on 8 rows above and below, unrelated to the current question but just thought in putting it here if it helps with the rows above and below request.
Goal is to see the probability of having a "B5", "B4", "B3", "B2" or "B1" value instead of a "B0" when a value is within 8 rows above or below of a "R" in Column I (percentage on the same row as I= "R", Column J) and then doing the same to compare the probability when it's up to 20 rows away (above or below) on Column K as per the provided spreadsheet.
For example in the provided spreadsheet, I14, on J14 it's 6.25% of having B5, B4, B3, B2 or B1 on column C in the 8 rows above or below (only C21 in the the range with "B5" so 1 out of 16). K14 is 10% (3 out of 30, 12 rows up, 18 bellow) 10%. It will be 20 rows up and below but this is a limited spreadsheet to serve as example.
I've attached a test spreadsheet through Onedrive link (and uploaded the file just in case the link didn't work) with limited rows for you to be able to see and all the formulas used on that spreadsheet are on the first row. Do let me know if I didn't explained correctly, English isn't my first language and it's not something exactly easy to explain, happy to provide any more information that anyone might require to help me.
Test1.xlsx
https://1drv.ms/x/s!An0SvH8nZTgpg-l8...7qpOw?e=FCgXWY
Thank you
Bookmarks