简体   繁体   中英

Convert Whole Digit to Date Format

I am trying to convert the Day column to a standard date format. 1 for Nov 1 (current month), 2 for Nov 2, and so on. Would be nice if the formula will display the current month. The format for the Day column is in general.

在此处输入图片说明

将以下公式复制到单元格B2 (如果这是您的Date列,而DayA列中),然后将其向下复制:

=DATE(YEAR(TODAY()),MONTH(TODAY()),A2)

Alternately, use =A2+43039 and format cells as Custom: d-mmm

Also possible to use =A2+"10/31/2017" to make it clearer what you're doing in the formula.

However, if you want it to update with whatever the current month and year is, Ralph's answer is probably best.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM