Getting Date Differences

0
22
Web development, programmer engineering and coding website on augmented reality interface screens. developer project engineer programming software or application design, Cartoon vector illustration

Excel

Detailed
=IF(ISBLANK([@Date]), "", IF([@Date]<TODAY(), ((CONCATENATE(DATEDIF([@Date],TODAY(),"y")," y, ", MOD(DATEDIF([@Date],TODAY(),"m"),12), " m, ", MOD(DATEDIF([@Date],TODAY(),"md"),365), " d"))), ((CONCATENATE(DATEDIF(TODAY(),[@Date],"y")," y, ", MOD(DATEDIF(TODAY(),[@Date],"m"),12), " m, ", MOD(DATEDIF(TODAY(),[@Date],"md"),365), " d")))))


Day
=IF(ISBLANK([@Date]), "", IF([@Date]<TODAY(), CONCATENATE(DATEDIF([@Date],TODAY(),"d")," d") , CONCATENATE(DATEDIF(TODAY(),[@Date],"d")," d") ))
Month

=IF(ISBLANK([@Date]), "", IF([@Date]<TODAY(), CONCATENATE(DATEDIF([@Date],TODAY(),"m")," m") , CONCATENATE(DATEDIF(TODAY(),[@Date],"m")," m") ))
Year

=IF(ISBLANK([@Date]), "", IF([@Date]<TODAY(), CONCATENATE(DATEDIF([@Date],TODAY(),"y")," y") , CONCATENATE(DATEDIF(TODAY(),[@Date],"y")," y") ))
Previous articleHealthy Millet Pancake | Uthappam
Next articleMilk Cooked (Soaked/Overnight) Oats
Vishal Bhandari is an admin, editor and writer of this portfolio. He writes about himself, his interests, hobbies, activities. He manages many articles about tech, finance, history and geopolitics on his portfolio.

LEAVE A REPLY

Please enter your comment!
Please enter your name here