Skip to main content

Conas fad na seirbhíse ón dáta fruilithe in Excel a ríomh?

Má tá raon sonraí agat lena n-áirítear ainmneacha na bhfostaithe agus an dáta a ndeachaigh siad le do chuideachta i mbileog oibre, anois, b’fhéidir gur mhaith leat fad a seirbhíse a ríomh, ciallaíonn sé a fháil cé mhéad bliain agus mí a d’oibrigh fostaí do do chuideachta. An t-alt seo, labhróidh mé faoi mhodh gasta chun an post seo a réiteach duitse.

Ríomh fad na seirbhíse ón dáta fruilithe le feidhm YEARFRAC

Ríomh fad na seirbhíse ón dáta fruilithe le feidhm DATEDIF

Ríomh fad na seirbhíse ón dáta fruilithe go dtí an lá inniu le feidhm DATEDIF

Ríomh fad na seirbhíse ón dáta fruilithe le gné iontach


Ríomh fad na seirbhíse ón dáta fruilithe le feidhm YEARFRAC

Chun fad na seirbhíse ón dáta fruilithe agus dáta sonrach a ríomh, is féidir le feidhm YEARFRAC cabhrú leat.

Iontráil nó cóipeáil an fhoirmle seo a leanas i gcill bhán:

=INT(YEARFRAC(B2,C2))

nótaí: San fhoirmle thuas, B2 is é an cille dáta fruilithe agus C2 Is é an cill dáta deiridh.

Ansin tarraing an láimhseáil líonta chun an fromula a chóipeáil go cealla eile atá uait, agus gheobhaidh tú fad seirbhíse an duine i gceann blianta.


Ríomh fad na seirbhíse ón dáta fruilithe le feidhm DATEDIF

Más gá duit fad na seirbhíse a ríomh i mblianta agus míonna cruinn, is féidir le feidhm DATEDIF in Excel fabhar a thabhairt duit.

Ríomh fad na seirbhíse i mblianta:

Iontráil nó cóipeáil an fhoirmle seo a leanas i gcill bhán:

=DATEDIF(B2, C2, "y")& " Years"


Ríomh fad na seirbhíse i mblianta agus i míonna:

Cuir an fhoirmle seo a leanas i bhfeidhm:

=DATEDIF(B2,C2,"y")&" Years, "&DATEDIF(B2,C2,"ym")&" Months"


Ríomh fad na seirbhíse i mblianta, míonna agus laethanta:

Cuir an fhoirmle seo a leanas i bhfeidhm:

=DATEDIF(B2,C2,"y") & " Years, " & DATEDIF(B2,C2,"ym") & " Months, " & DATEDIF(B2,C2,"md") & " Days"

nótaí: San fhoirmle thuas, B2 is é an cille dáta fruilithe agus C2 Is é an cill dáta deiridh.


Ríomh fad na seirbhíse ón dáta fruilithe go dtí an lá inniu le feidhm DATEDIF

Rudaí, b’fhéidir gur mhaith leat fad na seirbhíse a ríomh ón dáta fruilithe go dtí an lá inniu, mar sin, gach lá a osclaíonn tú an bhileog oibre nuashonrófar fad na seirbhíse go huathoibríoch. Sa chás seo, ba cheart duit an fheidhm TODAY a chomhcheangal laistigh den fheidhm DATEDIF.

Cuir ceann ar bith thíos na foirmlí i bhfeidhm ar do riachtanas:

=DATEDIF(B4, TODAY(), "y")& " Years"
= SONRAÍ (B4, TODAY (), "y") & "Blianta," & DATEDIF (B4, TODAY (), "ym") & "Míonna"
= SONRAÍ (B6, TODAY (), "y") & "Years," & DATEDIF (B4, TODAY (), "ym") & "Months," & DATEDIF (B4, TODAY (), "md") & "Laethanta"


Ríomh fad na seirbhíse ón dáta fruilithe le gné iontach

