Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Usage of TODAY() in formula
Message
 
À
11/01/2018 10:08:59
Information générale
Forum:
Microsoft Office
Catégorie:
Excel
Versions des environnements
Microsoft Office:
Office 2016
OS:
Windows 10
Network:
Windows Server 2012
Divers
Thread ID:
01657091
Message ID:
01657101
Vues:
26
>>Either TODAY() or NOW() will work, provided that they are in the right order, that is the second date should always be greater or equal than the first one, weird...
>>
>>
>>=DATEDIF("2019/01/15", "2018/03/17", "d") => #NUM
>>=DATEDIF("2018/01/15", "2018/03/17", "d") => 61
>>=DATEDIF(TODAY(), "2018/03/17", "d") => 65
>>=DATEDIF(TODAY(), "2017/03/17", "d") => #NUM
>>=DATEDIF("2017/03/17", TODAY(), "d") => 300
>>
>
>Thanks, this works.
>
>I had to remove the equal sign.

There is a simpler way I just tried and works... do not use datedif :)
= "2017/03/17" - TODAY() => -300
=TODAY() - "2017/03/17" => 300
You just need to remember to format the cell as number.
"The five senses obstruct or deform the apprehension of reality."
Jorge L. Borges?

"Premature optimization is the root of all evil in programming."
Donald Knuth, repeating C. A. R. Hoare

"To die for a religion is easier than to live it absolutely"
Jorge L. Borges
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform