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


Hi :)
This sort of thing might be better as a database.

The advantage being that you wouldn't need a new page for each month = you
just keep entering data in the same place.  The page(s) for a 'month' would
be a "Query".  You could have extra queries to cover different or/and
changeable time-frames or/and to cover different aspects (such as only
outgoings).  Each query adds almost nothing to file-size.

The disadvantage is it's a pain to set-up your first database and it can be
a steep learning-curve.  Your existing spreadsheets might well be able to
be used as the central data source or you could save tabs in csv format to
be added to your data - but this doesn't mitigate the pain of creating a
database in the first place.  If you are familiar with databases then it'd
be easy to set-up but then you'd probably be doing that already - although
sometimes it's quicker and easier to just quickly make something as a
spreadsheet to flesh-out the sort of design you want.


There are dedicated programs designed specifically to track finances.  For
something for the sort of scale you're hinting at GnuCash might be good
(very scaleable and multi-platform (originally for Gnu&Linux)).  If you
prefer a proprietary system that only works on Windoze then Sage Instant
(£50-£100) is prolly more than you need but people will keep trying to push
you into buying Sage Line 50 which is closer to a grand.

Regards from
a Tom :)


On 28 Jan 2018 16:04, "Luuk" <luuk34@gmail.com> wrote:


On 28-01-18 16:30, Johnny Rosenberg wrote:
2018-01-28 15:45 GMT+01:00 Luuk <luuk34@gmail.com
<mailto:luuk34@gmail.com>>:

    You can write a FUNCTION to get next month

    Function FirstOfNextMonth(dDate as Date) as Date
        if Month(dDate)>=12 then
            FirstOfNextMonth = DateSerial(Year(dDate)+1, 1, 1)
        else
            FirstOfNextMonth = DateSerial(Year(dDate), Month(dDate)+1, 1)
        end if
    End Function


    When you use = FirstOfNextMonth(Now()) is will return 01-02-2018  (if
    your date-format = DD-MM-YYYY)


Just note that your function always returns the first day of the
calculated month. I'm not sure the OP wants that, but maybe I'm wrong.


It's named 'FirstOfNextMonth()'with a reason! ;)
Also note that this 'example' function can be adapted to return another
date (whatever the OP wants).

To return 'NextMonth()' next question should be solved:
What is next month, if current date is 31 januari?
a) 28 februari, of 29 februari, depending on the year being a leap year
or not
b) 3 march 2018, (31 days after 31 januari)
c) something else.....

The same question for 31 march, and other months which have a NextMonth
with less days than the current month.



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

-- 
To unsubscribe e-mail to: users+unsubscribe@global.libreoffice.org
Problems? https://www.libreoffice.org/get-help/mailing-lists/how-to-unsubscribe/
Posting guidelines + more: https://wiki.documentfoundation.org/Netiquette
List archive: https://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.