Date: prev next · Thread: first prev next last
2014 Archives by date, by thread · List index


On 12/07/2014 08:12 AM, Wiebe van der Worp wrote:
First post, not sure it is the right place, hi there!

For 2015 I would like to keep a shadow bookkeeping in Calc in order to check our bookkeeping program for a while.

Input: In order to keep things simple: three columns with Description, Amount and a LedgerCode.

Output: Sums per LedgerCode

Several solutions are thinkable of, such as conditional testing and lookups. However, if the list grows and contains thousands of lines it will influence performance.

The question: What is the most efficient approach in order to keep the sheet alive after adding record 2384?

Example:
LedgerCode: 1, 2, 3
-------------------
1    € 100,00
2    € 65,00
3    € 22,00
-------------------
Description    Amount    LedgerCode
booking 1    € 100,00    1
booking 2    € 50,00    2
booking 3    € 20,00    3
booking 4    € 10,00    2
booking 5    € 5,00    2
booking 6    € 2,00    3

     Rather than use Calc, I recommend using Base with a simple database.
You will need one table (table1) containing four fields: Description, Amount, LedgerCode, and PK (primary key) Then you will need a query to obtain your results. the SQL for the query is

Select SUM("Amount"), "LedgerCode" FROM table1 GROUP BY "LedgerCode" ORDER BY "LedgerCode"

     I could create this and send it to you off list if you want.

Dan



--
To unsubscribe e-mail to: users+unsubscribe@global.libreoffice.org
Problems? http://www.libreoffice.org/get-help/mailing-lists/how-to-unsubscribe/
Posting guidelines + more: http://wiki.documentfoundation.org/Netiquette
List archive: http://listarchives.libreoffice.org/global/users/
All messages sent to this list will be publicly archived and cannot be deleted

Context


Privacy Policy | Impressum (Legal Info) | Copyright information: Unless otherwise specified, all text and images on this website are licensed under the Creative Commons Attribution-Share Alike 3.0 License. This does not include the source code of LibreOffice, which is licensed under the Mozilla Public License (MPLv2). "LibreOffice" and "The Document Foundation" are registered trademarks of their corresponding registered owners or are in actual use as trademarks in one or more countries. Their respective logos and icons are also subject to international copyright laws. Use thereof is explained in our trademark policy.