Power Query Advice on Import and Merge Files in a Folder

VBA learner ITG

Active Member
Joined
Apr 18, 2017
Messages
267
Office Version
  1. 365
Platform
  1. Windows
  2. MacOS
Hi all,

I am a novice and learning as i go along and I was wondering if i could tap into your expertise.

I have a folder with about 100 of these files to impot which i am trying to merge into 1 master file.
Each workbook has a similar format in terms of structure. However, the store number and associated address values rows can be different on each workbook.
From column L onwards in each workbook they can differ and can also be the same and different amount of columns.
Each workbook i am trying to import are not in a Table or Range.

Can anyone advise/give guidance on how they would Import and merge workbooks together in Power Query?

SPR516 1 of 1.xlsx
ABCDEFGHIJKLMNOPQRSTUVWXYZAAABACADAEAFAGAHAIAJAKALAMANAOAPAQARASATAUAVAWAXAYAZBABBBCBDBEBFBGBHBI
1Project RefSPR516Project DescriptionP13-21 Themed Kit - Central
2Brief DescriptionP13-21 - Headline Deal - Diet Coke and Zero - Full Barker - 89x203P13-21 - Headline Deal - Diet Coke and Zero - Stack Card - 297x210P13-21 - Headline Deal - Coca Cola - Full Barker - 89x203P13-21 - Headline Deal - Coca Cola - Stack Card - 297x210P13-21 - Headline Deal - Walkers - Full Barker - 89x203P13-21 - Headline Deal - Walkers - Stack Card - 297x210P13-21 - Headline Deal - Walkers Baked, Sunbites and Snack a Jack - Full Barker - 89x203P13-21 - Headline Deal - Walkers Baked, Sunbites and Snack a Jack - Stack Card - 297x210P13-21 - Headline Deal - Nescafe Azera - Full Barker - 89x203P13-21 - Headline Deal - Nescafe Azera - Stack Card - 297x210P13-21 - Headline Deal - Tetley Tea Bags - Full Barker - 89x203P13-21 - Headline Deal - Tetley Tea Bags - Stack Card - 297x210P13-21 - Headline Deal - Princes Tuna - Full Barker - 89x203P13-21 - Headline Deal - Princes Tuna - Stack Card - 297x210P13-21 - Headline Deal - Hellmans Mayo - Full Barker - 89x203P13-21 - Headline Deal - Hellmans Mayo - Stack Card - 297x210P13-21 - Headline Deal - Bold 2 in 1 - Full Barker - 89x203P13-21 - Headline Deal - Bold 2 in 1 - Stack Card - 297x210P13-21 - Headline Deal - Flora - Full Barker - 89x203P13-21 - Headline Deal - McCain Chips - Full Barker - 89x203P13-21 - Headline Deal - Mayo, Walkers and Diet Coke - Poster 711x508P13-21 - Headline Deal - Mayo, Walkers and Diet Coke - Poster (CERTAS) - 1016x762P13-21 - Headline Deal - Mayo, Walkers and Diet Coke - Poster (RONTEC) - 1189x841P13-21 - Headline Deal - Mayo, Walkers and Diet Coke - Poster (ROADCHEF) - 841x594P13-21 - Headline Deal - Nescafe, Tetley - Poster 711x508P13-21 - Headline Deal - Nescafe, Tetley - Poster (CERTAS) - 1016x762P13-21 - Headline Deal - Nescafe, Tetley - Poster (RONTEC) - 1189x841P13-21 - Headline Deal - Nescafe, Tetley - Poster (ROADCHEF) - 841x594P13-21 - Headline Deal - Flora and McCains - Poster 711x508P13-21 - Headline Deal - Flora and McCains - Poster (CERTAS) - 1016x762P13-21 - Headline Deal - Flora and McCains - Poster (RONTEC) - 1189x841P13-21 - Headline Deal - Flora and McCains - Poster (ROADCHEF) - 841x594P13-21 - Healthy Value - Header - 490x895P13-21 - Healthy Value - Stripping - 38x1000P13-21 - Healthy Value - Stripping - 73x990P13-21 - Healthy Value Secondary Deal - Bud Light - Barker - 89x203P13-21 - Healthy Value Secondary Deal - Mr Kipling - Barker - 89x203P13-21 - Healthy Value Secondary Deal - Naked Smoothie - Barker - 89x203P13-21 - Healthy Value Secondary Deal - Hartley's - Barker - 89x203P13-21 - Healthy Value Secondary Deal - Fibre One - Barker - 89x203P13-21 - Frozen Meal Deal - Barker - 89x203P13-21 - Frozen Meal Deal - Stripping - 38x1000P13-21 - Frozen Meal Deal - 73x990P13-21 - Frozen Meal Deal - Poster - 711x508P13-21 - Frozen Meal Deal - Poster (CERTAS) - 1016x762P13-21 - Frozen Meal Deal - Poster (RONTEC) - 1189x841P13-21 - Frozen Meal Deal - Poster (ROADCHEF) - 841x594P13-21 - Fresh For Less - Bus Stop - 111x113P13-21 - Fresh For Less - Stripping - 38x1000P13-21 - Fresh For Less - Stripping - 73x990
3Total (inc Overs)2430243024302430243024301740174020801784243024302430243024302430243020802080208013104027131310402713131040271324305928866413172430243024302430113017883390485402713183017883714
4Total Allocations2430243024302430243024301740174020801784243024302430243024302430243020802080208013104027131310402713131040271324305928866413172430243024302430113017883390485402713183017883714
5Overs00000000000000000000000000000000000000000000000000
6Stock Receipt Ref
7Store NumberStore NameAddress Line 1Address Line 2City or TownCountyCountryPost CodeRegion / AreaLocation TypeTrading FormatSPR516/5859SPR516/5860SPR516/5861SPR516/5862SPR516/5863SPR516/5864SPR516/5865SPR516/5866SPR516/5867SPR516/5868SPR516/5869SPR516/5870SPR516/5871SPR516/5872SPR516/5873SPR516/5874SPR516/5875SPR516/5876SPR516/5877SPR516/5878SPR516/5879SPR516/5880SPR516/5881SPR516/5882SPR516/5883SPR516/5884SPR516/5885SPR516/5886SPR516/5887SPR516/5888SPR516/5889SPR516/5890SPR516/6301SPR516/6302SPR516/6303SPR516/6304SPR516/6305SPR516/6306SPR516/6307SPR516/6308SPR516/6309SPR516/6310SPR516/6311SPR516/6312SPR516/6313SPR516/6314SPR516/6315SPR516/6316SPR516/6317SPR516/6318
8000000Test Address 1Hygeia Building66 - 68 College RoadHarrowMiddlesexHA1 1BEN/ACentral Office22222222222222222222222212122222241212241212
9N/A1Test Address 2N/AN/AN/AN/ANA1 1NAN/ARDC Themed Kit Allocations187187187187187187187187187187187187187187187187187187187187187187187187112218718718718737411221873741122
10N/A2Test Address 3N/AN/AN/ANA1 1NAN/ARDC Themed Kit Allocations2802802802802802802802802802802802802802802802802802802801680280280280280280
11N/A3Test Address 4N/AN/AN/ANA1 1NAN/ARDC Themed Kit Allocations2802802802802802802802802802802802802802802802802802802801680280280280280
12N/A4Test Address 5N/AN/AN/ANA1 1NAN/ARDC Themed Kit Allocations2602602602602602602602602602602602602602602602602602602602602602602601560260260260260520156015602605201560
13N/A5Test Address 6N/AN/AN/ANA1 1NAN/ARDC Themed Kit Allocations363636363636363636363636363636363636363636363621636363636722162163672216
14N/A6Test Address 7N/AN/AN/ANA1 1NAN/ARDC Themed Kit Allocations31031031031031031031031031031031031031031031031018603103103103106201860
15N/A7Test Address 8N/AN/AN/ANA1 1NAN/ARDC Themed Kit Allocations404040404040404040404040404040402404040404080240
16N/A9Test Address 9N/AN/AN/ANA1 1NAN/ANational Accounts Allocations2727272727272727272727272727272727272727272727271622727272727541622754162
17N/A10Test Address 10N/AN/AN/ANA1 1NAN/ANational Accounts Allocations1313131313131313131313131313131313131313131313137813131313132678132678
18N/A25Test Address 11N/AN/AN/ANA1 1NAN/ANational Accounts Allocations4040404040404040404040404040404040404040404040402404040404040802404080240
19N/A56Test Address 12N/AN/AN/ANA1 1NAN/ARDC Themed Kit Allocations6006006006006006006006006006006006006006006006006006006006006006006006003600600600600600600
Allocations
Cell Formulas
RangeFormula
L3:BI3L3=SUM(L4:L5)
L4:BI4L4=SUM(L8:L21)
 

Excel Facts

How to fill five years of quarters?
Type 1Q-2023 in a cell. Grab the fill handle and drag down or right. After 4Q-2023, Excel will jump to 1Q-2024. Dash can be any character.

Forum statistics

Threads
1,215,076
Messages
6,122,987
Members
449,093
Latest member
Mr Hughes

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