Date Ranges

Scarpacci

New Member
Joined
Dec 23, 2003
Messages
5
In Excel 2002 I have a column that has Unique Account #s and an other column that lists their invoice date.

Example:
Account# Invoice_Date
12345 7/11/2003
12345 8/11/2003
12345 11/11/2003
12345 12/11/2003

Is there a away that I can find the Account # and the Invoices that are missing with the Criteria listed above? So I wanted to be able to find Accounts with missing invoices and what invoices are missing by invoice date.
 

Excel Facts

Test for Multiple Conditions in IF?
Use AND(test, test, test, test) or OR(test, test, test, ...) as the logical_test argument of IF.
What criteria are you refering to ?
What indicates , to you, that an invoice is missing ?
 
Upvote 0
See how in my example I had 8/11/2003 and then it jumped to 11/11/2003. I want to find a way to identify that the 9/11/2003 and 10/11/2003 invoices are missing automatically.

Thanks for responding!

S
 
Upvote 0
Scarpacci said:
See how in my example I had 8/11/2003 and then it jumped to 11/11/2003. I want to find a way to identify that the 9/11/2003 and 10/11/2003 invoices are missing automatically.

Thanks for responding!

S

How do the missing dates that are in fact non-workday or holiday dates fit the picture?
 
Upvote 0
They don't matter. The invoices are automatically generated same date each month. For different accounts the dates can be different, but for each account its bill day remains the same, the date just changes. Make sense?

thanks

S
 
Upvote 0
Scarpacci said:
They don't matter. The invoices are automatically generated same date each month. For different accounts the dates can be different, but for each account its bill day remains the same, the date just changes. Make sense?

thanks

S

What follows is rather elaborate, but it does the job...

The scheme requires that the data is sorted on Account#.

Data
Book12
ABCD
1Account#Invoice_Date
21234511-Jul-03
31234511-Aug-03
41234511-Nov-03
51234511-Dec-03
61236713-Jul-03
71236713-Aug-03
81300124-Jul-03
91300124-Aug-03
Data


Audit
Book12
ABCDEF
1AuditFullI_DateList0MissingDates
2Account#1234511-Jul-03 11-Sep-03
3Start111-Aug-03 11-Oct-03
4End411-Sep-031 
5Min11-Jul-0311-Oct-032 
6Max11-Dec-0311-Nov-03  
7N611-Dec-03  
8Missing2   
9   
10   
11   
12   
Audit


Formulas...

B3:

=MATCH(B2,Data!A2:A9,0)

B4:

=MATCH(B2,Data!A2:A9)

B5:

=MIN(INDEX(Data!B2:B9,B3):INDEX(Data!B2:B9,B4))

B6:

=MAX(INDEX(Data!B2:B9,B3):INDEX(Data!B2:B9,B4))

B7:

=DATEDIF(B5,B6,"m")+1

B8:

=B7-COUNT(INDEX(Data!B2:B9,B3):INDEX(Data!B2:B9,B4))

D2:

=IF(COUNT($D$1:D1)<$B$7,EDATE($B$5,COUNT($D$1:D1)),"")

E1 must house a 0.

E2:

=IF(N(D2)*ISNA(MATCH(D2,INDEX(Data!$B$2:$B$9,$B$3):INDEX(Data!$B$2:$B$9,$B$4),0)),LOOKUP(9.99999999999999E+307,$E$1:E1)+1,"")

F2:

=IF(ROW()-ROW($F$2)+1<=$B$8,INDEX($D$2:$D$12,MATCH(ROW()-ROW($F$2)+1,$E$2:$E$12,0)),"")
 
Upvote 0
When you say a column has unique Acc numbers does that the account number in that one column is the same thu out the range? So you have a seperate column for each account Number ? If so what columns are you using ?
 
Upvote 0

Forum statistics

Threads
1,203,605
Messages
6,056,234
Members
444,852
Latest member
MJaspering

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