[Solved] Reports on multiple columns

Discuss the spreadsheet application
Post Reply
helpcnm
Posts: 3
Joined: Sun Feb 03, 2008 3:51 pm

[Solved] Reports on multiple columns

Post by helpcnm »

i am trying to create a formula that will match across multiple columns. currently, i add each column then do a 'sum' on those columns. there has to be an easier way. here is the data

Code: Select all

product a	01/10/08	linea	linec	lineb	lined	linee
product b	01/04/08	lined	linee			
product a   01/09/08   lineb   lined   linee   linea   linb
etc
i am trying to find out how many 'linea' sold in col c thru col g for jan
right now i do 5 differant sums and then do a total report

when i try to just do a report, i get '0'. but if i do indivual tallys and then a totals report, i get '2'

please help if you can!

thank you!
 Edit: Hagar: added the code BBCode tags to recreate the table layout and changed the title (was "calc Help!"). 
Last edited by Hagar Delest on Mon Jun 09, 2008 5:14 pm, edited 3 times in total.
Reason: tagged the thread as Solved.
User avatar
Hagar Delest
Moderator
Posts: 32655
Joined: Sun Oct 07, 2007 9:07 pm
Location: France

Re: calc help!

Post by Hagar Delest »

Can you upload here a small sample file? I think we need to see what you're doing for the 'report'.

NB: Please read the Survival Guide for the forum. Your title is not very explicit.
LibreOffice 7.6.2.1 on Xubuntu 23.10 and 7.6.4.1 portable on Windows 10
helpcnm
Posts: 3
Joined: Sun Feb 03, 2008 3:51 pm

Re: calc help!

Post by helpcnm »

here's the file
Attachments
mysample.ods
(7.24 KiB) Downloaded 221 times
User avatar
Villeroy
Volunteer
Posts: 31279
Joined: Mon Oct 08, 2007 1:35 am
Location: Germany

Re: calc help!

Post by Villeroy »

Code: Select all

product a 01/10/08 linea linec lineb lined linee
product b 01/04/08 lined linee
product a 01/09/08 lineb lined linee linea linb
With your current table layout it is close to impossible. There are several options to extract all kinds of information with a layout like this:

Code: Select all

product a 01/10/08 linea
product a 01/10/08 linec
product a 01/10/08 lineb
product a 01/10/08 lined
product a 01/10/08 linee
product b 01/04/08 lined
product b 01/04/08 linee
product a 01/09/08 lineb
product a 01/09/08 lined
product a 01/09/08 linee
product a 01/09/08 linea
product a 01/09/08 lineb
Notice that the information in this table is exactly the same as in your initial example.

Edit: Attached my own example
Attachments
aggregate.ods
Normalized data with SUMPRODUCT, pilot and DCOUNTA
(16.75 KiB) Downloaded 1306 times
Please, edit this topic's initial post and add "[Solved]" to the subject line if your problem has been solved.
Ubuntu 18.04 with LibreOffice 6.0, latest OpenOffice and LibreOffice
User avatar
Hagar Delest
Moderator
Posts: 32655
Joined: Sun Oct 07, 2007 9:07 pm
Location: France

Re: calc help!

Post by Hagar Delest »

If you can't avoid the original table layout, why not using the DataPilot feature? See attachment.
Attachments
mysample.ods
(10.48 KiB) Downloaded 224 times
LibreOffice 7.6.2.1 on Xubuntu 23.10 and 7.6.4.1 portable on Windows 10
helpcnm
Posts: 3
Joined: Sun Feb 03, 2008 3:51 pm

[solved]Re: calc help!

Post by helpcnm »

ok thanks, will do that. appreciate it!
Post Reply