Automatically Copy Data to Another Sheet and Then Sort and Subtotal

nolass

New Member
Joined
May 5, 2017
Messages
9
I have an Excel spreadsheet with raw data. My manager wants to see the data sorted 3 different ways--(1) by payment date, (2) by payee, (3) by payer. (1) needs to be subtotaled by quarter and then year. (2) needs to be subtotaled by payee, then payment date, then quarter, then year. (3) needs to be subtotaled by payer, then payment date, then quarter, then year.

Right now I'm doing this manually and it's time consuming. Is there a way to do this in Excel by automating things? I have Excel 2010 and 2016.

I realize this would be easier in Access, but most of the staff is not Access savvy.

I need something that, although it may be "complicated" for me to put together, it is very easy for them to access and analyze.


(cross posting from Redirecting)
 

Excel Facts

Using Function Arguments with nested formulas
If writing INDEX in Func. Arguments, type MATCH(. Use the mouse to click inside MATCH in the formula bar. Dialog switches to MATCH.
I would look at using multiple Pivot tables. One for each of the required options. As always without seeing an example of your data (without anything sensitive) and how its laid out it's difficult to give you a precise suggestion/solution. Also you could look at some of the Power tools in 2016.
 
Upvote 0
I would look at using multiple Pivot tables. One for each of the required options. As always without seeing an example of your data (without anything sensitive) and how its laid out it's difficult to give you a precise suggestion/solution. Also you could look at some of the Power tools in 2016.
Would Pivot Tables give the full details, or just summaries?

I will see if there is a way to remove the sensitive details from the list and then upload later today, if possible.
 
Upvote 0
You would be able to see all data and then the individual subtotals that could either be collapsed to hide data or extend as necessary. To give an extra polished option you could add Slicers and Pivot Charts and a very interactive dashboard can be created and easily used.
 
Upvote 0
Here's an example of how the data is laid out. I need 3 different tabs thereafter: (1) Sorted by payment date and subtotaled by year, (2) sorted by vendor, subtotaled by vendor and year of payment to each vendor, (3) Sorter by Payer, then subtotaled by Payer and year of payment.
 

Attachments

  • ScreenShots001.jpg
    ScreenShots001.jpg
    207.2 KB · Views: 7
  • ScreenShots002.jpg
    ScreenShots002.jpg
    199.3 KB · Views: 6
  • ScreenShots003.jpg
    ScreenShots003.jpg
    202.5 KB · Views: 7
Upvote 0
You can do this via a Pivot Table or use Power Tools, what version of Excel are you using? As an example with your raw data with non of your totals added. Select a cell in the table and then select:
Insert Tab and Pivot Table (Select the Table/Range option
Once it shows you it has selected the range/table either you select the table/range or accept and then use the New Worksheet option
From the Field List select the Fields you want to see and include the fields you want to total by dragging them into the totals.
You can then sort and use the subtotals as necessary.

Although you have added some images it would have been useful to have some data to provide examples. If your allowed upload an example workbook to something like OneDrive and provide a link and then an example of a result can be passed back. Alternatively look on YouTube how to create a Pivot Table with Totals etc.
 
Upvote 0
Example.xlsx
BCDEFGHI
1Invoice DateDt PdABCeck #CompanyAmtDescriptionPaid ByCAT
24/24/174/25/174603Architect1,000.00InvArch
38/30/175/16/184666Engineer1,350.00InvArch
410/9/1711/9/17Engineer1,150.00Review ChangesInvArch
511/11/1911/27/192685Architect3,000.00InvArch
69/1/229/2/225022Architect1,000.00InvArch
79/23/229/23/22CC1234Reviewing Authority45.00Review FeeInvRegulatory
89/23/229/23/22CC1234Reviewing Authority1.19Review FeeInvRegulatory
910/5/2210/5/225046Clerk of Court105.00RegistrationInvRegulatory
1012/9/2212/9/22CC1234Surveyour7,700.00Survey of elevation points InvArch
111/24/231/24/235038Canoe Construction10,000.00InvContractor
1212/22/221/26/235040Architect1,000.00InvArch
132/24/232/24/235044Canoe Construction77,000.00InvContractor
143/17/234/21/236789Windows R US177,500.00WindowsSBContractor
153/17/234/21/23LALA1004Windows R US5,500.00WindowsSBContractor
164/25/234/28/235049Landscape Outdoors700.00Landscape DesignInvContractor
175/12/235/16/235053Canoe Construction9,000.00InvContractor
185/12/235/17/235054Canoe Construction5,000.00InvContractor
195/12/235/17/235055Canoe Construction5,000.00InvContractor
205/23/236/5/235060Canoe Construction Extra17,700.00InvContractor
216/5/236/8/235061Canoe Construction9,000.00InvContractor
226/5/236/9/235062Canoe Construction577,554.55InvContractor
236/16/236/23/235063Landscape Outdoors1,577.95Outdoor Lighting and Irrigation SleevingInvContractor
247/5/237/7/23Fid1214Lumber & Supply10,000.00Framing lumber and sheetrockSBSupplier
257/5/237/7/23LALA1012Lumber & Supply15,000.00Framing lumber and sheetrockSBSupplier
267/5/237/7/23ABC 7976Lumber & Supply177,745.55Framing lumber and sheetrockSBSupplier
278/1/238/1/23Fid1214Lumber & Supply17,714.15Framing lumber and sheetrockSBSupplier
288/3/238/3/23Fid1214Lumber & Supply1,701.55Framing lumber and sheetrockSBSupplier
298/10/238/10/236789Lumber & Supply1,515.45Framing lumber and sheetrockSBSupplier
308/10/238/10/236789Lumber & Supply540.11Framing lumber and sheetrockSBSupplier
317/5/238/14/236789Lumber & Supply(471.71)Framing lumber and sheetrockSBSupplier
328/14/238/15/236789Lumber & Supply11,577.31Framing lumber and sheetrockSBSupplier
338/23/238/23/236789Lumber & Supply(45.30)Framing lumber and sheetrockSBSupplier
348/24/238/24/23CC1234Lumber & Supply711.78Framing lumber and sheetrockInvSupplier
358/31/239/4/23CC1234Lumber & Supply11,577.01Framing lumber and sheetrockInvSupplier
369/6/239/13/235070Canoe Construction10,000.00InvContractor
379/6/239/13/235072Canoe Construction15,000.00InvContractor
389/5/239/19/23AKSI Whit 9904Roofing Supply9,491.50Roofing SuppliesABCSupplier
399/12/239/22/23CC1234Roofing Supply417,777.57MetalsdownspoutsInvSupplier
4010/6/2310/6/236789Lumber & Supply505.11Tyvek WrapSBSupplier
419/25/2310/18/23Aksi ABCCC 3011Roofing Supply335.00Delivery feeABCSupplier
4210/19/2310/19/23ABCCC 9018Roofing Supply77,591.70Roofing InsulationABCSupplier
4310/12/2310/20/235080Canoe Construction 71,770.78InvContractor
4410/23/2310/24/23ABCCC 9018Roofing Supply5,955.78Roofing InsulationABCSupplier
4510/27/2310/24/236789Lumber & Supply(753.57)Framing lumber and sheetrockSBSupplier
4610/31/2310/31/23ABCCC 9018Roofing Supply7,794.11Roofing SuppliesABCSupplier
4711/3/2311/3/235082Canoe Construction10,000.00InvContractor
4811/3/2311/3/235083Canoe Construction15,000.00InvContractor
4911/1/2311/17/23ABCCC 9018Windows R US10,000.00WindowsABCSupplier
5011/1/2311/17/239904Windows R US3,545.00WindowsABCSupplier
5111/1/2311/21/239896Windows R US9,000.00WindowsABCSupplier
5211/1/2311/21/23ABCCC 9018Windows R US1,000.00WindowsABCSupplier
5311/24/2311/30/235087Canoe Construction10,000.00InvContractor
5411/24/2311/30/235088Canoe Construction15,000.00InvContractor
5512/1/2312/4/23ABCCC 9018Roofing Supply(1,939.48)Roofing SuppliesABCSupplier
5612/14/2312/15/235091Canoe Construction 3,000.00InvContractor
5712/7/2312/15/235090Canoe Construction Extra1,300.00InvContractor
581/11/231/11/24YZ 2910Sand Pumping1,000.00(4) loads of sandInvContractor
592/21/242/21/245097Arctic Aire5,000.00Air Supply Install #1InvContractor
602/21/242/21/245098Arctic Aire5,000.00Air Supply Install #2InvContractor
612/23/242/23/24ABCCC 9018Arctic Aire7,151.93Air Supply Install #3ABCSupplier
622/26/242/26/245100Canoe Construction10,000.00InvContractor
633/11/243/11/245103Canoe Construction 5,000.00InvContractor
643/12/243/12/24Wh5104Arctic Aire4,000.00Air Supply Install #4InvContractor
653/18/243/21/245106Canoe Construction10,000.00InvContractor
663/18/243/19/245107Arctic Aire400.00Air Supply Install #5InvContractor
673/21/243/22/245110Arctic Aire17,700.00Air Supply Install #6InvContractor
683/21/243/22/245111Arctic Aire77,000.00Air Supply Install #7InvContractor
693/28/243/28/245113Canoe Construction10,000.00InvContractor
704/9/244/12/245116Canoe Construction 10,000.00InvContractor
714/12/244/12/24ABC 3011Camera Co3,079.23CamerasABCSupplier
724/17/244/18/24ABC 3011Camera Co5,770.55WiresABCSupplier
734/18/244/18/24ABC 9018Security Co1,594.01DepositABCContractor
744/19/244/19/245119Camera Co1,335.55More WiresInvContractor
755/6/245/6/24ABC 9018Arctic Aire3,530.18Air Supply Install #8ABCSupplier
764/15/245/13/24ABC 9018Windows R US15,000.00DoorsABCSupplier
775/21/245/21/245122Canoe Construction 10,040.75InvContractor
785/29/245/29/24ABC 9018Arctic Aire11,777.34Air Supply Install #9ABCSupplier
Raw
Cell Formulas
RangeFormula
F71F71=39.99*77
 
Upvote 0
Slight delay in replying. What I have looked to do is copy the data to a new sheet then sort by the data column create the year the year column by selecting the date column and reformatting it to just show the year. Then sort the data by year and then use the Data Tab --> In the Outline Group select Sub Totals and then from the options select the Year by Amount it then gives you the first answer to question one then adapt the same for question two and finally question three. It will use the outlining tools and in the screen to the left of the row numbers you will see the grouping tools.

An example of the finished but not necessarily polished solution is shown below:

You can also download the workbook via OneDrive Totals Download
 

Attachments

  • Outlining Sample.png
    Outlining Sample.png
    46 KB · Views: 4
Upvote 0
Thanks. Sorry for taking so long to get back to you.

I'm familiar with this method.

Is there a way to automate this? Do I just record a macro of me copying, pasting, sorting and then subtotaling? Since I'll need different sheets for year, company and paid by, I'm trying to reduce the amount of manual work I have to do on this, mainly because doing this manually could lead to inconsistencies between the different sheets.
 
Upvote 0

Forum statistics

Threads
1,223,893
Messages
6,175,240
Members
452,621
Latest member
Laura_PinksBTHFT

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