Hello everyone,
Despite my attempts to find a solution to my problem, I confess that I can't.
My database has 3 columns:
Column "A" contains young people.
Column "B" contains the fathers.
Column "C" contains the mothers.
In the cell "N2" I have the young J1, I want to retrieve all the ancestors of this young from the columns: "A", "B" and "C" and place them in the range "U2:W" .
Unless I am mistaken, the result is in the range: "U2:W"
I allow myself to ask you for a solution in vba with a fairly quick solution because my database in columns: "A", "B" and "C" is very large 32000 lines.
I remain at your disposal for any additional information.
Thank you in advance for your suggestions.
Cheers.
Despite my attempts to find a solution to my problem, I confess that I can't.
My database has 3 columns:
Column "A" contains young people.
Column "B" contains the fathers.
Column "C" contains the mothers.
Classeur2 | |||||
---|---|---|---|---|---|
A | B | C | |||
1 | Youth | Fathers | Mothers | ||
2 | J1 | P1 | M1 | ||
3 | J2 | P22 | M22 | ||
4 | P1 | P2 | M2 | ||
5 | J3 | P24 | M10 | ||
6 | M1 | P3 | M3 | ||
7 | J5 | P25 | M35 | ||
8 | P2 | P4 | M4 | ||
9 | J4 | P27 | M40 | ||
10 | J8 | P26 | M50 | ||
11 | M2 | P5 | M5 | ||
12 | P3 | P6 | M6 | ||
13 | J6 | P37 | M51 | ||
14 | M3 | P7 | M7 | ||
15 | P4 | P8 | M8 | ||
16 | J7 | P26 | M52 | ||
17 | M4 | P9 | M9 | ||
18 | J9 | P28 | M35 | ||
19 | P5 | P10 | M10 | ||
20 | M5 | P11 | M11 | ||
21 | J10 | P55 | M56 | ||
22 | J11 | P21 | M87 | ||
23 | P8 | P12 | M12 | ||
24 | M6 | P13 | M13 | ||
Parents |
In the cell "N2" I have the young J1, I want to retrieve all the ancestors of this young from the columns: "A", "B" and "C" and place them in the range "U2:W" .
Unless I am mistaken, the result is in the range: "U2:W"
Classeur2 | ||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|
N | O | P | Q | R | S | T | U | V | W | |||
1 | J1 | Youth | Fathers | Mothers | ||||||||
2 | P1 | P2 | M2 | |||||||||
3 | P2 | P4 | M4 | |||||||||
4 | P4 | P8 | M8 | |||||||||
5 | P8 | P12 | M12 | |||||||||
6 | M2 | P5 | M5 | |||||||||
7 | P5 | P10 | M10 | |||||||||
8 | M5 | P11 | M11 | |||||||||
9 | M1 | P3 | M3 | |||||||||
10 | P3 | P6 | M6 | |||||||||
11 | M3 | P7 | M7 | |||||||||
Parents |
I allow myself to ask you for a solution in vba with a fairly quick solution because my database in columns: "A", "B" and "C" is very large 32000 lines.
I remain at your disposal for any additional information.
Thank you in advance for your suggestions.
Cheers.