finding all missing check numbers

  • Thread starter Thread starter Jim
  • Start date Start date
J

Jim

Is there an easy macro to get a list of missing(outstanding) check numbers.
I can get a list of recent cleared check numbers and their amounts. It would
be nice to get a list of missing checks in a column so I could just enter
the missing checks amounts and have a sum of the total amount still
outstanding.

For example the banks list might have:
11188 with the amounts too
11186
11185
11183
11182
11181
11180

Is there a macro that would tell give me a list of 11187 & 11184 in a column
so I could list the corresponding amounts ans sum them? Thanks
 
One example. Select the list of check numbers that are cleared and this will
prompt for the lowest and highest check number and put the results in Column
D (change the destination range as necessary).

Sub Test()
Dim lngFirst As Long
Dim lngLast As Long
Dim i As Long
Dim lngCount As Long
Dim rngData As Range

Set rngData = Selection
lngFirst = CLng(InputBox("First Check Number"))
lngLast = CLng(InputBox("Last Check Number"))
lngCount = 0

For i = lngFirst To lngLast
If Not IsNumeric(Application.Match(i, _
rngData, 0)) Then
lngcount = lngcount + 1
Range("D" & lngcount).Value = i
End If
Next i

End Sub
 
Thanks for the quick response!!


JMB said:
One example. Select the list of check numbers that are cleared and this
will
prompt for the lowest and highest check number and put the results in
Column
D (change the destination range as necessary).

Sub Test()
Dim lngFirst As Long
Dim lngLast As Long
Dim i As Long
Dim lngCount As Long
Dim rngData As Range

Set rngData = Selection
lngFirst = CLng(InputBox("First Check Number"))
lngLast = CLng(InputBox("Last Check Number"))
lngCount = 0

For i = lngFirst To lngLast
If Not IsNumeric(Application.Match(i, _
rngData, 0)) Then
lngcount = lngcount + 1
Range("D" & lngcount).Value = i
End If
Next i

End Sub
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads

Multiple Criteria for worksheet 3
Access MS Access - Is this possible? 1
Number Matching, one to many 3
get the sum of the value by filtering 3 columns 2
VB coding 3
Simple Macro 2
Macro for Bank Reconciliation 2
vlookup 1

Back
Top