Am having 2 sets of file types in a folder named line1 anode,line1 cathode…line 2 anode ,Line 2 Cathode…till 25 lines. But some line will only have anode and some lines will only have cathode files… I need to get a specific cell value from both the files and update it on the final report in respective Lines.
My final report will be like
Column A Column B Column C
line value AnodeValue Cathode value
My loop is working fine if both the anode and cathode files are present.
But if only one file is present its not working as expected not updating on the expected line please help me
I have attached my folder and output excel sample.
The average and SD value are already calculated and read from a specific cells in the files.
For some line only cathode is available and some only anode file is available based on the line value it needs to be updated in the respective output sheet
Here what i understood is, you have some set of files starting like Line_Anode_04May2022, Line_Cathode_04May2022 etc… You need to add the data from these files to a master excel and to the specific columns?
Yes exactly…The line value in the output sheet is taken from the file name in the folder.
Its working fine if the line has both anode and cathode files But it there is only either anode or cathode it need to type the specific line name and write the value in either anode or cathode column based on file available
Yes I have used if condition to check the file name and update in the respective column…its working fine if the line has both anode and cathode files… but if the line has only anode only cathode the iteration is not working properly…