Compare Columns in 2 Different CSV Files, Do Some Calculations & Display Results

dgr

Board Regular
Joined
Apr 24, 2005
Messages
176
Hi,
I know very little about VBA therefore I need your help. This is my problem.

Main Issue:
I download a csv report every day. This csv file has got 1000's of entries. I need to compare Column J of new.csv(downloaded today) vs Column J of old.csv(downloaded yesterday) on a daily basis. I also need to compare Column K of new.csv vs Column K of old.csv

Both columns contain numbers. Therefore, the comparison would involve a calculation of Column J of new.csv -(minus) Column J of old.csv & Column K of new.csv -(minus) Column K of old.csv

If the result of the calculation is greater than 0, display the results on the workbook that contains the macro. If the results are 0 or less than 0(negative), display the phrase "NO CHANGES". The results need to be displayed alongside Column B,C,D & E taken from any one of the csv files which contain additional info regarding the numbers in Column J & K.

The end result should look like this in the workbook that contains the macro:
<table>
<tr>
<td>Column B</td><td>Column C</td><td>Column D</td><td>Column E</td><td>Column J</td><td>Column K</td>
</tr>
<tr>
<td>England</td><td>London</td><td>Albany Park</td><td>Bexley</td><td>5</td><td>6</td>
</tr>
<tr>
<td>England</td><td>London</td><td>Aldwych</td><td>Westminster</td><td>NO CHANGES<td>3</td>
</tr>
</table>
I appreciate your help. Thanks.
 

Excel Facts

Can Excel fill bagel flavors?
You can teach Excel a new custom list. Type the list in cells, File, Options, Advanced, Edit Custom Lists, Import, OK

Forum statistics

Threads
1,225,482
Messages
6,185,262
Members
453,283
Latest member
Shortm88

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top