Skip to main content

Conas formáidiú coinníollach a dhéanamh bunaithe ar dháta in Excel?

Mar is eol dúinn, is féidir leis an bhFormáidiú Coinníollach formáid cille a athrú go huathoibríoch bunaithe ar ábhar na cille. Sa rang teagaisc seo, tabharfaidh mé isteach conas cealla formáidithe coinníollaí a dhéanamh bunaithe ar dháta in Excel.

Dátaí formáidithe coinníollach atá cothrom le / níos mó ná / níos sine ná TODAY

Formáidiú coinníollach dátaí anuas

Formáidiú coinníollach dátaí amach anseo

Formáidiú coinníollach idir dhá dháta

Formáidiú coinníollach bunaithe ar dháta i gcolún eile


Dátaí formáidithe coinníollach atá cothrom le / níos mó ná / níos sine ná TODAY

Chun dátaí formáidithe coinníollach a dhéanamh, ní mór duit riail nua a chruthú.

1. Roghnaigh na cealla is mian leat an fhormáidiú coinníollach a chur leis, cliceáil Baile > Formáidiú Coinníollach > Riail Nua.
dáta formáidithe coinníollach doc 1

2. Sa Riail Nua Formáidithe dialóg, roghnaigh Úsáid foirmle chun a fháil amach cé na cealla atá le formáidiú in Roghnaigh Cineál Riail roinn, ansin roghnaigh foirmle amháin de réir mar is gá duit a chlóscríobh Luachanna formáide nuair atá an fhoirmle seo fíor Bosca téacs.

  • cothrom leis an lá inniu:=$B2=TODAY()
  • reater ná inniu: =$B2>TODAY()
  • Níos sine ná inniu: =$B2<TODAY()

dáta formáidithe coinníollach doc 2

3. cliceáil déanta chun dul go dtí Cealla Formáid dialóg, roghnaigh formáid amháin is mian leat chun aird a tharraingt ar na cealla de réir mar is gá duit.
dáta formáidithe coinníollach doc 3

4. cliceáil OK > OK. Tá na dátaí formáidithe.

nótaí: Inniu 15/8/2018
dáta formáidithe coinníollach doc 4


Formáidiú coinníollach dátaí anuas

Más mian leat formáidiú coinníollach a dhéanamh ar na dátaí seo caite, is féidir leat déanamh mar a leanas sa dialóg Riail Nua Formáidithe.

1. Roghnaigh ceann amháin de na foirmlí thíos de réir mar is gá duit, agus clóscríobh isteach sa Luachanna formáide nuair atá an fhoirmle seo fíor Bosca téacs.

  • Níos mó ná 30 lá ó shin: =TODAY()-$B2>30
  • Ó 30 go 15 lá ó shin, go huile: =AND(TODAY()-$B2>=15, TODAY()-$B2<=30)
  • Níos lú ná 15 lá ó shin: =AND(TODAY()-$B2>=1, TODAY()-$B2<15)

2. Ansin cliceáil déanta chun formáid amháin a roghnú sa Cealla Formáid dialóg.

3. cliceáil OK > OK chun na dialóga a dhúnadh.

nótaí: Inniu 15/8/2018
dáta formáidithe coinníollach doc 5


Formáidiú coinníollach dátaí amach anseo

Chun dátaí amach anseo a fhormáidiú go coinníollach, is féidir leat iad seo a dhéanamh:

1. Roghnaigh ceann amháin de na foirmlí thíos de réir mar is gá duit, agus clóscríobh isteach sa Luachanna formáide nuair atá an fhoirmle seo fíor Bosca téacs.

  • Tarlóidh sé i níos mó ná 30 lá as seo amach: =$B2-TODAY()>30
  • I 30 go 15 lá, go huile: =AND($B2-TODAY()>=15, $B2-TODAY()<=30)
  • I níos lú ná 15 lá: =AND($B2-TODAY()>=1, $B2-TODAY()<15)

2. Ansin cliceáil déanta chun formáid amháin a roghnú sa Cealla Formáid dialóg.

