Hi all..
Glad to know this forum..
I have problem with my macro excel.
I want to compare 2 sheets (1st Semester & 2nd Semester), the result is in the Sheet Output. My problem is there is possibilities that there are some values have duplicates. For example, there are 2 "Budi" Grade "7" in Sheet1 and Sheet2 but have different score.
Currently, I am using find codes to match the row from Sheet1 to Sheet2 with the condition if the row have the same "Name" and "Grade", they will be on the same row in the Sheet Output. The problem is if there is duplicate value of "Name" and "Grade", like the case of "Budi" Grade "7", the first match is being overwrite with the second match. I want the result is exactly just like in the Sheet Output without deleting any duplicates.
Here is my data:
Thank you for your help. I am really appreciated..
Glad to know this forum..
I have problem with my macro excel.
I want to compare 2 sheets (1st Semester & 2nd Semester), the result is in the Sheet Output. My problem is there is possibilities that there are some values have duplicates. For example, there are 2 "Budi" Grade "7" in Sheet1 and Sheet2 but have different score.
Currently, I am using find codes to match the row from Sheet1 to Sheet2 with the condition if the row have the same "Name" and "Grade", they will be on the same row in the Sheet Output. The problem is if there is duplicate value of "Name" and "Grade", like the case of "Budi" Grade "7", the first match is being overwrite with the second match. I want the result is exactly just like in the Sheet Output without deleting any duplicates.
Here is my data:
Book1.xlsm | |||||||
---|---|---|---|---|---|---|---|
A | B | C | D | E | |||
1 | Name | Grade | Math | Biology | Physics | ||
2 | Ammar | 7 | 83 | 38 | 7 | ||
3 | Agus | 8 | 11 | 64 | 24 | ||
4 | Budi | 7 | 62 | 21 | 8 | ||
5 | Budi | 7 | 31 | 77 | 5 | ||
6 | Budi | 8 | 57 | 83 | 30 | ||
7 | Budi | 9 | 43 | 79 | 67 | ||
8 | Bambang | 7 | 5 | 76 | 72 | ||
9 | Bambang | 8 | 4 | 82 | 75 | ||
10 | Bambang | 9 | 83 | 96 | 68 | ||
11 | Eli | 8 | 95 | 30 | 95 | ||
12 | Franda | 8 | 31 | 99 | 92 | ||
13 | Gladisya | 7 | 8 | 22 | 36 | ||
14 | Gladisya | 9 | 43 | 53 | 52 | ||
15 | Haris | 8 | 34 | 73 | 86 | ||
16 | Lina | 9 | 82 | 14 | 43 | ||
17 | Zoey | 8 | 9 | 70 | 78 | ||
1st Semester |
Book1.xlsm | |||||||
---|---|---|---|---|---|---|---|
A | B | C | D | E | |||
1 | Name | Grade | Math | Biology | Physics | ||
2 | Ammar | 7 | 22 | 66 | 84 | ||
3 | Budi | 7 | 21 | 83 | 63 | ||
4 | Budi | 7 | 30 | 7 | 78 | ||
5 | Budi | 8 | 61 | 66 | 31 | ||
6 | Budi | 9 | 81 | 20 | 92 | ||
7 | Bambang | 7 | 23 | 70 | 89 | ||
8 | Bambang | 8 | 42 | 89 | 9 | ||
9 | Bambang | 9 | 28 | 50 | 64 | ||
10 | Eli | 7 | 7 | 65 | 13 | ||
11 | Eli | 8 | 38 | 6 | 64 | ||
12 | Franda | 8 | 98 | 26 | 89 | ||
13 | Gladisya | 7 | 98 | 98 | 75 | ||
14 | Gladisya | 9 | 94 | 33 | 4 | ||
15 | Lina | 9 | 20 | 46 | 10 | ||
16 | Zoey | 8 | 68 | 56 | 63 | ||
2nd Semester |
Book1.xlsm | ||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
A | B | C | D | E | F | G | H | I | J | K | L | |||
1 | Name | Grade | Math | Biology | Physics | Name | Grade | Math | Biology | Physics | ||||
2 | Ammar | 7 | 83 | 38 | 7 | Ammar | 7 | 22 | 66 | 84 | ||||
3 | Agus | 8 | 11 | 64 | 24 | |||||||||
4 | Budi | 7 | 62 | 21 | 8 | Budi | 7 | 21 | 83 | 63 | ||||
5 | Budi | 7 | 31 | 77 | 5 | Budi | 7 | 30 | 7 | 78 | ||||
6 | Budi | 8 | 57 | 83 | 30 | Budi | 8 | 61 | 66 | 31 | ||||
7 | Budi | 9 | 43 | 79 | 67 | Budi | 9 | 81 | 20 | 92 | ||||
8 | Bambang | 7 | 5 | 76 | 72 | Bambang | 7 | 23 | 70 | 89 | ||||
9 | Bambang | 8 | 4 | 82 | 75 | Bambang | 8 | 42 | 89 | 9 | ||||
10 | Bambang | 9 | 83 | 96 | 68 | Bambang | 9 | 28 | 50 | 64 | ||||
11 | Eli | 7 | 7 | 65 | 13 | |||||||||
12 | Eli | 8 | 95 | 30 | 95 | Eli | 8 | 38 | 6 | 64 | ||||
13 | Franda | 8 | 31 | 99 | 92 | Franda | 8 | 98 | 26 | 89 | ||||
14 | Gladisya | 7 | 8 | 22 | 36 | Gladisya | 7 | 98 | 98 | 75 | ||||
15 | Gladisya | 9 | 43 | 53 | 52 | Gladisya | 9 | 94 | 33 | 4 | ||||
16 | Haris | 8 | 34 | 73 | 86 | |||||||||
17 | Lina | 9 | 82 | 14 | 43 | Lina | 9 | 20 | 46 | 10 | ||||
18 | Zoey | 8 | 9 | 70 | 78 | Zoey | 8 | 68 | 56 | 63 | ||||
Output |
Thank you for your help. I am really appreciated..