跳到主要內容

如何在Excel中突出顯示/條件格式的日期超過30天?

要獲取日期列表,並且您要突出顯示自現在起30天之前的日期單元格,是否可以手動突出顯示它們? 本教程介紹瞭如何使用Excel中的條件格式突出顯示30天以上的日期,以及如何使用出色的工具輕鬆地選擇和計數超過特定日期的日期。

使用條件格式突出顯示30天以上的日期
使用出色的工具輕鬆選擇和突出顯示比特定日期早的日期

有關突出顯示單元格的更多教程...


在Excel中輕鬆選擇併計算早於特定日期的日期:

選擇特定的單元格 的效用 Excel的Kutools 可以幫助您快速計算和選擇日期範圍內早於Excel中特定日期的所有日期。 立即下載Kutools for Excel的全功能30天免費試用版!


使用條件格式突出顯示30天以上的日期

使用Excel的條件格式設置功能,您可以快速突出顯示30天以上的日期。 請執行以下操作。

1.選擇日期數據,然後單擊 首頁 > 條件格式 > 新規則。 看截圖:

2。 在裡面 新格式規則 對話框,您需要:

  • 2.1)選擇 使用公式來確定要格式化的單元格 在選項 選擇規則類型 部分;
  • 2.2)將以下公式輸入到 格式化此公式為真的值 框;
  • =A2<TODAY()-30
  • 2.3)點擊 格式 按鈕並指定填充顏色以突出顯示日期單元格;
  • 2.4)點擊 OK 按鈕。 看截圖:

注意: 在上面的公式中,A2是所選範圍的第一個單元格,並且30表示早於30天,您可以根據需要進行更改。

現在,所有自今天起超過30天的日期將以指定的填充顏色突出顯示。

如果日期列表中有空白單元格,它們也將突出顯示。 如果您不想突出顯示空白單元格,請繼續創建另一個規則。

3.再次選擇日期列表,單擊 首頁 > 條件格式 > 管理規則.

4。 在裡面 條件格式規則管理器 對話框中,單擊 新規則 按鈕。

5.在開幕 編輯格式規則 對話框,請:

  • 5.1)選擇 使用公式來確定要格式化的單元格 在選項 選擇規則類型 部分;
  • 5.2)將以下公式輸入到 格式化此公式為真的值 框;
  • =ISBLANK(A2)=TRUE
  • 5.3)點擊 確定。

6.返回到 條件格式規則管理器 對話框中,您可以看到規則已列出,請選中 如果為真,則停止 盒子。 最後點擊 OK 按鈕。

然後,您只會看到突出顯示了所選範圍內超過30天的日期。


使用出色的工具輕鬆突出顯示早於特定日期的日期

這裡介紹一個方便的工具– 選擇特定的單元格 的效用 Excel的Kutools 為了你。 使用此實用程序,可以選擇早於特定日期的特定範圍內的所有日期單元,並根據需要手動使用背景色突出顯示它。

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

1.選擇日期單元格,單擊 庫工具 > 選擇 > 選擇特定單元格。

2。 在裡面 選擇特定的單元格 對話框,您需要:

  • 2.1)選擇 細胞 ,在 選擇類型 部分;
  • 2.2)選擇 小於 來自 特定類型 下拉列表,然後在文本框中輸入要選擇所有小於該日期的日期;
  • 2.3)點擊 OK 按鈕。
  • 2.4)點擊 OK 在下一個彈出對話框中。 (此對話框通知您有多少個單元格符合條件並被選中。)

3.選擇日期單元格後,如果需要突出顯示它們,請手動轉到“主頁”>“填充顏色”以為其指定突出顯示顏色。

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


相關文章:

在Excel中,條件格式日期小於/大於今天
本教程向您展示如何在條件格式中使用TODAY函數來詳細顯示Excel中的到期日或將來的日期。

忽略Excel中條件格式的空白或零單元格
假設您有一個包含零個或空白單元格的數據列表,並且想要有條件地格式化此數據列表,但忽略了空白或零個單元格,您會怎麼做? 本文將幫您一個忙。

