Ga naar hoofdinhoud

Hoe bereken je de duur van de service vanaf de huurdatum in Excel?

Als u een reeks gegevens hebt, waaronder de namen van werknemers en de datum waarop ze bij uw bedrijf zijn gekomen, in een werkblad, wilt u misschien hun anciënniteit berekenen, dit betekent dat u moet weten hoeveel jaar en maanden een werknemer voor uw bedrijf heeft gewerkt. In dit artikel zal ik het hebben over een snelle methode om deze klus voor u op te lossen.

Bereken de duur van het dienstverband vanaf de huurdatum met de functie JAARDEEL

Bereken de duur van de dienst vanaf de huurdatum met de DATEDIF-functie

Bereken de duur van de dienst vanaf de huurdatum tot vandaag met de DATEDIF-functie

Bereken de duur van het dienstverband vanaf de huurdatum met een geweldige functie


Bereken de duur van het dienstverband vanaf de huurdatum met de functie JAARDEEL

Om de anciënniteit vanaf de huurdatum en een specifieke datum te berekenen, kan de functie JAARDEEL U helpen.

Typ of kopieer de volgende formule in een lege cel:

=INT(YEARFRAC(B2,C2))

Note: In de bovenstaande formule, B2 is de huurdatumcel en C2 is de einddatumcel.

Sleep vervolgens de vulgreep om de fromula naar andere cellen te kopiëren die u nodig hebt, en u krijgt de dienstduur van de persoon in jaren.


Bereken de duur van de dienst vanaf de huurdatum met de DATEDIF-functie

Als u de anciënniteit in exacte jaren, maanden en dagen moet berekenen, kan de DATEDIF-functie in Excel u een plezier doen.

Bereken de anciënniteit in jaren:

Typ of kopieer de volgende formule in een lege cel:

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


Bereken de anciënniteit in jaren en maanden:

Pas de volgende formule toe:

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


Bereken de anciënniteit in jaren, maanden en dagen:

Pas de volgende formule toe:

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

Note: In de bovenstaande formule, B2 is de huurdatumcel en C2 is de einddatumcel.


Bereken de duur van de dienst vanaf de huurdatum tot vandaag met de DATEDIF-functie

Op sommige punten wilt u misschien de anciënniteit berekenen vanaf de huurdatum tot vandaag, dus elke dag dat u het werkblad opent, wordt de anciënniteit automatisch bijgewerkt. In dit geval moet u de TODAY-functie combineren met de DATEDIF-functie.

Pas een van de onderstaande formules toe op uw behoefte:

=DATEDIF(B4, TODAY(), "y")& " Years"
= DATEDIF (B4, TODAY (), "y") & "Years", & DATEDIF (B4, TODAY (), "ym") & "Maanden"
= DATEDIF (B6, TODAY (), "y") & "Years", & DATEDIF (B4, TODAY (), "ym") & "Maanden" & DATEDIF (B4, TODAY (), "md") & "Dagen"


Bereken de duur van het dienstverband vanaf de huurdatum met een geweldige functie

Het is wat moeilijk voor je om zoveel formules te onthouden, maar als je dat hebt gedaan Kutools for Excel, Met Helper voor datum en tijd functie, kunt u snel de duur van het dienstverband berekenen in jaren, maanden, dagen, jaren + maanden + dagen of andere formaten die u nodig hebt.

Opmerking:Om dit toe te passen Helper voor datum en tijd, ten eerste moet u het Kutools for Excelen pas de functie vervolgens snel en gemakkelijk toe.

Na het installeren van Kutools for Excel, doe dit als volgt:

1. Klik op een cel waarin u het resultaat wilt zoeken en klik vervolgens op KutoolsFormule Helper > Helper voor datum en tijd, zie screenshot:

2. In de Helper voor datum en tijd dialoogvenster voert u de volgende bewerkingen uit:

  • Check Verschil optie van de Type sectie;
  • In het Argumenten ingevoerd tekstvakken, selecteer de cellen die de huurdatum en einddatum afzonderlijk bevatten;
  • Kies vervolgens het type uitvoerresultaat dat u nodig heeft. U kunt bijvoorbeeld de anciënniteit krijgen in jaren, maanden, jaren + maanden + dagen, jaren + maanden enzovoort.

