Solved

Create DATEDIF as a User Defined Function in Excel 2010

Posted on 2013-01-27
3
507 Views
Last Modified: 2013-01-27
I know how to use DATEDIF in Excel.
I would like to create a User Defined Function for DATEDIF
0
Comment
Question by:mnoisette
3 Comments
 
LVL 43

Expert Comment

by:Saqib Husain, Syed
ID: 38824224
Is this homework?
0
 

Author Comment

by:mnoisette
ID: 38824299
No, a project. I use the formula all the time. Would be easier to use as a UDF.
0
 
LVL 92

Accepted Solution

by:
Patrick Matthews earned 500 total points
ID: 38824312
With respect, I think this is a very, very bad idea.

Assuming that you are putting your DateDif UDF into the current workbook, then to use the UDF and not the native Excel function, you have to qualify the function call with the module name:

=Name_of_module.DateDif(<arguments>)

I fail to see how that is an improvement.  You should just use a different name for your UDF.
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

INDEX and MATCH can be used to great effect to replace HLOOKUP and VLOOKUP as it does not have the limitation of needing the data to be sorted so that the reference value is in the first column or row. It also has the ability to perform a bi-directi…
Workbook link problems after copying tabs to a new workbook? David Miller (dlmille) Intro Have you either copied sheets to a new workbook, and after having saved and opened that workbook, you find that there are links back to the original sou…
The viewer will learn how to simulate a series of sales calls dependent on a single skill level and learn how to simulate a series of sales calls dependent on two skill levels. Simulating Independent Sales Calls: Enter .75 into cell C2 – “skill leve…
This Micro Tutorial demonstrates in Microsoft Excel how to consolidate your marketing data by creating an interactive charts using form controls. This creates cool drop-downs for viewers of your chart to choose from.

863 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

28 Experts available now in Live!

Get 1:1 Help Now