Skip i'r prif gynnwys

Sut i fformatio dyddiadau dyddiadau llai na / mwy na heddiw yn Excel?

Gallwch ddyddiadau fformat amodol yn seiliedig ar y dyddiad cyfredol yn Excel. Er enghraifft, gallwch fformatio dyddiadau cyn heddiw, neu fformatio dyddiadau sy'n fwy na heddiw. Yn y tiwtorial hwn, byddwn yn dangos i chi sut i ddefnyddio'r swyddogaeth HEDDIW mewn fformatio amodol i dynnu sylw at ddyddiadau dyledus neu ddyddiadau yn Excel yn y dyfodol yn fanwl.

Mae fformat amodol yn dyddio cyn heddiw neu ddyddiadau yn y dyfodol yn Excel


Mae fformat amodol yn dyddio cyn heddiw neu ddyddiadau yn y dyfodol yn Excel

Gadewch i ni ddweud bod gennych chi restr o ddyddiad fel y dangosir isod. Am adael i'r dyddiadau dyledus a'r dyddiadau dyfodol ddod i ben, gwnewch fel a ganlyn.

1. Dewiswch yr ystod A2: A15, yna cliciwch Fformatio Amodol > Rheoli Rheolau dan Hafan tab. Gweler y screenshot:

2. Yn y Rheolwr Rheolau Fformatio Amodol blwch deialog, cliciwch y Rheol Newydd botwm.

3. Yn y Rheol Fformatio Newydd blwch deialog, mae angen i chi:

1). Dewiswch Defnyddiwch fformiwla i benderfynu pa gelloedd i'w fformatio yn y Dewis Math o Reol adran;

2). Am fformatio'r dyddiadau sy'n hŷn na heddiw, copïwch a gludwch y fformiwla os gwelwch yn dda = $ A2 i mewn i'r Gwerthoedd fformat lle mae'r fformiwla hon yn wir blwch;

Am fformatio dyddiadau'r dyfodol, defnyddiwch y fformiwla hon = $ A2> HEDDIW ();

3). Cliciwch y fformat botwm. Gweler y screenshot:

4. Yn y Celloedd Fformat blwch deialog, nodwch y fformat ar gyfer y dyddiadau dyledus neu ddyddiadau'r dyfodol, ac yna cliciwch ar y OK botwm.

5. Yna mae'n dychwelyd i'r Rheolwr Rheolau Fformatio Amodol blwch deialog. Ac mae'r rheol fformatio dyddiadau dyledus yn cael ei chreu. Os ydych chi am gymhwyso'r rheol nawr, cliciwch y Gwneud cais botwm.

6. Ond os ydych chi am gymhwyso'r rheol dyddiadau dyledus a'r rheol dyddiadau yn y dyfodol gyda'i gilydd, crëwch reol newydd gyda'r fformiwla fformatio dyddiad yn y dyfodol trwy ailadrodd y camau uchod o 2 i 4.

7. Pan fydd yn dychwelyd i'r Rheolwr Rheolau Fformatio Amodol blwch deialog eto, gallwch weld bod y ddwy reol yn cael eu dangos yn y blwch, cliciwch y OK botwm i ddechrau fformatio.

Yna gallwch weld y dyddiadau sy'n hŷn na heddiw ac mae'r dyddiad sy'n fwy na heddiw yn cael ei fformatio'n llwyddiannus.

Fformat hawdd ei amod bob rhes yn y dewis:

Kutools ar gyfer Excel's Cysgod Rhes / Colofn Amgen cyfleustodau yn eich helpu i ychwanegu fformatio amodol yn hawdd i bob rhes yn y dewis Excel.
Dadlwythwch y nodwedd lawn 30-diwrnod llwybr rhad ac am ddim o Kutools ar gyfer Excel nawr!


Erthyglau cysylltiedig:

Offer Cynhyrchiant Swyddfa Gorau