3. Klik na het voltooien van de instellingen op OK knop, en je krijgt het eerste berekende resultaat, dan hoef je alleen maar de vulgreep te slepen om deze formule te vullen om cellen te testen, en nu krijg je het volgende resultaat als je nodig hebt:

Klik om Kutools voor Excel en nu gratis uit te proberen!


Meer relatieve artikelen:

  • Tel het aantal dagen / werkdagen / weekends tussen twee datums
  • Heb je ooit het aantal dagen tussen twee datums in Excel moeten tellen? Misschien wilt u soms alleen de werkdagen tussen twee datums berekenen, en soms hoeft u alleen de weekenddagen tussen de twee datums te tellen. Hoe kon je het aantal dagen tussen twee datums in een bepaalde toestand tellen?
  • Bereken dagen, uren en minuten tussen twee datums
  • Stel dat u twee kolommen met datum-tijdcellen hebt en nu wilt u het verschil in dagen, uren en minuten tussen deze twee datum-tijdcellen berekenen zoals in het volgende screenshot. In dit artikel zal ik enkele methoden bespreken om deze taak voor u op te lossen.

Beste Office-productiviteitstools

🤖 Kutools AI-assistent: Een revolutie teweegbrengen in de data-analyse op basis van: Intelligente uitvoering   |  Genereer code  |  Aangepaste formules maken  |  Analyseer gegevens en genereer grafieken  |  Roep Kutools-functies aan...
Populaire functies: Zoek, markeer of identificeer duplicaten   |  Verwijder lege rijen   |  Combineer kolommen of cellen zonder gegevens te verliezen   |   Ronde zonder formule ...
Super opzoeken: Meerdere criteria VLookup    VLookup met meerdere waarden  |   VOpzoeken over meerdere bladen   |   Fuzzy opzoeken ....
Geavanceerde vervolgkeuzelijst: Maak snel een vervolgkeuzelijst   |  Afhankelijke vervolgkeuzelijst   |  Multi-select vervolgkeuzelijst ....
Kolom Beheerder: Voeg een specifiek aantal kolommen toe  |  Kolommen verplaatsen  |  Schakel de zichtbaarheidsstatus van verborgen kolommen in  |  Vergelijk bereiken en kolommen ...
Uitgelichte functies: Raster focus   |  Ontwerpweergave   |   Grote formulebalk    Werkmap- en bladbeheer   |  resource Library (Auto-tekst)   |  Datumkiezer   |  Combineer werkbladen   |  Cellen coderen/decoderen    Stuur e-mails per lijst   |  Super filter   |   Speciaal filter (filter vet/cursief/doorhalen...) ...
Top 15 gereedschapsets12 Tekst Tools (toe te voegen tekst, Tekens verwijderen, ...)   |   50+ tabel Types (Gantt Chart, ...)   |   40+ Praktisch Formules (Bereken leeftijd op basis van verjaardag, ...)   |   19 Invoeging Tools (QR-code invoegen, Afbeelding invoegen vanaf pad, ...)   |   12 Camper ombouw Tools (Getallen naar woorden, Currency Conversion, ...)   |   7 Samenvoegen en splitsen Tools (Geavanceerd Combineer rijen, Gespleten cellen, ...)   |   ... en meer

Geef uw Excel-vaardigheden een boost met Kutools voor Excel en ervaar efficiëntie als nooit tevoren. Kutools voor Excel biedt meer dan 300 geavanceerde functies om de productiviteit te verhogen en tijd te besparen.  Klik hier om de functie te krijgen die u het meest nodig heeft...

Omschrijving


Office-tabblad Brengt een interface met tabbladen naar Office en maakt uw werk veel gemakkelijker

  • Schakel bewerken en lezen met tabbladen in Word, Excel, PowerPoint in, Publisher, Access, Visio en Project.
  • Open en maak meerdere documenten in nieuwe tabbladen van hetzelfde venster in plaats van in nieuwe vensters.
  • Verhoogt uw productiviteit met 50% en vermindert honderden muisklikken voor u elke dag!
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