Advertisement
If you have a new account but are having problems posting or verifying your account, please email us on hello@boards.ie for help. Thanks :)
Hello all! Please ensure that you are posting a new thread or question in the appropriate forum. The Feedback forum is overwhelmed with questions that are having to be moved elsewhere. If you need help to verify your account contact hello@boards.ie
Hi there,
There is an issue with role permissions that is being worked on at the moment.
If you are having trouble with access or permissions on regional forums please post here to get access: https://www.boards.ie/discussion/2058365403/you-do-not-have-permission-for-that#latest

Excel function usage

  • 19-06-2003 12:28pm
    #1
    Registered Users, Registered Users 2 Posts: 1,766 ✭✭✭


    Does anyone know how to do the following in Excel to return the number of months from a given date:

    I know TODAY() returns today's date. eg. 19/06/2003

    I want to get the number of months passed since (rounded up), eg. TODAY() - 19/04/2003 = 2

    Is this possible? I don't mind if I have to do further conversions if it defaults to secs or days etc.

    Thanks. ww)


Comments

  • Registered Users, Registered Users 2 Posts: 245 ✭✭Polonious




  • Registered Users, Registered Users 2 Posts: 1,766 ✭✭✭hamster


    Thanks for link....

    I got another suggestion which fits the bill:

    =ROUNDUP((YEARFRAC("08/07/1999",TODAY(),3)*12),0)

    assuming tools-> addins-> analysis toolpak is checked.


    Must have a look at the the link thanks again! :)


  • Closed Accounts Posts: 5,564 ✭✭✭Typedef


    You could always just edit the SQL.

    *You looking for a relational database query baby?


  • Registered Users, Registered Users 2 Posts: 1,766 ✭✭✭hamster


    Originally posted by Typedef
    You could always just edit the SQL.

    *You looking for a relational database query baby?

    Typedef,

    I have this in an excel sheet in one cell. What sql query are you refering to (or is the sql generated in the background) ?


  • Closed Accounts Posts: 5,564 ✭✭✭Typedef


    Nah, I'm thinking of SQL view in access.

    This allows you to basically munge about your own SQL.

    Very handy... for an M$ product that is.

    But you know, excel probably allows you to inline sql as functions etc.

    I'd check it out.


  • Advertisement
  • Moderators, Recreation & Hobbies Moderators, Science, Health & Environment Moderators, Technology & Internet Moderators Posts: 93,567 Mod ✭✭✭✭Capt'n Midnight


    that SQL was not designed by M$

    so Typedef I doubt you'll find it - hey suprise me


    TBH - M$SQL has one redeeming feature - for which most things are forgiven - You can backup by dumping to a file while online - and more important the restore is fairly quick and painless. (compared to all the other backoffice apps this is just soooooo nice)

    Pity they changed the licencing so you can't use Citrix or TS to save licences for ocassional users....


  • Closed Accounts Posts: 5,564 ✭✭✭Typedef


    Originally posted by Capt'n Midnight

    TBH - M$SQL has one redeeming feature - for which most things are forgiven - You can backup by dumping to a file while online

    Considering M$SQL was Sybase code up until interation 6.5...

    Besides PostgreSQL allows the same thing.
    It just locks the tables (rightly) while it's doing the dump.


Advertisement