+ Reply to Thread
Results 1 to 8 of 8

Budgeting macros

Hybrid View

  1. #1
    Forum Contributor
    Join Date
    11-14-2009
    Location
    Midwest
    MS-Off Ver
    Excel 2003/2007
    Posts
    103

    Budgeting macros

    Okay so here's my plan. I already have an excel sheet that acts as an electronic envelop system. The problem is that you have to enter each item in manually and it is spread out across three different worksheets within the workbook. It's clunky and time consuming.
    Here's what I want to do. I have an allocation system that I made that let's me put in a given amount of income and spread it out throughout my different budgeting categories. I want to put the 'envelops' right next to it so that everything is on the same page, then have a macro that will let me get the allocations set how I want, then submit them to add or subtract the allocated amounts from the envelops. It seems very simple, but I don't know much about macros. I'm pretty good with formulas, but can't get this to work without a circular iteration, and I have a hunch that this is macro territory anyway.
    Can anybody help me figure out the macro for this? There is a copy of what I have been working on attached. Thanks guys!
    Attached Files Attached Files

  2. #2
    Forum Expert JBeaucaire's Avatar
    Join Date
    03-21-2004
    Location
    Bakersfield, CA
    MS-Off Ver
    2010, 2016, Office 365
    Posts
    33,492

    Re: Budgeting macros

    Can you explain your process?

    For instance:
    1) Enter a $ amount D3
    2) $ amount entered parses itself out to the table in column B based on percentages already entered into each cell.
    3) Something else appears in column D?
    4) Pressing SUBMIT enters the amounts that appeared in the table to the various envelopes and table resets

    Can you provide all of the "percentages" for the table? Fill out a sample entry amount with all the values, perhaps based on a $100 total allocation.

    Also, if you make sure the contents of the "envelope" names exactly matches the table, then a macro can find those cells whereever you move them to in the future allowing you to have flexibility with your layout. That means no hard-coded returns. Just put "Children: Diapers" into both the table and the envelopes.

    If you want wrapping on the envelopes, set WRAP TEXT in the format cells for those cells.
    Last edited by JBeaucaire; 11-14-2009 at 01:25 PM.
    _________________
    Microsoft MVP 2010 - Excel
    Visit: Jerry Beaucaire's Excel Files & Macros

    If you've been given good help, use the icon below to give reputation feedback, it is appreciated.
    Always put your code between code tags. [CODE] your code here [/CODE]

    ?None of us is as good as all of us? - Ray Kroc
    ?Actually, I *am* a rocket scientist.? - JB (little ones count!)

  3. #3
    Forum Contributor
    Join Date
    11-14-2009
    Location
    Midwest
    MS-Off Ver
    Excel 2003/2007
    Posts
    103

    Re: Budgeting macros

    As I said, I'm not all that familiar with macros, so you might have to explain exactly what you mean by:
    "Also, if you make sure the contents of the "envelope" names exactly matches the table, then a macro can find those cells whereever you move them to in the future allowing you to have flexibility with your layout. That means no hard-coded returns. Just put "Children: Diapers" into both the table and the envelopes."
    As far as the process, my income is hourly, so it changes every month, therefore I can't just put in percentages for my non-discretionary expenses. The only category that has a percentage already put in is the offering category.
    How it works is
    1)I would put in the amount of income in B3
    2)the offering category automatically inputs 10% and I allocate the rest of the income throughout as I need it
    3)D3 displays the subtotal of B3-SUM(B4:B26)
    4)I then allocate the discretionary categories as I need them
    5)D26 gives me the remainder of the subtotal left to allocate and let's me know how much I have left to allocate - when it reaches zero, I'm done
    What I would like to happen is
    1)After I get everything allocated how I want it, I would hit the submit button and it would send the amounts I have allocated to the proper 'envelope' on the right and sum it
    I used to just use the allocations for income and have basically a register where I could put in the expenses and off to the right had a column for each category that would sum it all and display the result at the top.
    That was a lot of work and took a lot of time.
    I figure I can just use the allocations for income and expenses, allocate them throughout the categories, and submit them into the proper envelopes.
    You'll have to explain things very thoroughly, because I don't know much about macros, all I have done so far is record macros to reset forms.
    Thanks for the help!

  4. #4
    Forum Contributor trucker10's Avatar
    Join Date
    07-22-2009
    Location
    Belgium
    MS-Off Ver
    Excel 2003 / 2007 / 2010 prof +
    Posts
    149

    Re: Budgeting macros

    3 x reads, but I do not understand
    Attached Files Attached Files

  5. #5
    Forum Expert JBeaucaire's Avatar
    Join Date
    03-21-2004
    Location
    Bakersfield, CA
    MS-Off Ver
    2010, 2016, Office 365
    Posts
    33,492

    Re: Budgeting macros

    To make your sheet "flexible", I added some "location" columns where you can indicate where the envelopes are located. You'll see them when you open this sample sheet. If you find these helper columns unsightly, just hide those columns...but don't forget about them! This will allow you to restructure your table anytime and any way you wish and the macro will kee working.

    So your Allocations sheet should now function the way you want.
    =========

    However, I've added a second sheet showing a little more standard and basic layout. It makes the update process far simpler as you can see by the difference in the macros for each of those two sheets.

    So you have two working options.
    Attached Files Attached Files

  6. #6
    Forum Contributor
    Join Date
    11-14-2009
    Location
    Midwest
    MS-Off Ver
    Excel 2003/2007
    Posts
    103

    Re: Budgeting macros

    That is great!
    Okay, now say I wanted to do monthly updates instead of each individual transaction. How would I go about doing that?
    I use Quicken to keep track of finances, but it doesn't do envelope stuff, so I want to be able to update whenever I get the chance, but not have to put every transaction in. So basically, I'll update every so often, but the totals will be monthly instead of each transaction, my Quicken program gives me tables of month to date expenses, so whenever I update, I'll just put those totals in instead of each individual transaction.
    Last edited by bibleguy125; 11-16-2009 at 10:22 PM.

  7. #7
    Forum Expert JBeaucaire's Avatar
    Join Date
    03-21-2004
    Location
    Bakersfield, CA
    MS-Off Ver
    2010, 2016, Office 365
    Posts
    33,492

    Re: Budgeting macros

    I don't see how it's any different. You'll still take the "totals" from your other program and insert them into the various categories, then SUBMIT to record them permanently.

  8. #8
    Forum Contributor
    Join Date
    11-14-2009
    Location
    Midwest
    MS-Off Ver
    Excel 2003/2007
    Posts
    103

    Re: Budgeting macros

    That would be true except that I want to be able to submit several times a month, but have it still keep track of monthly totals instead of each individual total.
    So say on the 2nd of the month, I use $2 from groceries, so I submit it and it takes $2 out - then on the third I take out another $2
    My Quicken program will tell me that I have taken out $4 for the month so far, so instead of having to keep up with each transaction, I can update whenever it's convenient. So I would put in $4 for the month on the 3rd, and it would take another $2 out of the 'envelope'.
    I know this is somewhat complicated, just an idea I had that I don't know how to program. Thanks for all the help!

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

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