Tá sé deacair duit an oiread sin foirmlí a mheabhrú, ach má tá Kutools le haghaidh Excel, Lena Dáta & Am Cúntóir gné, is féidir leat fad na seirbhíse a ríomh go tapa i mblianta, míonna, laethanta, blianta + míonna + laethanta nó formáidí eile de réir mar a theastaíonn uait.

Nóta:Chun é seo a chur i bhfeidhm Dáta & Am Cúntóir, ar dtús, ba cheart duit an Kutools le haghaidh Excel, agus ansin an ghné a chur i bhfeidhm go tapa agus go héasca.

Tar éis a shuiteáil Kutools le haghaidh Excel, déan mar seo le do thoil:

1. Cliceáil cill inar mian leat an toradh a aimsiú, agus ansin cliceáil KutoolsCúntóir Foirmle > Cúntóir Dáta & Am, féach ar an scáileán:

2. Sa an Dáta & Am Cúntóir bosca dialóige, déan na hoibríochtaí seo a leanas:

  • seiceáil Difríocht rogha ón cineál alt;
  • sa Ionchur argóintí boscaí téacs, roghnaigh na cealla ina bhfuil an dáta fruilithe agus an dáta deiridh ar leithligh;
  • Ansin, roghnaigh an cineál toradh aschuir de réir mar a theastaíonn uait. Mar shampla, is féidir leat fad na seirbhíse a fháil i mblianta, míonna, blianta + míonna + laethanta, blianta + míonna agus mar sin de.

3. Tar éis na socruithe a chríochnú, cliceáil OK cnaipe, agus gheobhaidh tú an chéad toradh ríofa, ansin, ní gá duit ach an láimhseáil líonta a tharraingt chun an fhoirmle seo a líonadh chun cealla a thástáil, agus anois gheobhaidh tú an toradh seo a leanas de réir mar a theastaíonn uait:

Cliceáil chun Íoslódáil Kutools le haghaidh Excel agus triail saor in aisce Anois!


Earraí níos coibhneasta:

  • Líon na Laethanta / Laethanta Oibre / Deireadh Seachtaine Idir Dhá Dáta
  • Ar theastaigh uait riamh líon na laethanta idir dhá dháta in Excel a chomhaireamh? D’fhéadfadh sé a bheith, uaireanta, nach dteastaíonn uait ach na laethanta oibre a ríomh idir dhá dháta, agus am éigin, ní gá duit ach laethanta an deireadh seachtaine a chomhaireamh idir an dá dháta. Conas a d’fhéadfá líon na laethanta idir dhá dháta a chomhaireamh i riocht áirithe?
  • Ríomh Uaireanta Laethanta agus Miontuairiscí Idir Dhá Dáta
  • Ag ceapadh, tá dhá cholún de chealla ama dáta agat, agus anois, ba mhaith leat an difríocht i laethanta, uaireanta agus nóiméid idir an dá chill ama dáta seo a ríomh mar a thaispeántar ar an scáileán a leanas. An t-alt seo, labhróidh mé faoi roinnt modhanna chun an tasc seo a réiteach duitse.

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 (20)
Rated 5 out of 5 · 1 ratings
This comment was minimized by the moderator on the site
First, thank you very much for helping us!

I am trying to use the formula for years and months of service (=DATEDIF(B2,C2,"y")&" Years, "&DATEDIF(B2,C2,"ym")&" Months") which works great, but I would like to add that line and another line that just has numbers in it. Is that possible? For instance: The formula =DATEDIF(B2,C2,"y")&" Years, "&DATEDIF(B2,C2,"ym")&" Months" is located in D2 and I would like to add number of years and months of service from another agency in E2 with the total sum in F2.