3. cliceáil OK > OK chun na dialóga a dhúnadh.


Formáidiú coinníollach idir dhá dháta

Chun formáidiú coinníollach a dhéanamh idir dhá dháta, roghnaigh na cealla agus úsáid an fhoirmle seo, =AND($B2>=$D$2,$B2<=$E$2) Is é D2 an dáta tosaigh, is é E2 an dáta deiridh. Ansin formáidigh na cealla le formáid atá uait.

dáta formáidithe coinníollach doc 6
dáta formáidithe coinníollach doc 7

Formáidiú coinníollach bunaithe ar dháta i gcolún eile

Más mian leat cealla a fhormáidiú go coinníollach bunaithe ar an dáta i gcolún eile, is féidir leat iad seo a dhéanamh.

1. Má theastaíonn uait aird a tharraingt ar dhíolacháin i gcolún C cé gurb é 16/8/2018 na dátaí coibhneasta i gcolún B, roghnaigh raon cholún C ar dtús.

2. Cumasaigh an dialóg Riail Nua Formáidithe agus clóscríobh an fhoirmle seo =$B2=DATEVALUE("8/16/2018") isteach sa Luachanna formáide nuair atá an fhoirmle seo fíor bosca téacs, ansin formáidigh na cealla i Cealla Formáid dialóg.

dáta formáidithe coinníollach doc 8
dáta formáidithe coinníollach doc 9

Nóta: Sna foirmlí thuas, is é B2 an chéad chill dáta de do raon dáta roghnaithe.


Uirlisí Táirgiúlachta Oifige is Fearr

🤖 Kutools AI Aide: anailís sonraí a réabhlóidiú bunaithe ar: Forghníomhú Chliste   |  Gin Cód  |  Cruthaigh Foirmlí Saincheaptha  |  Anailís a dhéanamh ar Sonraí agus Cairteacha a Ghin  |  Feidhmeanna Kutools a agairt...
Gnéithe Coitianta: Faigh, Aibhsigh nó Aithnigh Dúblaigh   |  Scrios Sraitheanna Bána   |  Comhcheangail Colúin nó Cealla gan Sonraí a Chailleadh   |   Babhta gan Foirmle ...
Cuardaigh Super: Ilchritéir VLookup    VLookup Illuachanna  |   VLookup Trasna Ilbhileoga   |   Amharc doiléir ....
Liosta anuas Casta: Go tapa Cruthaigh Liosta Anuas   |  Liosta anuas Cleithiúnach   |  Liosta Buail Isteach Ilroghnacha ....
Bainisteoir Colún: Cuir Líon Sonrach Colún leis  |  Colúin Bog  |  Scoránaigh Stádas Infheictheachta na gColún Ceilte  |  Déan comparáid idir Raonta & Colúin ...
Gnéithe Réadmhaoin: Fócas Eangaí   |  Amharc Dearaidh   |   Barra Mór na Foirmle    Leabhar Oibre & Bainisteoir Bileog   |  Leabharlann Acmhainní (Uaththéacs)   |  Piocálaí Dáta   |  Comhcheangail Bileoga Oibre   |  Criptigh/Díchriptigh Cealla    Seol Ríomhphost trí Liosta   |  Scagaire Super   |   Scagaire Speisialta (scagaire trom/iodálach/stailc tríd...) ...
Barr 15 Uirlisí12 Téacs uirlisí (Cuir Téacs, Bain Carachtair,...)   |   50 + Cairt cineálacha (Cairt Gantt,...)   |   40+ Praiticiúil Foirmlí (Ríomh aois bunaithe ar lá breithe,...)   |   19 Insertion uirlisí (Cuir isteach Cód QR, Ionsáigh Pictiúr ón gCosán,...)   |   12 Tiontú uirlisí (Uimhreacha le Focail, Comhshó Airgeadra,...)   |   7 Cumaisc & Scoilt uirlisí (Sraitheanna Comhcheangail Casta, Cealla Scoilt,...)   |   ... agus eile

