Split excel Data into separate Workbook rather then tabs.

nihad

New Member
Joined
Feb 24, 2021
Messages
40
Office Version
  1. 365
Platform
  1. Windows
Hi All

I have built a template for our budget holder management accounts. We currently have 137 budgets to circulate(!) so converting this into 137 files is not realistic under a manual process.

Basically, I am after a macro that will do the following

Create a Summary file and transaction list for each of Sage Mapping Code mentioned in Sage Mapping Mapping Tab, with those coded to pull all the information from Transaction List based on Column D


MKF Example.xlsx
ABCDE
1
2FY2023 Budget Report
3
4Subject/DepartmentBoarders Activities
5Nominal Code6238
6
7Budget HolderAlex
8Annual Budget£11,000
9
10MonthMonthly ExpenditureTotal Expenditure To DateAvailable
11Sep-220011,000
12Oct-2252852810,472
13Nov-221,4271,9559,045
14Dec-222,0654,0206,980
15Jan-2304,0206,980
16Feb-2304,0206,980
17Mar-2304,0206,980
18Apr-2304,0206,980
19May-2304,0206,980
20Jun-2304,0206,980
21Jul-2304,0206,980
22Aug-2304,0206,980
23Total4,020
24
Summary
Cell Formulas
RangeFormula
C4C4=VLOOKUP($C$5,'Sage Mapping'!$A:$D,3,FALSE)
C7C7=VLOOKUP($C$5,'Sage Mapping'!$A:$D,4,FALSE)
C8C8=-VLOOKUP($C$5,Budget!$A:$G,7,FALSE)
D11D11=C11
E11:E22E11=$C$8-D11
D12:D22D12=D11+C12
C11:C22C11=SUMIFS('Transaction List'!$J:$J,'Transaction List'!$D:$D,Summary!$C$5,'Transaction List'!$M:$M,Summary!$B11)
C23C23=SUM(C11:C22)
Named Ranges
NameRefers ToCells
Budget!_FilterDatabase=Budget!$A$1:$G$193C8
'Sage Mapping'!_FilterDatabase='Sage Mapping'!$A$1:$G$171C4, C7