All assistance is great appreciated.
Rated 5 out of 5
This comment was minimized by the moderator on the site
If I have a mixed list of employees still with the company (with start date only) and employees no longer with the company (with start and end date), is there a formula for calculating length of service using current date unless there is an end date, in which case the end date would be used in place of the current date to calculate total length of service from start to end?
This comment was minimized by the moderator on the site
what version of Excel can i get this? I am unable to get the function on Excel 2016
This comment was minimized by the moderator on the site
Hello,
The Excel version in the example is Excel 2010. The DATEDIF function is not available in Excel 2013 and later versions.
DATEDIF is not a standard function and hence not part of functions library and so no documentation. Microsoft doesn't promote to use this function as it gives incorrect results in few circumstances.

This function does not appear in the 'Insert Function' dialog box and is not recognised in the 'Function Arguments' dialog box.
The accuracy of this function was improved slightly in Excel 2010 but some of the bugs were never fixed.

Hope it helps. Have a nice day.
Sincerely,
Mandy
This comment was minimized by the moderator on the site
After the years of service has been determined. How do you calculate the persons service computation date (SCD). Is there a formula to subtract the years of service from the persons new appointment date to get their SCD leave date?
This comment was minimized by the moderator on the site
i m in problem; I am new joining to Govt. dept. as Junior Clerk in Accounts site: I want to calculate to make service end period, and after to add extra months years days in service period given by government relaxation period to complete service 9 to 10 years as (the total service is 8 year, 8 months, 18 days) but govt. give 10 months and 28 days to compile the service period for allowing the come in to as pensioner. Thanks to you for solve that problem.
This comment was minimized by the moderator on the site
Dear have a good health to you. I requesting for adjust more months days year in less service length 9 years to make complet 10 years. please tell about it.
This comment was minimized by the moderator on the site
How can I just highlight the cells if the yearly anniversary is within a week? For example They started on 01/10/2020 and I want the start date to be highlighted yellow if the date is 24/09 in each year and then turn red if the anniversary has passed, so turn red 7 days after the 1st?
This comment was minimized by the moderator on the site
Work Services Calculation 1 month different in formula
This comment was minimized by the moderator on the site
If service is 25 Year 07 Months 05 Days than i calculate no. of year and the result is 25, but need to calculate/consider full year if months is equal to 06 months or exceed. After calculation
This comment was minimized by the moderator on the site
For calculating the length of services in years, months and days with start date and end date, I noted that the result for James is 20 days. I would like to confirm if the end date means separation effective date (Day 1 after termination/separation) or last employment date.
Both start (hire date) and end date (last employment date "LED") should be inclusive in the calculation. It is expected to return 21 days but not 20 days as it counted no. of days from 12/11/2025 to 12/31/2025.
How to change the formula? Or should it be used termination effective date (LED + 1 day) as cell C2, instead of input "LED" as end date?
This comment was minimized by the moderator on the site
Florence, you are correct, and the tutorial above is simply wrong. When calculating years of service/length of service, the calculation must be inclusive of the last day worked. Using basic date subtraction formulas tell the *difference* between 2 dates (which will short the length of service by 1 day). For example, if someone stated the 1st, and ended the following day (2nd), taking the date difference would be 1 day (when they actually worked 2 days). Another example: If you use the method above for someone who started work on January 1st, and their last day was December 31st, it will not show that they've worked a complete year -- which is of course an error. The way to get the correct answer is to add +1 to the end date. So, everywhere you see C2 above should be C2+1. This is a significant problem where people everywhere are using this incorrect formula for calculating years of service. The formula is typically correct except the edge case of the last day of employment being the exact day before their start day. I'm in a dispute with my former employer over this very issue. Formulas like this should always be checked for edge cases like worked 1 day, 2 days, worked exactly 1 year, the anniversary date, day before/after, etc. When doing this, you will see all sorts of problems like the one you described.
This comment was minimized by the moderator on the site
Hi, Florence,If you want to include both the start date and end date when calculating, you just need add 1 after the days part as below formula:=DATEDIF(B2,C2,"y") & " Years, " & DATEDIF(B2,C2,"ym") & " Months, " & DATEDIF(B2,C2,"md")+1 & " Days"
Please try, hope it can help you!
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