List of dates and non-continuous date ranges

dreamerman

New Member
Joined
Jun 8, 2014
Messages
4
Hi, I am checking a list of overdue receivables against start/end contract dates. Would be easier if contract periods are continuous but sales people don't think like accountants do. Anyways, in the example (pic), column A is the list of overdue invoices of a client. Column C and D are start and end dates of the client's contract. How do I formularise so that I can find out if overdue invoices are covered under contracts or outside contract periods? There are 200+ overdue invoices over 50+ clients so I can't possible do it manually. Any help will be appreciated.
 

Attachments

  • ExcelCapture.PNG
    ExcelCapture.PNG
    6.9 KB · Views: 18

Excel Facts

Remove leading & trailing spaces
Save as CSV to remove all leading and trailing spaces. It is faster than using TRIM().
Hi,
In cell E2 use this formula
Code:
=IF(AND(A2>=C2,A2<=D2),"within contract","outside")

hope this helps
Paul.
 
Upvote 0
Hi,
In cell E2 use this formula
Code:
=IF(AND(A2>=C2,A2<=D2),"within contract","outside")

hope this helps
Paul.
Thanks Paul. Unfortunately it is not row by row but to see it dates in A1:A6 is within date ranges from C1:D6.
 
Upvote 0
is that what you want ?
InvoiceDateContractStartContractEndContractStartContractEndSubtractionListDates
01/03/202001/02/202030/11/202001/02/202030/11/202030301/03/2020
15/01/202001/11/201831/12/201901/03/201815/10/201822805/06/2018
31/10/201801/03/201815/10/201801/08/201615/05/201728701/04/2017
05/06/201818/05/201701/02/2018
01/04/201701/08/201615/05/2017

ListDates contain Dates in the ranges Start/End
 
Upvote 0
is that what you want ?
Hi Paul, I think below image explains my situation better. What will make my life easy is against each date in column A whether said date is within range of dates in column C:D. Cheers
 

Attachments

  • ExcelCapture.PNG
    ExcelCapture.PNG
    9.7 KB · Views: 7
Upvote 0
read how to use XL2BB to post your data AND expected result
update your profile (Account details) about Excel version and OS
 
Upvote 0
you can edit your post and change (10 minutes)
FYI: Members with a low post count cannot.

@dreamerman
Try this

20 11 11.xlsm
ABCD
21/03/2020In1/02/202030/11/2020
315/01/2020Out1/11/201831/12/2019
41/05/2019In1/03/201815/10/2018
531/10/2018Out18/05/20171/02/2018
61/08/2018In1/08/201615/05/2017
75/06/2018In
816/05/2017Out
91/04/2017In
In Out
Cell Formulas
RangeFormula
B2:B9B2=IF(COUNTIFS(C$2:C$6,"<="&A2,D$2:D$6,">="&A2),"In","Out")
 
Upvote 0

Forum statistics

Threads
1,215,054
Messages
6,122,901
Members
449,097
Latest member
dbomb1414

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