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


On 07-12-14 15:03, Dan Lewis wrote:
On 12/07/2014 08:12 AM, Wiebe van der Worp wrote:

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

Output: Sums per LedgerCode

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"

Together with Stefan's solution - could even be combined - I am grateful. So for now GnuCash. Thanks, I am going to experiment with both suggestions for educational purposes. Still missing an answer in a sense of straight formulas in Calc for a relative simple problem if we skip the amount of lines that could make it complex.


--
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.