Excel VBA macro to import and sort data from one file into another

mood66

New Member
Joined
Oct 16, 2018
Messages
1
Hello,

I am new to this site and to VBA, so please bare with me.

I need a macro for work to import data from an Excel file into a "Master"-Excel and sort it in a table. The task is to list occured events based on calendar weeks (CW).
The input (separate Excel file) is the frequency of events in the CW and the result (master list) should look something like this:

Event CW30 CW31 CW32
A ....... 3 ................. 4
B ....... 2 ....... 5 ....... 2
C .................. 7 ...... 1
D ............................ 1

If the event is present in the master-list, then add a column with the frequency for that CW.
If the event was not present before, then add a row with that event at the end and a column with the frequency.

I hope this is possible.
Thank you.

Best regards,
mood66
 

Excel Facts

What is =ROMAN(40) in Excel?
The Roman numeral for 40 is XL. Bill "MrExcel" Jelen's 40th book was called MrExcel XL.

Forum statistics

Threads
1,214,832
Messages
6,121,844
Members
449,051
Latest member
excelquestion515

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