如何從Excel中的日期列表中提取或獲取年,月和日?
對於日期列表,您知道如何提取或獲取年,月和日的編號嗎? 請參見下面的屏幕截圖。 在本文中,我們將向您展示從Excel中的日期列表中分別獲取年,月和日編號的公式。
從Excel中的日期列表中提取/獲取年,月和日
以下面的日期列表為例,如果要從該列表中獲取年,月,日的數字,請按以下步驟進行。
1.選擇一個用於查找年份的空白單元格,例如單元格B2。
2.複製並粘貼公式 =年(A2) 進入公式欄,然後按 Enter 鍵。 將“填充手柄”向下拖動到您需要從列表中獲取所有年份的範圍。
本節向您顯示從列表中獲取月份數的公式。
1.選擇一個空白單元格,複製並粘貼公式 = MONTH(A2) 進入公式欄,然後按 Enter 鍵。
2.將填充手柄向下拖動到所需的範圍。
然後,您將獲得日期列表的月份號。
獲得日數的公式與上述公式一樣簡單。 請執行以下操作。
複製並粘貼公式 = DAY(A2) 進入空白單元格D2,然後按 Enter 鍵。 然後將“填充手柄”向下拖動到該範圍,以從引用的日期列表中提取所有日期。
現在,如上圖所示,從日期列表中提取了年,月和日的數字。
在Excel中輕鬆更改所選日期範圍內的日期格式
Excel的Kutools's 套用日期格式 實用程序可幫助您輕鬆地將所有日期格式更改為Excel中選定日期範圍內的指定日期格式。
立即下載Kutools for Excel的全功能30天免費試用版!
最佳辦公生產力工具
🤖 | Kutools 人工智慧助手:基於以下內容徹底改變數據分析: 智慧執行 | 生成代碼 | 建立自訂公式 | 分析數據並產生圖表 | 呼叫 Kutools 函數... |
熱門特色: 尋找、突出顯示或識別重複項 | 刪除空白行 | 合併列或儲存格而不遺失數據 | 沒有公式的回合 ... | |
超級查詢: 多條件VLookup | 多值VLookup | 跨多個工作表的 VLookup | 模糊查詢 .... | |
高級下拉列表: 快速建立下拉列表 | 依賴下拉列表 | 多選下拉列表 .... | |
欄目經理: 新增特定數量的列 | 移動列 | 切換隱藏列的可見性狀態 | 比較範圍和列 ... | |
特色功能: 網格焦點 | 設計圖 | 大方程式酒吧 | 工作簿和工作表管理器 | 資源庫 (自動文字) | 日期選擇器 | 合併工作表 | 加密/解密單元格 | 按清單發送電子郵件 | 超級濾鏡 | 特殊過濾器 (過濾粗體/斜體/刪除線...)... | |
前 15 個工具集: 12 文本 工具 (添加文本, 刪除字符,...) | 50+ 圖表 類型 (甘特圖,...) | 40+ 實用 公式 (根據生日計算年齡,...) | 19 插入 工具 (插入二維碼, 從路徑插入圖片,...) | 12 轉化 工具 (數字到單詞, 貨幣兌換,...) | 7 合併與拆分 工具 (高級合併行, 分裂細胞,...) | ... 和更多 |
使用 Kutools for Excel 增強您的 Excel 技能,體驗前所未有的效率。 Kutools for Excel 提供了 300 多種進階功能來提高生產力並節省時間。 點擊此處獲取您最需要的功能...
Office選項卡為Office帶來了選項卡式界面,使您的工作更加輕鬆
- 在Word,Excel,PowerPoint中啟用選項卡式編輯和閱讀,發布者,Access,Visio和Project。
- 在同一窗口的新選項卡中而不是在新窗口中打開並創建多個文檔。
- 將您的工作效率提高 50%,每天為您減少數百次鼠標點擊!
Sort comments by
#39377
This comment was minimized by the moderator on the site
0
0
#40148
This comment was minimized by the moderator on the site
0
0
#39100
This comment was minimized by the moderator on the site
0
0
#39191
This comment was minimized by the moderator on the site
Report
0
0
#38234
This comment was minimized by the moderator on the site
0
0
#38369
This comment was minimized by the moderator on the site
Report
0
0
#34792
This comment was minimized by the moderator on the site
0
0
#32238
This comment was minimized by the moderator on the site
0
0
#32241
This comment was minimized by the moderator on the site
0
0
#32243
This comment was minimized by the moderator on the site
0
0
#32242
This comment was minimized by the moderator on the site
0
0
#32239
This comment was minimized by the moderator on the site
0
0
#32240
This comment was minimized by the moderator on the site
0
0
#29179
This comment was minimized by the moderator on the site
0
0
#29180
This comment was minimized by the moderator on the site
0
0
#29181
This comment was minimized by the moderator on the site
0
0
There are no comments posted here yet