I want to check if these combinatios are present in an excel sheet for each Father, Mother and their Child. If they are highlight them, or bold, or in an empty column, in same row, write error.
Each Mother,Father, Child separated by an empy column are separate case.
I am beginner in VBA, thank you for suggestions in advance.
My data looks like this
For these combinations I am checking:
Each Mother,Father, Child separated by an empy column are separate case.
I am beginner in VBA, thank you for suggestions in advance.
My data looks like this
child | mother | father | child | mother | father | child | mother | father | ||||||||
Chr | Start | End | Ref | Alt | 1 | 2 | 3 | 4 | 5 | 6 | 8 | 9 | 10 | |||
male | female | male | female | female | male | male | female | male | ||||||||
1 | 3775283 | 3775283 | T | G | 1/1/ | 1/1/ | 0/0 | 1/1/ | 1/1/ | 0/0 | 0/0 | 0/0 | 0/0 | |||
1 | 3782273 | 3782273 | C | A | 1/1/ | 0/0 | 0/0 | 0/0 | 0/0 | 0/0 | 0/0 | 0/0 | 0/0 | |||
1 | 3782307 | 3782307 | C | G | 0/0 | 0/0 | 0/0 | 1/1/ | NaN | 0/0 | 0/1 | 0/0 | 1/1/ | |||
1 | 3782524 | 3782524 | C | T | 0/1 | 0/0 | 1/1/ | 0/0 | 0/0 | 0/0 | 1/1/ | 0/0 | 0/0 | |||
1 | 3782550 | 3782550 | C | T | 0/0 | 0/0 | 0/0 | NaN | 1/1/ | 0/0 | 0/0 | 0/0 | 0/0 | |||
1 | 3784600 | 3784600 | C | T | NaN | 1/1/ | 0/0 | 0/0 | 0/0 | 0/0 | 1/1/ | 1/1/ | 0/0 | |||
1 | 3786165 | 3786165 | C | T | 0/0 | 0/0 | 0/0 | 0/1 | 0/0 | 1/1/ | 0/0 | 0/0 | 0/0 | |||
1 | 3786185 | 3786185 | C | T | 0/0 | 0/0 | 0/0 | 0/0 | 0/0 | 0/0 | NaN | 1/1/ | 0/0 | |||
1 | 3786189 | 3786189 | G | A | 1/1/ | 1/1/ | 0/1 | 1/1/ | 1/1/ | 0/1 | 0/0 | 0/1 | 0/1 | |||
1 | 3786228 | 3786228 | C | T | 0/0 | 0/0 | 0/0 | 0/0 | 0/0 | 0/0 | 0/0 | 0/0 | 0/0 | |||
1 | 3786245 | 3786245 | G | A | 1/1/ | NaN | 0/0 | 1/1/ | 0/0 | 0/0 | 1/1/ | NaN | 0/0 | |||
1 | 3786275 | 3786275 | A | G | 0/0 | 0/0 | 0/0 | 0/0 | 0/0 | 0/0 | 1/1/ | 0/0 | 0/0 | |||
1 | 3789026 | 3789026 | T | G | 1/1/ | NaN | 0/0 | 1/1/ | NaN | 0/0 | 0/0 | 0/0 | 0/0 | |||
1 | 3789061 | 3789061 | T | C | NaN | 1/1/ | 0/0 | 0/0 | 0/0 | 0/0 | 0/0 | 0/0 | 0/0 |
For these combinations I am checking:
Father | Mother | Child |
0/0 | 0/0 | 1/1/ |
0/0 | 0/0 | 0/1 |
0/0 | 0/1 | 1/1/ |
0/0 | 1/1/ | 1/1/ |
0/0 | 1/1/ | 0/0 |
0/1 | 0/0 | 1/1/ |
0/1 | 1/1/ | 0/0 |
1/1/ | 0/0 | 0/0 |
1/1/ | 0/0 | 1/1/ |
1/1/ | 0/1 | 0/0 |
1/1/ | 1/1/ | 0/1 |
1/1/ | 1/1/ | 0/0 |
NaN | 0/0 | 1/1/ |
NaN | 1/1/ | 0/0 |
0/0 | NaN | 1/1/ |
1/1/ | NaN | 0/0 |