🤖 Kutools AI Aide: Chwyldro dadansoddi data yn seiliedig ar: Cyflawniad Deallus   |  Cynhyrchu Cod  |  Creu Fformiwlâu Personol  |  Dadansoddi Data a Chynhyrchu Siartiau  |  Invoke Swyddogaethau Kutools...
Nodweddion Poblogaidd: Darganfod, Amlygu neu Adnabod Dyblygiadau   |  Dileu Rhesi Gwag   |  Cyfuno Colofnau neu Gelloedd heb Colli Data   |   Rownd heb Fformiwla ...
Super-edrych: VLookup Meini Prawf Lluosog    VLookup Gwerth Lluosog  |   VLookup Ar Draws Taflenni Lluosog   |   Edrych Niwlog ....
Rhestr gwympo Uwch: Creu Rhestr Gollwng yn Gyflym   |  Rhestr Gollwng Dibynnol   |  Rhestr Gollwng Aml-ddewis ....
Rheolwr Colofn: Ychwanegu Nifer Penodol o Golofnau  |  Symud Colofnau  |  Toglo Statws Gwelededd Colofnau Cudd  |  Cymharwch Ystodau a Cholofnau ...
Nodweddion dan Sylw: Ffocws ar y Grid   |  Golwg Dylunio   |   Bar Fformiwla Mawr    Rheolwr Llyfr Gwaith a Thaflen   |  Llyfrgell Adnoddau (Testun Auto)   |  Dewiswr Dyddiad   |  Cyfuno Taflenni Gwaith   |  Amgryptio/Dadgryptio Celloedd    Anfon E-byst trwy Restr   |  Hidlo Super   |   Hidlo Arbennig (hidlo mewn print trwm/italig/strikethrough...) ...
15 Set Offer Gorau12 Testun offer (Ychwanegu Testun, Dileu Cymeriadau,...)   |   50 + Siart Mathau (Siart Gantt,...)   |   40+ Ymarferol Fformiwlâu (Cyfrifwch oedran yn seiliedig ar ben-blwydd,...)   |   19 mewnosod offer (Mewnosod Cod QR, Mewnosod Llun o'r Llwybr,...)   |   12 Trosi offer (Rhifau i Eiriau, Trosi arian cyfred,...)   |   7 Uno a Hollti offer (Rhesi Cyfuno Uwch, Celloedd Hollt,...)   |   ... a mwy

Supercharge Eich Sgiliau Excel gyda Kutools ar gyfer Excel, a Phrofiad Effeithlonrwydd Fel Erioed Erioed. Kutools ar gyfer Excel Yn Cynnig Dros 300 o Nodweddion Uwch i Hybu Cynhyrchiant ac Arbed Amser.  Cliciwch Yma i Gael Y Nodwedd Sydd Ei Angen Y Mwyaf...

Disgrifiad


Mae Office Tab yn dod â rhyngwyneb Tabbed i Office, ac yn Gwneud Eich Gwaith yn Haws o lawer

  • Galluogi golygu a darllen tabbed yn Word, Excel, PowerPoint, Cyhoeddwr, Mynediad, Visio a Phrosiect.
  • Agor a chreu dogfennau lluosog mewn tabiau newydd o'r un ffenestr, yn hytrach nag mewn ffenestri newydd.
  • Yn cynyddu eich cynhyrchiant 50%, ac yn lleihau cannoedd o gliciau llygoden i chi bob dydd!
Comments (24)
No ratings yet. Be the first to rate!
This comment was minimized by the moderator on the site
I want to highlight a cell if:
1. today's date is greater than the date in another cell or blank (=TODAY()>'APM Tracker'P14) AND ALSO;
2. If the date in P15 is greater than P14 same highlight color AND ALSO;
3. If the date in P15 is less than P14 I do not want the highlight
This comment was minimized by the moderator on the site
Hey All,

I want to get only past due dates in the particular column. Instead of highlighting the cells with color i need the dates to be picked in the column

Any solution for this....
This comment was minimized by the moderator on the site
Alright, I read through this thread and did not see this question asked/answered. I have a column of future dates. I would like to add conditional formatting to flag that date exactly 30 days before (1st color "Hey you should get this done its due in 30 day's") and 7 days ( 2nd color "You procrastinated and now you have 7 days to complete this"). Any help here?
This comment was minimized by the moderator on the site
Hi Michael,
I am not sure I understand your question clearly. If you want to hight the date which is 30 days and 7 days from today. Please use the following formulas to create two formula rules with different highlighted colors:
=D9=TODAY()+30
=D9=TODAY()+7

https://www.extendoffice.com/images/stories/comments/comment-picture-zxm/conditional-formatting.png
If this is not what you need, please attach a screenshot of your data here.
This comment was minimized by the moderator on the site
To ignore cells that have blanks try this:

=AND($A2<>"",$A2<TODAY())

This assumes the cell you have selected is A2 (change this to whatever cell you have currently selected)
To copy this to the applicable cells, change the "Applies to" to the cell range you need.
This comment was minimized by the moderator on the site
Hi Andy Campbell,
Thank you for sharing.
This comment was minimized by the moderator on the site
Hi
I am trying to use condition formatting to allow a cell to be highlighted when an item is past due based on different turn around times (TAT). I have a column with a submitted date which is then used with the #of days from the TAT to automatically give the due date. Using the following formula, =IF(OR(E3="",A3=""),"",DATE(YEAR(A3),MONTH(A3),DAY(A3)+E3))
The condition formatting currently used is "cell value < today()" applies to +$G:$G.
What I would like to do is use the stop if rule to stop the condition formatting if the date entered in column "H" is < or = to todays date.
Thanks Michelle
This comment was minimized by the moderator on the site
if i want highlight the due date with the conditional : today less or equal 30 days from due date
This comment was minimized by the moderator on the site
I am trying to create conditional formatting that will highlight rows older than 14 days in yellow and highlight rows older than 21 days in red. My date column starts in A2, I have the following rules applied, but only yellow is highlighting and just the date column, not the entire row. Can you help? Scott

1. =ISBLANK(A2)=TRUE
2. =A2<TODAY()-14
3. =A2<TODAY()-21
This comment was minimized by the moderator on the site
I want to ignore blank cells which doesn't have a date i.e I do not want blank cells to be highlighted when I am comparing dates<Today(). Please help
This comment was minimized by the moderator on the site
Hi Madhu,
The first method in this artice can help you solve the problem. Please have a try.
https://www.extendoffice.com/documents/excel/2499-excel-conditional-formatting-ignore-blank-zero.html
This comment was minimized by the moderator on the site
1 colum has the dates in it i want another colum to change colour when this formula is applied.

any ideas?
This comment was minimized by the moderator on the site
Hi grant,
Supposing you want to change the cell color in column B based on dates in column A, please select the column B cells (such as B2:B21), and apply the conditional formatting function with the above formulas =$A2>Today() or =$A2<Today().
This comment was minimized by the moderator on the site
Hello! can anyone help me?

I have =TODAY() formula in A1 and need 3 more rules to work as per below

rule 1 all dates 8 to 14 days older than today

rule 2 : all dates older 14 to 30 days than today

rule 3: all dates 31 or more days older than today
This comment was minimized by the moderator on the site
it should be something like this:

if(*cell*+8>Today();if(*cell*+14<Today();"8-14 from today";"N/A"))
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