MKF Example.xlsx
DEFGHIJ
1NominalRecord.AccountReferenceNominalRecord.AccountNameTransactionNominal.NumberTransactionNominal.TypeTransactionNominal.DateTransactionNominal.DetailsTransactionNominal.Amount
26280Vote - History - DRB447033PI26/09/2022Histyr KS3 Rev Ind Emp230.40
36280Vote - History - DRB448985PI09/11/2022History Bomb membership150.00
46280Vote - History - DRB449470PI28/10/2022History tofay sub70.00
56280Vote - History - DRB449471PI28/10/2022South Africa in the 20th century6.71
66280Vote - History - DRB449508PI28/10/2022Themes of the American Civil War31.35
76280Vote - History - DRB449541PI28/10/2022Wordwall64.80
86280Vote - History - DRB450603PI28/11/2022Kahoot! ASA115.53
96285Vote - Cricket449510PI28/10/2022Cricket Bowling Machine434.98
106285Vote - Cricket449514PI28/10/2022Armball thrower19.99
116290Vote - Science - SB446647PI08/09/2022Chems30.90
126290Vote - Science - SB446648PI15/09/2022Sub 1 Nov - 31 Oct 202350.00
136290Vote - Science - SB447359PI01/09/2022Science items45.96
146290Vote - Science - SB447508PI28/09/2022Samples89.95
156290Vote - Science - SB447659PI14/10/2022CLEAPSS Membership190.69
166290Vote - Science - SB448238PI28/10/2022Chems13.67
176290Vote - Science - SB449518PI28/10/2022Hardback manuscript books35.90
186290Vote - Science - SB450024PI01/12/2022Nuffield Operational Amplifier45.48
196290Vote - Science - SB450257PI15/11/2022Escherichia Coli K12 train23.94
206290Vote - Science - SB450605PI28/11/2022Electrophoris mains transformer & Bacterial Transformation k48.40
216290Vote - Science - SB450641PI28/11/2022Childrens scissors21.99
226290Vote - Science - SB450671PI28/11/2022A4 manuscript ruled books48.13
236290Vote - Science - SB450679PI28/11/20226 X 5 Lamb hearts57.95
246300Vote - Library -447852PI28/09/2022The Economist digital - annual208.00
256305Vote - School Productions - PC449484PI28/10/2022Neck & Wrist shackles14.95
266305Vote - School Productions - PC449488PI28/10/2022GCSE Drama Monologues & Duologues30.98
276305Vote - School Productions - PC449490PI28/10/2022Halloween shackles16.99
286305Vote - School Productions - PC449506PI28/10/2022Lanterns57.30
296305Vote - School Productions - PC449530PI28/10/2022Chauffeur accessories etc18.99
306305Vote - School Productions - PC450344PI09/12/2022Flowers for after play45.00
316305Vote - School Productions - PC450624PI28/11/2022Cat O'Nines whip8.94
326305Vote - School Productions - PC450633PI28/11/2022Ebay - play wardrobe items396.00
336305Vote - School Productions - PC450651PI28/11/2022Gaffer tape20.82
346305Vote - School Productions - PC450652PI28/11/2022Polyester satin28.83
356305Vote - School Productions - PC450653PI28/11/2022Cotton Canvas100.44
366305Vote - School Productions - PC450654PI28/11/2022Polyester satin28.83
376305Vote - School Productions - PC450655PI28/11/2022Carpet underlay300.00
386305Vote - School Productions - PC450661PI28/11/2022White frilly shirt & tricorn24.98
396305Vote - School Productions - PC450662PI28/11/2022Feather pen9.59
406305Vote - School Productions - PC450663PI28/11/2022Steampunk pirate jacket26.49
416305Vote - School Productions - PC450664PI28/11/2022Jute rope6.79
426305Vote - School Productions - PC450665PI28/11/20224 cravat & cuff sets40.04
436305Vote - School Productions - PC450666PI28/11/2022Handkerchiefs5.94
446305Vote - School Productions - PC450667PI28/11/2022Medieval costume shirts63.98
456305Vote - School Productions - PC450668PI28/11/2022Telescope39.99
466305Vote - School Productions - PC450669PI28/11/20222 x tricorn hatd21.48
476305Vote - School Productions - PC450674PI28/11/2022Hessian roll115.09
486305Vote - School Productions - PC450707PI28/11/2022Acrylic paints77.54
496305Vote - School Productions - PC450723PI28/11/2022Hessian Roll tarpaulins115.09
506310Vote - Music - JJ448018SC24/10/2022Music Lessons (Flute) - Summer term - Ella TANNER263.25
516310Vote - Music - JJ448055PI19/10/2022Tickets to 10 Nov Fantastic Fairytales37.00
526310Vote - Music - JJ449057PI27/10/2022Hire Studio x 2 hours16.00
536310Vote - Music - JJ450043PI23/11/202214th Oct Coach TP said put to music for now245.00
546310Vote - Music - JJ450289PI23/11/2022Catering College17.50
556310Vote - Music - JJ450836PI14/12/2022College string ensemble 9th Dec 202280.00
566310Vote - Music - JJ451074SI21/12/2022For performance at Landulph Festival by Mount Kelly Chamber(300.00)
576315Vote - Athletics -447602PI12/10/2022Affiliation Fee to Aug 2023140.00
586319Vote - Football Girls446640PI15/09/2022Year 3 2022-202313,750.00
596319Vote - Football Girls447973CP14/09/2022Referee fee for girl's football match - 14/9/2225.00
606319Vote - Football Girls448237PI24/10/2022Goalkeeper coaching262.50
616319Vote - Football Girls449743CP09/11/2022Referees Fees - 9/11/2022100.00
626319Vote - Football Girls450838PI13/12/2022Goalkeeping coaching157.50
636320Vote - Match Teas449155PI26/10/2022Catering Oct 2022791.60
646320Vote - Match Teas450297PI23/11/2022Catering College771.90
656321Vote - Football449515PI28/10/2022Training Bibs54.99
666325Vote - Hockey -446646PI13/09/2022Facemasks152.16
676325Vote - Hockey -448988PI08/11/2022Hockey balls93.51
686325Vote - Hockey -449464PI28/10/2022Yahoo arm guards & OBO Wheelie Bag374.99
696325Vote - Hockey -449512PI28/10/2022Football bibs50.95
706325Vote - Hockey -449524PI28/10/2022All Terrain combi padlock77.84
716325Vote - Hockey -450685PI28/11/2022OBO OGO Kickers165.00
726325Vote - Hockey -450913PI16/12/2022Hockey Balls186.00
736330Vote - Market Garden450710PI28/11/2022Bulbs and seeds53.94
746335Vote - Rugby - PN446085PI02/09/2022Rugby Balls720.00
756335Vote - Rugby - PN447497PI29/09/2022Clothing samples105.60
766335Vote - Rugby - PN447900PI28/09/2022Rugby shirts116.38
776335Vote - Rugby - PN448019PI13/10/2022Rugby Ties699.78
786335Vote - Rugby - PN448962PI17/09/2022Engraving cups8.00
796335Vote - Rugby - PN449803PI24/11/2022Refs rugby fixtures Sept and 5th Oct105.00
806335Vote - Rugby - PN450406JD13/12/2022Transfer to Belfast Rugby Tour500.00
816335Vote - Rugby - PN450413PI13/12/2022Entry fee Rugby 7's15.00
Transaction List






