How to count number of days

Tryingtoresolve

New Member
Joined
Aug 28, 2023
Messages
24
Office Version
  1. 365
Platform
  1. Windows
I need it to displaybl the quantity number of days in M2 if L2 is an empty cell M2 counts the days between J2 and Today but once a date is entered into L2 it M2 counts the number of days instead between J2 and L2 the below formula works fine if L2 is populated this is the formula I am using

=IF(L2="",TODAY()-J2,L2-J2)
 

Attachments

  • image003.png
    image003.png
    8.1 KB · Views: 5

Excel Facts

Excel Wisdom
Using a mouse in Excel is the work equivalent of wearing a lanyard when you first get to college
That formula & the results look fine. In what way do you think it's wrong?
 
Upvote 0
You're welcome & thanks for the feedback.
 
Upvote 0

Forum statistics

Threads
1,215,324
Messages
6,124,250
Members
449,149
Latest member
mwdbActuary

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