travellingred
New Member
- Joined
- Sep 17, 2008
- Messages
- 16
Hi all
I've got a spreadsheet which contains, in column L, a field entitled Unique Reference Number (URN). The data is over 9000 rows long.
This URN field contains an integer. Each unique integer appears between 1 and X times within the dataset. I'm trying to extract any integers in a sequence that are missing.
I thought about creating a cell (Q1) with the first URN in it. Then in a separate cell (Q2) nesting a =COUNTIF(L1:L9000,Q1) which would return the number of times the first URN appears in the list. I then thought that if I could do a loop such that if the output from Q2 is greater than or equal to 1 then Q1 is incremented by 1 and the Q2 calculation runs again.
This loop would then either break each time a URN is missing from the list, or (preferably) could output into a separate column a list of each value of Q1 which generates a zero response to the COUNTIF command in Q2.
Is this possible? And if so, how do I do it?
Many thanks!!
I've got a spreadsheet which contains, in column L, a field entitled Unique Reference Number (URN). The data is over 9000 rows long.
This URN field contains an integer. Each unique integer appears between 1 and X times within the dataset. I'm trying to extract any integers in a sequence that are missing.
I thought about creating a cell (Q1) with the first URN in it. Then in a separate cell (Q2) nesting a =COUNTIF(L1:L9000,Q1) which would return the number of times the first URN appears in the list. I then thought that if I could do a loop such that if the output from Q2 is greater than or equal to 1 then Q1 is incremented by 1 and the Q2 calculation runs again.
This loop would then either break each time a URN is missing from the list, or (preferably) could output into a separate column a list of each value of Q1 which generates a zero response to the COUNTIF command in Q2.
Is this possible? And if so, how do I do it?
Many thanks!!