Calculate Difference Between Two Dates - empty cells show today

buer4499

New Member
Joined
Jun 15, 2021
Messages
13
Office Version
  1. 365
Platform
  1. Windows
Hello,

I am struggling to find a formular which shows the following:

First NameLast NameStart DateLeave DateTenure (Days)
FIRST 1LAST 1
07/05/2016​
FIRST 2LAST 2
10/10/2016​
01/05/2021​
1664
FIRST 3LAST 3
23/08/2017​
23/08/2018​
365
FIRST 4LAST 4
13/11/2017​
FIRST 5LAST 5
11/01/2018​

If D-C = Tenure in Days. If no leave date, show tenure up to today's date.

So D-C=Tenure if no D show C to today.

If that makes sense?

Thanks,
 

Excel Facts

Spell Check in Excel
Press F7 to start spell check in Excel. Be careful, by default, Excel does not check Capitalized Werds (whoops)
How about
Excel Formula:
=IF(D2="",TODAY(),D2)-C2
 
Upvote 0
As long as the leave date cells are empty,
Excel Formula:
=MIN(TODAY(),D2)-C2
 
Upvote 0

Forum statistics

Threads
1,214,542
Messages
6,120,116
Members
448,945
Latest member
Vmanchoppy

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