Search in csv file for Match
Posted: 31 May 2017 04:34
Hi,
I need help for solving this, on daily basis around 600 entries are reconciled manually.
I have two comma separated csv files, File1.csv & File2.csv, 1st row header Date,Particulars,Amount,Type,Balance.
Startiing from Column Particulars of File1.csv into column Particulars of File2.csv for search matching (alphanumeric string,match means partial 10% will do), and if it finds a partial match also it will display complete row for acceptance or rejection of row.
If accepted (y) then move complete row to new file from both the csv files to reconresult.csv If rejection is pressed searching new possibles in the column Particulars in File2.csv to the last record (around 600 rows of data), if no search if found, then scroll to next record in File1.csv
For search ignore start tags like WIPE,CLIENT,DIRECT,PAIDTO: because they are default remarks which will scroll to each and every record better to start after '/' ':' The best search will be characters type then numberic type.
1. Display complete row on screen because its manual one to one entry.
15-05-2017,WIPE/PPKKB17137737564/1328/TOP PLAST PRIV,100000,CR,200000,, -File1.csv
15-05-2017,WIPE/TOP PLAST,1000000,DR,500000,, - File2.csv
Accept Match [Y/N]?:
File1.csv
15-05-2017,WIPE/PPKKB17137737564/1328/TOP PLAST PRIV,100000,CR,200000,,
15-05-2017,WIPE/000015778881/10100002898/TECHNOLOGIES,450000,DR,545360,,
15-05-2017,WIPE/000015113345556000026796/CREDIT CARD,15300,DR,5463800
File2.csv
15-05-2017,WIPE/TOP PLAST,1000000,DR,500000,,
15-05-2017, WIPE/000015778881/TURBO,45000.00,CR,6673880,,
15-05-2017, WIPE/000034778483/CREDIT CARD,10000,DR,1275700,,
15-05-2017,WIPE/CREDIT CARD,15300,CR,7563700,,
Reconresult.csv
15-05-2017,WIPE/PPKKB17137737564/1328/TOP PLAST PRIV,100000,CR,200000,,
15-05-2017,WIPE/TOP PLAST,1000000,DR,500000,,
15-05-2017,WIPE/000015778881/10100002898/TECHNOLOGIES,450000,DR,545360,,
15-05-2017, WIPE/000015778881/TURBO,45000.00,CR,6673880,,
15-05-2017,WIPE/000015113345556000026796/CREDIT CARD,15300,DR,5463800
15-05-2017,WIPE/CREDIT CARD,15300,CR,7563700,,
Thanks in advance.
I need help for solving this, on daily basis around 600 entries are reconciled manually.
I have two comma separated csv files, File1.csv & File2.csv, 1st row header Date,Particulars,Amount,Type,Balance.
Startiing from Column Particulars of File1.csv into column Particulars of File2.csv for search matching (alphanumeric string,match means partial 10% will do), and if it finds a partial match also it will display complete row for acceptance or rejection of row.
If accepted (y) then move complete row to new file from both the csv files to reconresult.csv If rejection is pressed searching new possibles in the column Particulars in File2.csv to the last record (around 600 rows of data), if no search if found, then scroll to next record in File1.csv
For search ignore start tags like WIPE,CLIENT,DIRECT,PAIDTO: because they are default remarks which will scroll to each and every record better to start after '/' ':' The best search will be characters type then numberic type.
1. Display complete row on screen because its manual one to one entry.
15-05-2017,WIPE/PPKKB17137737564/1328/TOP PLAST PRIV,100000,CR,200000,, -File1.csv
15-05-2017,WIPE/TOP PLAST,1000000,DR,500000,, - File2.csv
Accept Match [Y/N]?:
File1.csv
15-05-2017,WIPE/PPKKB17137737564/1328/TOP PLAST PRIV,100000,CR,200000,,
15-05-2017,WIPE/000015778881/10100002898/TECHNOLOGIES,450000,DR,545360,,
15-05-2017,WIPE/000015113345556000026796/CREDIT CARD,15300,DR,5463800
File2.csv
15-05-2017,WIPE/TOP PLAST,1000000,DR,500000,,
15-05-2017, WIPE/000015778881/TURBO,45000.00,CR,6673880,,
15-05-2017, WIPE/000034778483/CREDIT CARD,10000,DR,1275700,,
15-05-2017,WIPE/CREDIT CARD,15300,CR,7563700,,
Reconresult.csv
15-05-2017,WIPE/PPKKB17137737564/1328/TOP PLAST PRIV,100000,CR,200000,,
15-05-2017,WIPE/TOP PLAST,1000000,DR,500000,,
15-05-2017,WIPE/000015778881/10100002898/TECHNOLOGIES,450000,DR,545360,,
15-05-2017, WIPE/000015778881/TURBO,45000.00,CR,6673880,,
15-05-2017,WIPE/000015113345556000026796/CREDIT CARD,15300,DR,5463800
15-05-2017,WIPE/CREDIT CARD,15300,CR,7563700,,
Thanks in advance.