- Oct 30, 2000
- 92
- 0
- 0
I need a solution to actually a simple problem really quickly. My problem is that I have not programmed in a long time, so I know the general algorithm of what needs to be done-- but the code.
Here goes:
Review: I primarily deal with a 15 code: 14 octal values plus 1 binary
value at the end: ie. 77777777777771 (cell1)or 657413777010111 (cell2) The values are actually codes for DNA fingerprints of Tuberculosis isolates
Now those two particular codes are dissimilar, but say if I changed
the second code to: 767777757777770, this one would be more closely related to
the first one. there are only three differences in the code. A 6/7, 5/7
and a 1/0. I think anything beyond three integer differences would be
significant.
What I'd like to do would be, is to highlight cell1 (then use a trigger
event, like CRTL-whatever) and have it spit out (sort or filter) all the
values in that column that come under that max difference integer
threshold. Frankly my way, would just be sorting and physically looking
for similar patterns.
But that would be pretty time consuming.
So, say we have these two columns:
colA colB
515563435640731 X1
777777777720771 X2 <- If I hightlight this: (777777777720771, col A)
777777777760731 X3
776377777760771 X4
777777777760771 X5
I'll get this:
colA colB
777777777760731 X3 (2 integer difference)
776377777760771 X4 (3 integer difference)
777777777760771 X5 (1 integer difference)
The algorithm would be as follows:
Highlight cell (value) in colA
Trigger event/start macro
Search col A for values <=3 integer(character) differences
Display applicable col A values and colB data.
End
I know it's a lot, but it'd be great help. And help me learn as well!
Anyone got any ideas?
Thanks!
Here goes:
Review: I primarily deal with a 15 code: 14 octal values plus 1 binary
value at the end: ie. 77777777777771 (cell1)or 657413777010111 (cell2) The values are actually codes for DNA fingerprints of Tuberculosis isolates
Now those two particular codes are dissimilar, but say if I changed
the second code to: 767777757777770, this one would be more closely related to
the first one. there are only three differences in the code. A 6/7, 5/7
and a 1/0. I think anything beyond three integer differences would be
significant.
What I'd like to do would be, is to highlight cell1 (then use a trigger
event, like CRTL-whatever) and have it spit out (sort or filter) all the
values in that column that come under that max difference integer
threshold. Frankly my way, would just be sorting and physically looking
for similar patterns.
But that would be pretty time consuming.
So, say we have these two columns:
colA colB
515563435640731 X1
777777777720771 X2 <- If I hightlight this: (777777777720771, col A)
777777777760731 X3
776377777760771 X4
777777777760771 X5
I'll get this:
colA colB
777777777760731 X3 (2 integer difference)
776377777760771 X4 (3 integer difference)
777777777760771 X5 (1 integer difference)
The algorithm would be as follows:
Highlight cell (value) in colA
Trigger event/start macro
Search col A for values <=3 integer(character) differences
Display applicable col A values and colB data.
End
I know it's a lot, but it'd be great help. And help me learn as well!
Anyone got any ideas?
Thanks!