將條件格式設置規則復製到另一個工作表/工作簿
例如,您有條件地根據第二列(水果列)中的重複單元格突出顯示了整行,並為第四列(金額列)中的前3個值上色,如下圖所示。 現在,您要將條件格式設置規則從該範圍複製到另一個工作表/工作簿。 本文提供了兩種解決方法來幫助您。

根據Excel中文本的長度突出顯示單元格
假設您正在使用具有文本字符串列表的工作表,現在,您要突出顯示文本長度大於15的所有單元格。本文將討論解決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 (22)
No ratings yet. Be the first to rate!
This comment was minimized by the moderator on the site
I got a solution to make the rest of the cells blank if they do not have a date or value in them.
Make a new rule. Select rule type: Format only cells that contain"
Choose "Format only cells with: Blanks:"
Then format it with a white background, or color of your excel spreadsheet. That should make all blanks turn white. Leaving the other dates that are over 30 days stay red. 
This comment was minimized by the moderator on the site
in support of my solution
This comment was minimized by the moderator on the site
I want solution. i want a formula through which if the date changed in 1 column then text and colour on the other column should be change by itself.can any body help me on this issue
This comment was minimized by the moderator on the site
I tried this, and it somewhat worked for me. The problem I have is the empty cells are still highlighted. I don't want the empty cells highlighted. What do I need to do to exclude the blank cells?
This comment was minimized by the moderator on the site
This happened to me as well, a couple of things to double check.1) the "STOP IF TRUE" box next to your rule in the rule manager is checked. 2) Make sure your 'applies to' for this rule is the same as the one for the other rule(s) 3) Check your formula and subculture the "A2" with what matches the column that you are creating the rule for. For example, for my table all of my dates are in the column J and the dates start in row 7 so my formula for this would be =ISBLANK(J7)=TRUE
I hope that this helps!
This comment was minimized by the moderator on the site
It doesn't work well, only the cell L1 is formated and no other one. Only the cell L1 is marked with an other backround color. Pleas add also when and which cells should be marked before clicking on "new rule."
This comment was minimized by the moderator on the site
The issue with less than 30 days is, it is even high

lighting blank cells.
This comment was minimized by the moderator on the site
Hi there, I've searched far and low and have not yet found the specific formatting that I'm looking for. I would like to be able to have a list of all the 5th Sundays in the month, per specific year(There are always 4 months that have 5 Sundays every year).

So since I don't know how to do that, I have a function that looks at dates (Jan - Dec of a year) and finds the first Sunday of the month, then adds 4 weeks to that, which would give me the 5th Sunday of the month.

=DATE(YEAR(A2),MONTH(A2),1+((5-(1>=WEEKDAY(DATE(YEAR(A2),MONTH(A2),1))))*7)+(1-WEEKDAY(DATE(YEAR(A2),MONTH(A2),1))))

So some months the resulting dates actually show up in the next month - well all of the ones that don't have 5 Sundays.
So now I was thinking if I could at least have conditional formatting where the "DAY" value in the date is above a certain number, then I could at least easily highlight the ones that have 5 Sundays. But I have not been able to figure it out. Can someone help me with that? It seems to me it should be simple to have a conditional formatting that highlights all the days that are after the middle of the month, regardless of which month or year it is.
This comment was minimized by the moderator on the site
I am using the Highlighting function with dates greater than 90 days, but then I have a completed date that I would like to use that will remove the highlight when a date is added to this cell. Example Due Date - Highlighted Cell - Completed Date. Is there a formula that will do this?
This comment was minimized by the moderator on the site
Is it possible to compare 2 dates like; (first date > (second date+5)), and condition a cell colour based on the result?
This comment was minimized by the moderator on the site
Yes, you just need to compare the cells $n$m>,<,=$o$p


Let me know if it works or else, I will provide you another video


Reach me out
This comment was minimized by the moderator on the site
I got the above down but what if I only wanted to count weekdays? No weekends or holidays.
There are no comments posted here yet
Load More
Please leave your comments in English
Posting as Guest
×
Rate this post:
0   Characters
Suggested Locations