Supercharge Do Scileanna Excel le Kutools le haghaidh Excel, agus Éifeachtúlacht Taithí Cosúil Ná Roimhe. Kutools le haghaidh Excel Tairiscintí Níos mó ná 300 Ardghnéithe chun Táirgiúlacht a Treisiú agus Sábháil Am.  Cliceáil anseo chun an ghné is mó a theastaíonn uait a fháil ...

Tuairisc


Tugann Tab Oifige comhéadan Tabbed chuig Office, agus Déan Do Obair i bhfad Níos Éasca

  • Cumasaigh eagarthóireacht agus léamh tabbed i Word, Excel, PowerPoint, Foilsitheoir, Rochtain, Visio agus Tionscadal.
  • Oscail agus cruthaigh cáipéisí iolracha i gcluaisíní nua den fhuinneog chéanna, seachas i bhfuinneoga nua.
  • Méadaíonn do tháirgiúlacht 50%, agus laghdaíonn sé na céadta cad a tharlaíonn nuair luch duit gach lá!
Comments (19)
No ratings yet. Be the first to rate!
This comment was minimized by the moderator on the site
How can I automatically add a date when a cell contains certain text? So, for example, if cell A1 contains "to do", a date is automatically added in another cell. This date is based on a date also from a cell and I would like to add a date + 65 days in the future. Is this possible?
This comment was minimized by the moderator on the site
Cześć, mierzę się z problemem warunkowego podświetlania daty, np.: w kolumnie A mam datę startu danej czynności np. 01.01.2023, w kolumnie B mam datę końca danej czynności np. 07.01.2023 i chodziłoby mi o to, żeby wyróżnić warunkowo np. kolorem zielonym datę w kolumnie B jeżeli pomiędzy datą startu, a datą końca czynności upłynęło mniej niż 7 dni, jeżeli 7 dni i więcej kolorem czerwonym.
This comment was minimized by the moderator on the site
Use two formulas in the conditional formatting dialog:
difference between start date and end date is greater than or equal to 7 days: =B2-A2>=7 format to red
difference between start date and end date is smaller than 7 days: =B2-A2<7 format to green
see screenshot:
https://cdn.extendoffice.com/images/stories/comments/sun-comment/doc-difference-greater-than-7.png
This comment was minimized by the moderator on the site
Cześć, mierzę się z problemem warunkowego podświetlania daty, np.: w kolumnie A mam datę startu danej czynności np. 01.01.2023, w kolumnie B mam datę końca danej czynności np. 07.01.2023 i chodziłoby mi o to, żeby wyróżnić warunkowo np. kolorem zielonym datę w kolumnie B jeżeli pomiędzy datą startu, a datą końca czynności upłynęło mniej niż 7 dni, jeżeli 7 dni i więcej kolorem czerwonym.
This comment was minimized by the moderator on the site
Cześć, mierzę się z problemem warunkowego podświetlania daty, np.: w kolumnie A mam datę startu danej czynności np. 01.01.2023, w kolumnie B mam datę końca danej czynności np. 07.01.2023 i chodziłoby mi o to, żeby wyróżnić warunkowo np. kolorem zielonym datę w kolumnie B jeżeli pomiędzy datą startu, a datą końca czynności upłynęło mniej niż 7 dni, jeżeli 7 dni i więcej kolorem czerwonym.
This comment was minimized by the moderator on the site
Ciao, come posso utilizzare il conditional formatting per evidenziare il mese corrente e il mese successivo?
This comment was minimized by the moderator on the site
Hi, Michela,
highlight the date in current month, please use formula =TEXT(TODAY(),"m")-TEXT(A1,"m")=0 in conditional formatting new rule dialog, and select a color such as yellow to outstanding the dates.
highlight the date in next month, use formula =TEXT(A1,"m")-TEXT(TODAY(),"m")=1 in conditional formatting new rule dialog, and select a color such as green to outstanding the dates.
see screenshot:
https://cdn.extendoffice.com/images/stories/comments/sun-comment/doc-highlight-current-month.png
This comment was minimized by the moderator on the site
Hello there! I have been searching everywhere for an answer to my problem. I really hope that you can help. I have a column of dates that have taken place in the past. It was when a medical fit test was performed. Those need to be done every two years. What I would like to do is have the dates highlight the box Yellow when they are within being 30 days due, and then Red as soon as they are past due. (So if the date in the box is 1/1/2021, it would turn yellow on 12/1/22. It would then turn red on 1/2/23) These dates are a column in a database so I can't just put a date in a cell to be the reference in the formula. I can only use the cell with the date itself. My brain has melted trying to figure this out, please help. I've gone in Excel formula circles and keep coming up with nothing.