MKF Example.xlsx
AB
1N/CBudget Holder
27052Jessica
38555Jessica
47550Jessica
57140Jessica
67777Linda
77858Mat
87100Jessica
98590Adam
107110Jessica
118635Chris
128850Jessica
136519Jessica
148625Vanessa
157854Linda
167870Linda
176769Katy
186319Tommy
198550Jessica
206520Jessica
217059Jessica
226426Adam
237590Jessica
247856Linda
256360Emma
267570Jessica
277080Helen
286203Adam
297850Jessica
308610Vanessa
317902Jessica
326482Adam
336755Jessica
346525Jessica
358626Vanessa
366455Jessica
377090Helen
387120Jessica
397871Linda
408580Jessica
416445Adam
426201James
438570Jessica
448560Chris
456521Jessica
467873Mat
476751Dom
488595Jessica
497877Linda
506238Alex
518585Jessica
528600Jessica
536753Adam
547060Jessica
558865Chris
566391Katy
577070Hannah
587560Helen
598100Jessica
607876Jessica
618630Jessica
627580Jessica
637065Jessica
648620Nicola
658904Jessica
666441James
676530James
686335Bobby
698557Jessica
708622Jessica
717559Jessica
728565Jessica
736756Nick
746305Lizzie
756320Adam
766534Alan
776400Becky
786781Dom
797901Jessica
808628Fran
816325Bobby
826752Dom
836222Lou
846750Dom
856524Jessica
868572Nicola
876532Bobby
886270Luke
896764Jo
907859Linda
916245Adam
926240Netty
936290Sarah
947712Jessica
956255Becky
966770Michelle
976280Drew
986205James
996440Guy
1006260Belinda
1017075Hannah
1026215Alex
1036390Katy
1046774Nick
1056766Andrew
1066285Bobby
1077555Jessica
1086224Drew
1096775Dom
1106761David
1116310Adam
1126765Liz
1136230Adam
1146759Piers
1156772Maria
1166433Katy
1176767Carolynn
1186300James
1196531Drew
1206345Bobby
1216442Adam
1228860Chris
1236763Dom
1246427Jessica
1256434Lizzie
1266315Bobby
1277874Nick
1286435Vanessa
1296540James
1307053Jessica
1316370Maria
1326760Matty
1336321Bobby
1346330Adam
1357095Helen
1366522Jessica
1376200Maria
1386523Jessica
1396000Staff
1406005Staff
1416010Staff
1426050Staff
1436100Staff
1446210Victoria
1456600Staff
1466605Staff
1476610Staff
1486650Staff
1496700Staff
1507000Staff
1517002Staff
1527005Staff
1537010Staff
1547500Staff
1557505Staff
1567510Staff
1577700Staff
1587705Staff
1597710Staff
1607878Staff
1617879Staff
1627882Staff
1638500Staff
1648502Staff
1658505Staff
1668510Staff
1678800Staff
1688802Staff
1698805Staff
1708810Staff
1716444Adam
Sage Mapping
 

Excel Facts

Enter current date or time
Ctrl+: enters current time. Ctrl+; enters current date. Use Ctrl+: Ctrl+; Enter for current date & time.
my date isn't on separate tab
it's all on same tab
 
Upvote 0

Forum statistics

Threads
1,214,946
Messages
6,122,401
Members
449,081
Latest member
JAMES KECULAH

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