[Solved] Create report using start and end dates

Discuss the spreadsheet application
Locked
adventurehouse
Posts: 20
Joined: Thu Jun 23, 2016 4:42 pm

[Solved] Create report using start and end dates

Post by adventurehouse »

I just had my VLOOKUP problem handled, but now I need help on creating a way to make a report using a start and an end date.

We get a print out from our Antique Mall sales by date. These reports come in a week at a time, but my wife would like to create a printout of all sales based on a quarterly date after we input the sales into our spreadsheet. This report needs to sum the sales by the quarter, but also sum by Vendor. Can a report do this, or do I need to create a new sheet to populate data based on the dates entered? I'm at a loss on the best way to do this.
Attachments
antique_booth_small_sample.ods
(118.28 KiB) Downloaded 53 times
Last edited by MrProgrammer on Mon Aug 26, 2024 3:54 pm, edited 2 times in total.
Reason: Tagged ✓ [Solved] -- MrProgrammer, forum moderator
OpenOffice 4.1.2 on Mac Os X
User avatar
karolus
Volunteer
Posts: 1243
Joined: Sat Jul 02, 2011 9:47 am

Re: Creating a Report using a start and end dates

Post by karolus »

Hallo

See attached file: (⇒ Data ⇒ Pivottable ⇒ create )

drag&drop »vendor« to row-field, drag&drop »Date sold« to Column-field, drag&drop »Profit« into DataField

the »Date Sold« in the Pivot-output is ⇒ Data ⇒ group and outline ⇒ group: [x]Quarter
antique_booth_small_sample_with_pivot.ods
removed irrelevant data to fit below 125KB
(81.43 KiB) Downloaded 41 times
Libreoffice 25.2… on Debian 13 (trixie) (on RaspberryPI5)
Libreoffice 25.8… flatpak on Debian 13 (trixie) (on RaspberryPI5)
Alex1
Volunteer
Posts: 852
Joined: Fri Feb 26, 2010 1:00 pm
Location: Netherlands, EU

Re: Creating a Report using a start and end dates

Post by Alex1 »

A pivot table can do the job. Select the data to be totalled, A1:M27 in your sample. Click Data, Pivot Table, Create, OK.
Drag Date Sold to Row Fields, Vendor to Column Fields, Total Sold to Data Fields.
Click More, select Results to: new sheet, OK.
Now a table of Sales per day has been created. It can be summed by quarter:
Click on a date in column A, press F12, uncheck Months, check Quarters and Years.
Now the sales are totals by quarter. The first year is wrong, because the date in L2 is wrong: 12/31/123.
Correct it, then rightclick in the pivot table, Refresh.
AOO 4.1.16 & LO 25.8.3 on Windows 10
Locked