Need Excel to Stop Counting Years of Service for Termed Employees

JHawks8221

New Member
Joined
May 12, 2017
Messages
9
Office Version
  1. 365
Good Morning,

I've been browsing the forum and I'm having difficulty trying to find an answer to what I am trying to do with my workbook. I'm sure it's a very simple answer, but I'm hoping someone may be able to help me please.

I have an attendance chart that also calculates how long an employee has been with our company using the formula: =DATEDIF(E10,$U$4,"Y") in my H Cell.

I am putting the employment termination date in my F column. So, if Column F has a value in it, I'd like to have the formula in my H cell stop calculations.

Any help would be tremendously appreciated. Thank-you very much and have a nice day!
 

Excel Facts

Copy PDF to Excel
Select data in PDF. Paste to Microsoft Word. Copy from Word and paste to Excel.
Welcome to the Board!

I an guessing cell U4 is your current date?
If so, try:
Code:
[COLOR=#333333]=DATEDIF(E10,IF(F10,F10,$U$4),"Y")[/COLOR]
 
Last edited:
Upvote 0

Forum statistics

Threads
1,224,823
Messages
6,181,181
Members
453,022
Latest member
Mohamed Magdi Tawfiq Emam

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top