=Daysdue - calculate days due between two dates

MrMajinbuu

New Member
Joined
May 21, 2018
Messages
8
Office Version
  1. 365
  2. 2021
Platform
  1. Windows
Hi Guys,

I came across a function at work which I could not unravel what it is. Much appreciated if anyone can shed some lights.

The excel function reads : =daysdue( date 1, number of days between invoice and due date).

It works totally fine on the one spreadsheet, however the magic appears to be gone when I transferred to another spreadsheet.

Is it a macro? I googled it but couldn't find anything on this function.

Thanks in advance
 

Excel Facts

Difference between two dates
Secret function! Use =DATEDIF(A2,B2,"Y")&" years"&=DATEDIF(A2,B2,"YM")&" months"&=DATEDIF(A2,B2,"MD")&" days"
Yes its a user defined function. Essentially a macro that acts like a native excel function to do a specific job that the user needs that native functions cant do. Although that said the way its being used there is probably a native function for it.
 
Upvote 0
Thanks for your prompt reply.

Is there any way I could modify the macro? I have no knowledge about macro but if it is a easy fix I would like to modify the code to suit my needs. Ultimately I would like to change the way it calculates days due.

Thanks heaps.
 
Upvote 0
Probably. But you need to provide the code and then explain what you want it to do.
 
Upvote 0
The macro settings all greyed out (except for "Run").

When I hit
Alt+F11, there is a VBAProject on the list, however password is required.

What to do?
 
Upvote 0
If you do not know the password, then there is not much we can do to help, unless you have some idea of what the function is doing.
 
Upvote 0
When you use it what do you use it for? If you dont know what it does then it seems odd to be using it.
 
Upvote 0

Forum statistics

Threads
1,215,442
Messages
6,124,886
Members
449,194
Latest member
ronnyf85

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top