Ruddles
Well-known Member
- Joined
- Aug 24, 2010
- Messages
- 5,851
- Office Version
- 365
- Platform
- Windows
Not really a question but replies always welcome...
I offer for your use my Excel formula for calculating how far in the future a given date is (cell A2 in this example). It returns a value in days, weeks, months or years depending how far in the future the date in A2 is, switching units from days to weeks at 35 days, from weeks to months at 20 weeks and from months to years after 11½ months.
Let me know if you find it useful – or if you find any bugs!
I offer for your use my Excel formula for calculating how far in the future a given date is (cell A2 in this example). It returns a value in days, weeks, months or years depending how far in the future the date in A2 is, switching units from days to weeks at 35 days, from weeks to months at 20 weeks and from months to years after 11½ months.
Excel Formula:
=IF(A2>NOW(),SUBSTITUTE(SUBSTITUTE(SUBSTITUTE(CHOOSE(MATCH(A2-TODAY(),{0;35;140;350}),ROUND((A2-TODAY()),0)&" day",ROUND((A2-TODAY())/7*2,0)/2&" week",ROUND((A2-TODAY())*2/30.6,0)/2&" month",ROUND((A2-TODAY())*4/365.25,0)/4&" year"),".25","¼"),".5","½"),".75","¾")&IF(CHOOSE(MATCH(A2-TODAY(),{0;35;140;350}),ROUND((A2-TODAY()),0),ROUND((A2-TODAY())/7*2,0)/2,ROUND((A2-TODAY())*2/30.6,0)/2,ROUND((A2-TODAY())*4/365.25,0)/4)=1,"","s"),"Past")
Let me know if you find it useful – or if you find any bugs!