Hi,
Thanks for taking the time to read and help resolve this issue. I've attached an image of the data I am working with.
I'm looking for a formula to determine how the max consecutive numbers a row has. Consecutive meaning {5, 2, 3, 1, 4, 12, 65} because the array has consecutive numbers from 1 to 5 even though it's out of order. The formula would return '5'. {54, 21, 78, 1, 5, 12, 65} returns 0. {54, 55, 74, 1, 5, 12, 65} returns 2. Etc.. Note: A number only appears once in a row. No two columns in same row will have the same number.
I've been completely stumped on how to proceed. Nothing I have managed to search for has given me clues. Mostly because every formula I come across requires knowing the values you want to look for. In my case, each row has 21 columns and there are 80 different numbers that can appear in each row. So I'm not concerned with what numbers are consecutive as I am how many total.
Please let me know if you have any questions. I will be checking here regularly to answer.
Thanks!
Thanks for taking the time to read and help resolve this issue. I've attached an image of the data I am working with.
I'm looking for a formula to determine how the max consecutive numbers a row has. Consecutive meaning {5, 2, 3, 1, 4, 12, 65} because the array has consecutive numbers from 1 to 5 even though it's out of order. The formula would return '5'. {54, 21, 78, 1, 5, 12, 65} returns 0. {54, 55, 74, 1, 5, 12, 65} returns 2. Etc.. Note: A number only appears once in a row. No two columns in same row will have the same number.
I've been completely stumped on how to proceed. Nothing I have managed to search for has given me clues. Mostly because every formula I come across requires knowing the values you want to look for. In my case, each row has 21 columns and there are 80 different numbers that can appear in each row. So I'm not concerned with what numbers are consecutive as I am how many total.
Please let me know if you have any questions. I will be checking here regularly to answer.
Thanks!