Sign in with Microsoft
Sign in or create an account.
Hello,
Select a different account.
You have multiple accounts
Choose the account you want to sign in with.

基本概念

使用井號 # (#) 。 例如,#4/1/1997#。 此外,將邏輯運算子保持在井號以外。

  • #4/1/1997# 或 #5/4/1997#

  • >=#5/4/1997# 或 <=#6/12/1998#

篩選一年

=Year ([取得日期]) ,然後將您想要篩選的年份放在 [準則] 資料列。

篩選年、 (等時間間隔)

=DatePart ("q",[取得日期]) 。 在此範例中,將數位 1 到 4 放在 (篩選的季度中,) 準則列。

減去日期

=DateDiff ("d",[RequiredDate],[ShippedDate]) 。 尋找所需日期與出貨日期之間的天數。

新增日期

=DateAdd ("m",6,"4/1/1997") 尋找 6 個月的資料,從提供的日期開始。

DatePart、DateDiff、& DateAdd 間隔設定

設定

描述

yyyy

q

m

月份

y

一年中的一天

d

日期

w

Weekday

ww

h

n

分鐘

s

另請參閱

Need more help?

Want more options?

探索訂閱權益、瀏覽訓練課程、瞭解如何保護您的裝置等等。

社群可協助您詢問並回答問題、提供意見反應,以及聆聽來自具有豐富知識的專家意見。

Was this information helpful?

How satisfied are you with the translation quality?
What affected your experience?
By pressing submit, your feedback will be used to improve Microsoft products and services. Your IT admin will be able to collect this data. Privacy Statement.

Thank you for your feedback!

×