跳到主要內容

如何在Excel中突出顯示兩個日期之間的單元格?

如果您的工作表中有日期列表,現在,您想突出顯示兩個定義的日期之間的單元格或行,則Excel的條件格式可以幫您一個忙。 本文將討論如何應用條件格式來突出顯示兩個日期之間的單元格或行。

使用條件格式突出顯示兩個日期之間的單元格
使用條件格式突出顯示兩個日期之間的行
使用Kutools for Excel突出顯示兩個日期之間的單元格


使用條件格式突出顯示兩個日期之間的單元格

要突出顯示兩個給定日期之間的日期單元格,請執行以下步驟:

1.選擇要突出顯示特定日期單元格的數據范圍。

2。 點擊 首頁 > 條件格式 > 加亮單元格規則 > 之間.

3。 在裡面 之間 對話框中,輸入開始日期和結束日期,選擇一種顏色以突出顯示單元格,然後單擊 OK.
然後立即突出顯示兩個給定日期之間的日期單元格。


使用條件格式突出顯示兩個日期之間的行

如果要突出顯示整個行或所選內容的行以使行更加醒目,則需要使用 條件格式.

1.您需要輸入開始和結束日期,您要在工作表中突出顯示它們之間的行。 在這種情況下,我分別在D2和E2中輸入開始日期和結束日期。

2.選擇要使用的數據范圍(如果數據包含標題,請忽略它們)。 然後點擊 首頁 > 條件格式 > 新規則,請參見屏幕截圖:

3。 在 新格式規則 對話框,請進行以下配置。

  • 3.1)點擊 使用公式來確定要格式化的單元格 選項,
  • 3.2)輸入此公式 = AND($ B2> = $ D $ 2,$ B2 <= $ E $ 2)格式化此公式為真的值 文本框(在公式中, B2 代表數據范圍內的第一個日期單元格, D2 包含開始日期和 E2 包含您在步驟1中輸入的結束日期)
  • 3.3)點擊 格式 按鈕選擇一種顏色以突出顯示行;
  • 3.4)點擊 OK 按鈕。 看截圖:

然後,突出顯示了兩個特定日期之間的行,如下圖所示。

注意: 這個 條件格式 是動態工具,其結果將隨著日期的改變而改變。


使用Kutools for Excel突出顯示兩個日期之間的單元格

隨著 選擇特定的單元格 的效用 Excel的Kutools,您可以快速選擇兩個日期之間的所有單元格,然後指定背景色以突出顯示它們。 請執行以下操作。

申請前 Excel的Kutools首先下載並安裝.

1.選擇要突出顯示日期的範圍,然後單擊 庫工具 > 選擇 > 選擇特定的單元格。 看截圖:

2。 在裡面 選擇特定的單元格 對話框,請進行如下配置:

  • (1)。 選擇 細胞 ,在 選擇類型 部分(如果要突出顯示整行,請選擇 整行 選項);
  • (2)。 在裡面 特定類型 部分,選擇 比...更棒 從第一個下拉列表中,在以下文本框中輸入開始日期。 選擇 小於 在第二個下拉框中,在文本框中輸入結束日期;
  • (3)。 點擊 OK 按鈕。
  • (4)。 然後彈出一個對話框,告訴您找到並選擇了多少個單元格,單擊 OK。 看截圖:

3.已在您選擇的範圍內選擇了兩個給定日期之間的日期。 請在下面指定背景色 首頁 標籤以突出顯示它們。

  如果您想免費試用(30天)此實用程序, 請點擊下載,然後按照上述步驟進行操作。


使用Kutools for Excel突出顯示兩個日期之間的單元格


相關文章:

最佳辦公生產力工具

🤖 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%,每天為您減少數百次鼠標點擊!
Comments (6)
No ratings yet. Be the first to rate!
This comment was minimized by the moderator on the site
hola a todos, quisiera saber como puedo resaltar un rango de celdas en blanco con formula teniendo de base fecha de inicio (B1), fecha fin (C2) de alguna actividad y el objetivo de resaltar es visualizar cuantos días tomo la actividad, estos días se encuentran en una fila... el problema es que soy principiante en Excel y no he logrado encontrar la formula para resaltar un rango de celdas según la fecha inicial y final.
This comment was minimized by the moderator on the site
Hello, Angie,
Sorry, I can't understand your problem clearly. It is best to explain your problem in English. Or you can upload screenshot to express what you want.
Thank you!
This comment was minimized by the moderator on the site
Hi I was hoping you could help me. I am trying to create an excel spreadsheet which will allow me to track how many sinks I have available for hire. For example I have 30 sinks in total and they are hired our to many various companies at different delivery dates and return dates. I wanted to be able to enter a formula that would used the two dates to then show if a sink is available for hire
This comment was minimized by the moderator on the site
Sorry I am not sure I got your question. Would be nice if you could provide screenshot of what you are trying to do.
This comment was minimized by the moderator on the site
Hi there, thanks for your efforts. I have a simple sheet to track employees' leaves. I would like make sure that new leaves does not fall between other 2 dates for the same employee. For example, employee code # 2230 has a leave from 16 July 2017 to 20 July 2017, so if he applies for another 1 day leave on 18 July 2017 I want that date to get highlighted. Can you please help me with that?
This comment was minimized by the moderator on the site
Dear Ahmed,
Would you please provide an example screenshot of your worksheet? We need more information for dealing with the problem.
Thank you!

Best Regards, Crystal
There are no comments posted here yet
Please leave your comments in English
Posting as Guest
×
Rate this post:
0   Characters
Suggested Locations