input date and time

input date and time

shortcut:
date: ctrl+; (semicolon)
time: ctrl+shift+: (colon)

函数:
today() 出现当前日期
now(), 出现当前日期和时间
**date()**已有年月日数据,用此函数combine
DATEDIF(start_date,end_date,unit) : Calculates the number of days, months, or years between two dates. This function is useful in formulas where you need to calculate an age.
在这里插入图片描述
NETWORKDAYS(start_date, end_date, [holidays])
NETWORKDAYS.INTL(start_date, end_date, [weekend], [holidays])
可定义周末是哪天,用于算一共工作多少天
WORKDAY(start_date, days, [holidays])
WORKDAY.INTL(start_date, days, [weekend], [holidays])
可定义周末是哪天,用于算项目结束日
WEEKDAY(serial_number,[return_type])
用于算星期几,需要设定 :format cells–custom–把type换成dddd,经常和IF()函数连用
DAY(serial_number), returns the day of a date
MONTH(serial_number), returns the month of a date
YEAR(serial_number), returns the year of the date
WEEKNUM(serial_number,[return_type])
用于算周数
RANDBETWEEN(bottom, top)
Returns a random integer number between the numbers you specify. 任意整数

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值