Forum Discussion

Nick_1987's avatar
Nick_1987
Copper Contributor
Nov 26, 2022
Solved

creating a list showing differences in row numbers for each integer in a database

I have a set of Excel databases in which each row contains a number from 1 to up to 500. Certain numbers are repeated in later rows, for example the integer "1" may be found in rows 1, 15, 32, 48, 97...
  • dscheikey's avatar
    Nov 26, 2022

    Nick_1987

    Hi Nick, I have completed the first part of your task. Now I'm sure you can do your graphic on your own. I didn't understand how it should look.

     

    The formula that generates your data could look like this:

     

    =IFERROR(LET(data,$A$1:$A$99,integer,H$2,diffs,FILTER(ROW(data),data=integer),INDEX(diffs,SEQUENCE(COUNT(diffs)-1,,2))-INDEX(diffs,SEQUENCE(COUNT(diffs)-1,,1))),"")

     

    See also the enclosed example file.

Resources