+ Reply to Thread
Results 1 to 15 of 15

Finding Delinquent Accounts from Excel Database and Posting them to a Separate Sheet

  1. #1
    Valued Forum Contributor unit285's Avatar
    Join Date
    10-29-2015
    Location
    TN
    MS-Off Ver
    Office 365
    Posts
    358

    Finding Delinquent Accounts from Excel Database and Posting them to a Separate Sheet

    Date Sort Test-New.xlsm

    Ok so here is a puzzle for a VBA Guru.. I have no idea how to proceed.. All I have done so far is create a command button that creates a new sheet called status when its clicked. In the Database1 Sheet there are accounts constantly being added and deleted, each row in Database1 is 1 account. I need a VBA Macro that can scan the Database1 sheet and locate any accounts that are delinquent and post some specific info from those accounts on the new status sheet.
    In the Database, "Column I" shows the beginning date of each account. Payments are due on a monthly basis and the exact due day is specified in "Column L". The attached sheet shows some fictitious accounts and i manually populated the status sheet to try and show what I need the status sheet to show from the delinquent accounts. Please post any questions and I will try to answer them as best i can to clarify what is needed. Any help is greatly appreciated!
    Attached Files Attached Files
    Last edited by unit285; 02-03-2016 at 02:18 PM.

  2. #2
    Forum Expert
    Join Date
    08-28-2014
    Location
    Texas, USA
    MS-Off Ver
    2016
    Posts
    1,796

    Re: Finding Delinquent Accounts from Excel Database and Posting them to a Separate Sheet

    Can you explain how the code would know that those 3 accounts in your example are 30 days late? I see the pink cells in your Database1 but I don't see how those blank cells relate to an account being delinquent, and how delinquent it is.
    I'm interested in starting a career working with VBA, if anyone knows of any opportunities!

  3. #3
    Valued Forum Contributor unit285's Avatar
    Join Date
    10-29-2015
    Location
    TN
    MS-Off Ver
    Office 365
    Posts
    358

    Re: Finding Delinquent Accounts from Excel Database and Posting them to a Separate Sheet

    The blank cells are missed payments, for example John's payment was due on the 10th of each month. Since his contract started on Jan 15, 2016(Database1!I2) his first payment would be due on Feb 10(Database1!L2) which is the 10th of the following month. Thereafter he is due to make a payment on the 10th of each month for the length of his term.(36 months) As you can see John missed his March & April Payments in my example sheet. I should have used last year dates in my sample sheet would have been less confusing. but basically in John's example you would take NOW() and subtract the amount of days till his last payment was due(March 10) and add 30 days for the next month, and thats how many days his account is delinquent. Am i making any sense?

    PS> I know I recorded a payment for John in January, this was an oversight on my part while I was making the sample file. Technically his first payment should have been made Feb 10.

    Maybe I can make it more clear with a new example.

    Austin has a contract that started on Jan 15, 2015
    His monthly payment is $100.00
    His due day is the 10th of each month
    His first payment is due Feb 10, 2015
    On Feb 8, 2015 Austin makes his $100.00 payment and his account is in good standing.
    His next payment is due March 10, 2015
    On March 11, 2015 Austin has still not made his March Payment and his account should now start showing up when the "Status" Sheet is generated. As of March 11, 2015 his account is 1 day delinquent.
    On April 11, 2015 he still has not made a payment, his account is now delinquent by 31 days and he owes $200.00 plus any late fees to get his account current. His Account should be showing up on the status sheet whenever its generated until he gets his account current again

    Hope this helps!
    Last edited by unit285; 02-02-2016 at 06:47 PM.

  4. #4
    Valued Forum Contributor unit285's Avatar
    Join Date
    10-29-2015
    Location
    TN
    MS-Off Ver
    Office 365
    Posts
    358

    Re: Finding Delinquent Accounts from Excel Database and Posting them to a Separate Sheet

    Date Sort Test-New.xlsm

    I have attached a better sample sheet here with some comments inserted in the sheets

  5. #5
    Forum Expert
    Join Date
    08-28-2014
    Location
    Texas, USA
    MS-Off Ver
    2016
    Posts
    1,796

    Re: Finding Delinquent Accounts from Excel Database and Posting them to a Separate Sheet

    Just because I asked the initial question, I'll respond here.

    For me, this is too much coding to do for free, and on top of that there are still a number of situations that haven't been addressed. Perhaps another user will feel differently.

    However, I'm sure there a a multitude of sub $50 accounting software programs out there that will do what you're wanting excel to do.

    Anyway, I wish you luck.

  6. #6
    Valued Forum Contributor unit285's Avatar
    Join Date
    10-29-2015
    Location
    TN
    MS-Off Ver
    Office 365
    Posts
    358

    Re: Finding Delinquent Accounts from Excel Database and Posting them to a Separate Sheet

    I may be willing to pay to get this done to my satisfaction. Can you tell me if what I'm asking is feasible? Can it be done for $50 ?

  7. #7
    Forum Expert
    Join Date
    08-28-2014
    Location
    Texas, USA
    MS-Off Ver
    2016
    Posts
    1,796

    Re: Finding Delinquent Accounts from Excel Database and Posting them to a Separate Sheet

    Is it doable? Sure. Can it be done for $50? If I was interested, I would charge substantially more than that, but a final bid would come only after a list of situations/questions was addressed.

    Just as an example (I don't need answers, just meant to show you that a lot stuff needs to be fleshed out):
    • Where is that $200 plus late fees coming from? Is it always $200? If not, what determines the number? Where are the late fees listed?
    • Is the account still delinquent if the balance is paid, but not the late fees?
    • Can a client pay double one month, then not be considered delinquent the next month? See, now we're talking about more than just looking for blank cells, we'd need to calculate expected balance vs. actual balance, etc. More code.
    • If the client didn't pay last months balance, but did pay this months, are they 1 day or 31 days delinquent? How does this affect the late fees? How are the feeds affected if the same thing happens the next month?


    And so on. There's just a ton of things to consider, things that I'm sure accounting software has already accounted (heh) for. Thus my suggestion.

  8. #8
    Valued Forum Contributor unit285's Avatar
    Join Date
    10-29-2015
    Location
    TN
    MS-Off Ver
    Office 365
    Posts
    358

    Re: Finding Delinquent Accounts from Excel Database and Posting them to a Separate Sheet

    The closest software that does what I want retails for over $2000.00 and your questions are completely valid and have simple answers.

  9. #9
    Forum Expert
    Join Date
    08-28-2014
    Location
    Texas, USA
    MS-Off Ver
    2016
    Posts
    1,796

    Re: Finding Delinquent Accounts from Excel Database and Posting them to a Separate Sheet

    The closest software that does what I want retails for over $2000.00
    Perhaps, and I'm sure you know more than me about accounting software, but just a glance at QuickenBooks webpage shows a listed feature as: "flag late payments & send reminders for overdue invoices". Anyway,

    your questions are completely valid and have simple answers.
    This is great news! I would suggest compiling answers for all of them, and additionally all other scenarios that you can think of, and posting them so that someone willing to tackle this project has a good idea of the scope and complexity of it.

    Again, best of luck.

  10. #10
    Forum Expert
    Join Date
    02-11-2014
    Location
    New York
    MS-Off Ver
    Excel 365 (Windows)
    Posts
    6,331

    Re: Finding Delinquent Accounts from Excel Database and Posting them to a Separate Sheet

    You have a really bad data structure, but one thing that you could consider is pre-filling your data range with formulas. For example, on your Database1 sheet, in cell X2, use this formula (based on your example date)

    =IF( DATE (YEAR ($I2), 1+ INT( ( COLUMN() - COLUMN( $X2) ) /3), DAY( $I2) ) < DATE( 2015, 6, 1), "Delinquent", "")

    You could expand that to include a cut-off date when the payment is no longer needed....(But in reality, use the current date, or a date in a cell that you can update to a date of interest

    =IF( DATE (YEAR ($I2), 1+ INT( ( COLUMN() - COLUMN( $X2) ) /3), DAY( $I2) ) < TODAY(), "Delinquent", "")

    Leave Y2 and Z2 empty, then copy X2:Z2 and paste for all the three column monthly groups. When a payment is made, the formula is overwritten, and the "Delinquint" will go away.

    Use CF for all your rows using the Formula option, with the formula

    Formula: copy to clipboard
    Please Login or Register  to view this content.

    to highlight entire rows that have one or more delinquent entries.

    Note that I had to insert a bunch of spaces into my formulas to get them to post here - not sure what the software disliked, but.....
    Last edited by Bernie Deitrick; 02-03-2016 at 04:05 PM.
    Bernie Deitrick
    Excel MVP 2000-2010

  11. #11
    Valued Forum Contributor unit285's Avatar
    Join Date
    10-29-2015
    Location
    TN
    MS-Off Ver
    Office 365
    Posts
    358

    Re: Finding Delinquent Accounts from Excel Database and Posting them to a Separate Sheet

    Thanks for your formula Bernie, I will play with it a bit and see if I can get it to do what I need.. My sample file shows just a fraction of what my worksheet can do now.. and yes I know the entire thing is poorly structured.. but 2 months ago I hardly knew what vba was at all :P So i feel like im making progress.. And to clarify walruseggman, This sheet is for "Rent to Own" so Quickbooks (which I have) does not help me at all.

    Q. Where is that $200 plus late fees coming from? Is it always $200? If not, what determines the number? Where are the late fees listed?
    Is the account still delinquent if the balance is paid, but not the late fees?
    A. I can code the Late Fee part myself, it is input by userform into the BH Column and merely needs to reflect that cell on the Status Sheet.

    Q. Can a client pay double one month, then not be considered delinquent the next month? See, now we're talking about more than just looking for blank cells, we'd need to calculate expected balance vs. actual balance, etc. More code.
    A. No
    Q. If the client didn't pay last months balance, but did pay this months, are they 1 day or 31 days delinquent? How does this affect the late fees?
    A. 31 Days
    Q. How are the feeds affected if the same thing happens the next month?
    A. The same scenario just repeats. Basically the Status Sheet is something that can be generated to give the secretary a list of customers to remind that their payments are due

    I would be willing to pay more then $50 to have this done. Probably max budget of $200 for a code I'm 100% happy with

  12. #12
    Forum Expert
    Join Date
    02-11-2014
    Location
    New York
    MS-Off Ver
    Excel 365 (Windows)
    Posts
    6,331

    Re: Finding Delinquent Accounts from Excel Database and Posting them to a Separate Sheet

    You can do a lot with helper formulas and database extraction formulas. For example, the status sheet is now all formulas that pull delinquent accounts and only delinquent accounts. But not all the values are calculated - but this will show you what you can do with helper formulas. You just need to match the headers to allow the values to be pulled into the status sheet. I wasn't sure how you handle multiple years, and I used a basis date in cell E1, and that date should always be earlier than the values you are entering until you are done, at which point that should change to show which accounts are delinquent.

    Date Sort Test-New.xlsx

  13. #13
    Valued Forum Contributor unit285's Avatar
    Join Date
    10-29-2015
    Location
    TN
    MS-Off Ver
    Office 365
    Posts
    358

    Re: Finding Delinquent Accounts from Excel Database and Posting them to a Separate Sheet

    Because of the way the rest of my workbook is structured i cannot change the columns in Database1.. I can add columns to the back.. but cannot chnage the ones on the front without redoing a lot of coding. I did start on a formula that might have some potential to work but im not sure.. Basically my plan is to focus on one year of payments at a time. so on Jan 1, 2017 I will run a code that adds up all payments made and then clears out the 12 months again and starts calculating payments again for the new year. My formula is as follows but its incomplete.
    Please Login or Register  to view this content.
    This would go in the Date Column so for Jan it would be Y. BS2 has the first due date manually entered. Atm, I think I will just give up on it.. Maybe as i write more vba I'll get to understanding it better and someday be able to finish it.

  14. #14
    Forum Expert
    Join Date
    02-11-2014
    Location
    New York
    MS-Off Ver
    Excel 365 (Windows)
    Posts
    6,331

    Re: Finding Delinquent Accounts from Excel Database and Posting them to a Separate Sheet

    All the formulas that i used can be added to the far right of the database sheet, or even another sheet. The idea is only to flag the values of interest, and to extract the numbers that you need based on what you have. And there really is no need to clear out years of data - Excel can have 16K+ of columns, enough for about 500 years given how you use three columns per month.

    What you can do is remove accounts (rows) as they are closed, and hide years when they are so old that there are no payments left to be made from those years. But there is no need to start over.

  15. #15
    Valued Forum Contributor unit285's Avatar
    Join Date
    10-29-2015
    Location
    TN
    MS-Off Ver
    Office 365
    Posts
    358

    Re: Finding Delinquent Accounts from Excel Database and Posting them to a Separate Sheet

    Yeah what i meant was that i only have enough columns setup to track 1 year.. Jan - Dec.. I should just give you my entire workbook and see if u could make sense of it lol you would laugh at the code tho :D

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Automate Posting Jounal entries to Ledger Accounts
    By Rich in Naples in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 07-17-2015, 05:09 PM
  2. How to keep record of invoices printed in separate database sheet (Please Help)
    By zaidbinsaleem in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 05-25-2014, 02:51 AM
  3. Replies: 2
    Last Post: 12-27-2013, 09:24 AM
  4. Replies: 7
    Last Post: 04-14-2013, 12:28 PM
  5. finding cellson 1 sheet and posting in another
    By Duckie in forum Excel General
    Replies: 1
    Last Post: 01-27-2013, 09:31 PM
  6. I Want to store my invoice sheet in a separate sheet as backup database
    By Apurav in forum Excel Programming / VBA / Macros
    Replies: 15
    Last Post: 10-19-2012, 01:31 PM
  7. Finding accounts credited more than once by the same person
    By bmunoz64 in forum Excel - New Users/Basics
    Replies: 1
    Last Post: 07-15-2009, 08:53 AM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1