Cactus1993
asked on
Excel Formula: How to calculate days in any current year, from Jan 1 to the current date, using computer internal clock?
I am thinking something along the lines of:
=(TODAY) - (JAN 1 + (YEAR(TODAY)) ... I know this isn't right and won't work, I just don't know how to return Jan 1 of the current year to subtract from the current date, in order to get the number of days Year to Date.
Thanks.
=(TODAY) - (JAN 1 + (YEAR(TODAY)) ... I know this isn't right and won't work, I just don't know how to return Jan 1 of the current year to subtract from the current date, in order to get the number of days Year to Date.
Thanks.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
you may simply try this instead!
and format it as Number
=TODAY()-DATEVALUE("1 Jan "&YEAR(NOW()))
and format it as Number
Hi,
pls try for the date number
pls try for the date number
=TODAY() - DATE(INT(YEAR(TODAY())), 1, 1) +1
Regards
ASKER
Thank you!
the DAYS360 function calculates with each month equaling 30 days(not the actual days) is that what you are looking for?
@Cactus1994
yea, pls confirm if you have selected the correct comment as the answer. I was too quick to post using Day360 function but apparently it may not be the one you're looking at?
yea, pls confirm if you have selected the correct comment as the answer. I was too quick to post using Day360 function but apparently it may not be the one you're looking at?
Step 2: Number of days since 1/1 = =TODAY() - DATE(INT(YEAR(TODAY())), 1, 1)
Regards, Dirk-Jan