|
|
Subject:
How do I group by month in OpenOffice Calc?
Category: Computers > Software Asked by: brunnock-ga List Price: $2.50 |
Posted:
29 Nov 2005 08:59 PST
Expires: 29 Dec 2005 08:59 PST Question ID: 599014 |
In my spreadhseet, each row contains a date value. I would like to group the rows by month. I tried selecting all of the cells and then selecting the "Data->Subtotals" menu item and selecting "Group by" date on the following dialog box, but that doesn't work. | |
| |
| |
|
|
Subject:
Re: How do I group by month in OpenOffice Calc?
Answered By: efn-ga on 30 Nov 2005 20:35 PST |
Hi brunnock, You are on the right track with the Subtotals function. You just need to create a column with a representation of the month and year from the date. I'd suggest filling a column with formulas like this: =(YEAR(A10)*100)+MONTH(A10) In this example, A is the column with the date and 10 is the row where the formula is. As you may know, if you copy the formula to multiple rows, Calc will automatically adjust the row numbers in the formula to formula's row. This formula will generate numbers like 200511 for November 2005. You can then subtotal by these numbers. It will be easiest if you have a heading row above your data. Otherwise, Calc will use the top value in the column to refer to the column. When you run the Subtotals function, select the column with the year-month formula values in the "Group by" list and check the headings for which you want subtotals in the "Calculate subtotals for" box. This will give you subtotals and a grand total. I hope this information is helpful. If you need more help, please ask for a clarification. --efn | |
| |
|
|
Subject:
Re: How do I group by month in OpenOffice Calc?
From: nelson-ga on 29 Nov 2005 21:25 PST |
I don't know about OpenOffice, but in Excel you need to sort before you can get meaningful subtotals. |
Subject:
Re: How do I group by month in OpenOffice Calc?
From: brunnock-ga on 30 Nov 2005 03:48 PST |
Sorting the data is not a problem. |
If you feel that you have found inappropriate content, please let us know by emailing us at answers-support@google.com with the question ID listed above. Thank you. |
Search Google Answers for |
Google Home - Answers FAQ - Terms of Service - Privacy Policy |