Number of Days Between a Number of Days

gr8whthunter76

New Member
Joined
Feb 16, 2021
Messages
22
Office Version
  1. 365
Platform
  1. Windows
First, I can not believe how incredibly smart you all are on here. I am pretty good with excel.......I thought until I read what you all talk about and do, holy cow. I'm going to press my luck with 2 questions in one day. Your first solution worked swimmingly but now I have another hang up. In c2 I have 10/01/2016, d2 I have 09/30/2017, e2 09/01/2017, f2 04/30/2019. What I am looking for is the formula to figure out how many days from e2 to f2 fall between c2 and d2. In the next row I have c3 10/01/2017 d3 09/30/2018 and same in e2 and f2 but only now in e3 and f3. I tried to upload a picture or workbook and stupid work computer won't allow it. Hate this thing. If you can help, well I can't do anything other then say thank you!!!!!!
 

Attachments

  • issue.PNG
    issue.PNG
    4.8 KB · Views: 3

Excel Facts

When did Power Query debut in Excel?
Although it was an add-in in Excel 2010 & Excel 2013, Power Query became a part of Excel in 2016, in Data, Get & Transform Data.
Hi,

May be something like this:

Book3.xlsx
CDEFG
210/1/20169/30/20179/1/20174/30/201929
310/1/20179/30/20189/1/20174/30/2019364
Sheet767
Cell Formulas
RangeFormula
G2:G3G2=DAYS(MIN(D2,F2),MAX(C2,E2))
 
Upvote 0
Solution
You're welcome, thanks for the feedback.

In case you have dates in E:F that are Outside of C:D, as in my sample C4:F4 below, this version of my formula will produce a 0 result (rather than a negative):

Book3.xlsx
CDEFG
210/1/20169/30/20179/1/20174/30/201929
310/1/20179/30/20189/1/20174/30/2019364
410/1/20199/30/20209/1/20174/30/20190
Sheet767
Cell Formulas
RangeFormula
G2:G4G2=MAX(DAYS(MIN(D2,F2),MAX(C2,E2)),0)
 
Upvote 0

Forum statistics

Threads
1,214,932
Messages
6,122,323
Members
449,077
Latest member
jmsotelo

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