[英]Get Date from day of year in Excel
I have a spreadsheet with the following information; 我有一个包含以下信息的电子表格;
Stock Code Day of Year
5102560 170
5102600 167
5102617 163
5102154 164
I want to be able to return the date from the day of year number. 我希望能够从年份中的第几天返回日期。 Is there an excel function that will allow me to do this?
有一个excel功能可以让我做到这一点吗?
这应该工作
=DATE(2004,1,your_value)
You could just use =DATE(2014,1,1)+[day of year]-1
. 您可以只使用
=DATE(2014,1,1)+[day of year]-1
。 The first part is the starting date, the second your day of year number, and the -1 is required to calculate the proper date since 01/01/2014 is the first day of the year. 第一部分是开始日期,第二部分是您的年份中的第一天,数字-1必须用于计算正确的日期,因为2014年1月1日是一年中的第一天。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.