I also have a second column that I need to do the same thing with where it happens on a yearly basis.

Any help will be appreciated. Thank you
This comment was minimized by the moderator on the site
Hi, Kris, create two rules in the conditional formatting dialog:
=AND(0<DATE(YEAR($A1)+2,MONTH($A1),DAY($A1))-TODAY(),DATE(YEAR($A1)+2,MONTH($A1),DAY($A1))-TODAY()<=30) using this formula and choose yellow filled color to mark the within 30 days due
=(DATE(YEAR(A1)+2,MONTH(A1),DAY(A1))<TODAY()) using this formula and choose red filled color to mark the past due
This comment was minimized by the moderator on the site
Hola!

como puedo hacer una formula para que si columna D es igual a la comuna E sea verdadero, pero si columna A + 90 dias es igual al columna E siga siendo verdadero de lo contrario sea falso, gracias.
This comment was minimized by the moderator on the site
Hi, try this formula:=IFERROR(IFS(E2=D2,"TRUE",E2=A2+90,"TRUE"),"""FALSE")
Notice that if you are not in other lagnuage version, maybe you need to transform the formula to your local language.
This comment was minimized by the moderator on the site
ERP PO No. Region Update-1 Supplier PIC Note To Receiver PO Age
1091BPA6438143-121 Bali - Lombok Not Yet Implement PS2MS XL 31
1091BPA6438143-123 Bali - Lombok Not Yet Implement Lumpsum 31
1091BPA6438143-124 Bali - Lombok Not Yet Implement Service Package 31
1091BPA6438143-125 Bali - Lombok Not Yet Implement Battery Maintenance 31
1091BPA6438143-127 Bali - Lombok Not Yet Implement MS Dismantle Board 22

kalau cara conditional formating untuk PO aging Lebih dari 70 gimana ya, tapi di file pivot, karena database saya untuk po aging 70 itu pake rumus =IFERROR(DATEDIF(NOW();B56;"d");""&DATEDIF(B56;NOW();"d")) jadi saat saya conditional formating aging lebih dari 70 dengan warna merah itu tidak ke detack di pivotnya,
mohon bantuannya😁
This comment was minimized by the moderator on the site
Bonjour,
je cherche dans GOOGLE SHEET à faire une mise en forme conditionnelle par rapport à une date; je cherche à faire en sorte que quand la date inscrite dans une case dépasse 15jrs alors elle devienne rouge. (01/08/22 dans la case, quand nous sommes le 16/08/22 je voudrais que la case devienne rouge)

merci d'avance.
This comment was minimized by the moderator on the site
Hi, vex, sorry that I only can reply with English since I do not know French. Supposing you want to format all dates that over 15 days based on a date 7/21/2022, you may firstly, change the date 7/21/2022 to a number, 44763, then select the dates that you want to highlight, click Format > Conditional Formatting, and choose Custom formula is in the Format Rules section, type B2>44763+15, and choose red color. See the screenshot:
https://www.extendoffice.com/images/stories/comments/sun-comment/doc_google_sheet_conditional_formatting.png
Hope can help you.
This comment was minimized by the moderator on the site
Bonjour, j'ai téléchargé un document excel pour la gestion des congés: Shift staff. Je voudrais que certaines dates soient conditionnées pour rester inactives chaque année (il s'agit des congés légaux comme le 1er janvier ou le 15 aout) - actuellement je ne peux conditonner que les jours de la semaine, pas les dates - pouvez-vous m'aider?

Merci beaucoup

Pascale
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