Import .dbf file, and process its contents.

burgonyapure

New Member
Joined
May 31, 2019
Messages
3
Hi guys !

I am new to excel programming, yet I have work to be done, so if you could help me out it would be well appreciated.

I have several .dbf files, and they look like this in excel:
401003

<tbody>
</tbody>
EUR

<tbody>
</tbody>
10

<tbody>
</tbody>
2019.04.01

<tbody>
</tbody>
200

<tbody>
</tbody>
62200

<tbody>
</tbody>
311,00

<tbody>
</tbody>
401004

<tbody>
</tbody>
RON

<tbody>
</tbody>
10

<tbody>
</tbody>
2019.04.01

<tbody>
</tbody>
121

<tbody>
</tbody>
7464

<tbody>
</tbody>
61,69

<tbody>
</tbody>
401005

<tbody>
</tbody>
GBP

<tbody>
</tbody>
10

<tbody>
</tbody>
2019.04.01

<tbody>
</tbody>
300

<tbody>
</tbody>
108750

<tbody>
</tbody>
362,50

<tbody>
</tbody>

<tbody>
</tbody>
Obviously a lot longer, but you get the point.

All I need to do, is a button to click, and than loop through all the .dbf files, do a =SUMIF(D1:D3;D1;F1:F3) and paste the result into another sheet wich looks like:
2019.04.01My result here
2019.04.02My result here
2019.04.03My result here

<tbody>
</tbody>
After this close, the .dbf file, open the next one, and do the same, but the data calculated must be inserted into it's corresponding sheet.

Any ideas?
 

Excel Facts

When did Power Query debut in Excel?
Although it was an add-in in Excel 2010 & Excel 2013, Power Query became a part of Excel in 2016, in Data, Get & Transform Data.

Forum statistics

Threads
1,214,920
Messages
6,122,279
Members
449,075
Latest member
staticfluids

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