Link to home
Start Free TrialLog in
Avatar of Cactus1993
Cactus1993Flag for United States of America

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.
ASKER CERTIFIED SOLUTION
Avatar of Ryan Chong
Ryan Chong
Flag of Singapore image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Step 1: First dat of this year =DATE(INT(YEAR(TODAY())), 1, 1)
Step 2: Number of days since 1/1 = =TODAY() - DATE(INT(YEAR(TODAY())), 1, 1)

Regards, Dirk-Jan
you may simply try this instead!

=TODAY()-DATEVALUE("1 Jan "&YEAR(NOW()))

Open in new window


and format it as Number
Avatar of Rgonzo1971
Rgonzo1971

Hi,

pls try for the date number
=TODAY() - DATE(INT(YEAR(TODAY())), 1, 1) +1

Open in new window

Regards
Avatar of Cactus1993

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?