I have two excel files and I want to copy data row by row based on Column's values:
first file:
Id, X1, X2,......,Xn
1.11.2022, 10,20,....., 20
2.11.2022, 30, 40,....., 100
4.11.2022, 20, 30,......,70
.
30.11.2022, 10, 10,....., 50
as you can read in this file we do not have values of (3.11.2022)!!!!! the second file I created the same one with all days like
Id, X1, X2,......,Xn
1.11.2022,
2.11.2022,
3.11.2022,
.
30.11.2022,
I want to write a code to read the first file row by row,
for i in file 1
for j in file 2
If i("ID")== j("ID")
write i with the same ID to J with the same ID
if j+1 = j + one day to check if the sequence in j is correct.
else i = Na, Na, ....., Na
if we do not have value like day( 3.11.2022)
I know this matter is easier in other languages. It would be nice if someone can help me! Thanks in advance
How can I write the code of this process