+ Reply to Thread
Results 1 to 27 of 27

Need help with expense/savings program formula

  1. #1
    Registered User
    Join Date
    06-04-2011
    Location
    USA
    MS-Off Ver
    Excel 2013
    Posts
    16

    Need help with expense/savings program formula

    Hi all,

    I'm new to this forum so please forgive me if I posted this in the wrong section. I am trying to create a program that will organize the payoff of expenses. It’s pretty basic and I have it setup on two separate worksheets. There is one specific column of cells (Column D in ,y example) with which I need help. I do not know if what I want to do can even be done or not, so bear with me!

    There are four columns in total. One column (D) references the other three columns (A, B & C):

    Column A (Worksheet 1) has 15 rows, Column B (Worksheet 1) has 15 rows, and both Column C (Worksheet 2) & Column D (Worksheet 2) have 48 rows.

    Column A is the name of the expense, Column B is the dollar amount of the expense, Column C is accumulated savings and Column D is where the formula is located in each cell and where the results are displayed.

    What I need it to do is have the first cell in Column D read each of the 15 cells in Column B and compare them to each cell in Column C. Once the cell in Column D finds the cell in Column C that has enough to pay Column B it displays that expense. Once that expense is paid, the remaining cells in Column D should not include that particular cell in its search since it’s already paid and should no longer be a part of the equation.


    Here is a small sampling (I tried formatting this chart but having problems in this forum. I attached a JPEG if anyone wants to download it):

    Worksheet 1 Worksheet 2

    Column A Column B Column C Column D
    Expense Name Amount Savings Exp Paid

    Exp1 $500 $250
    Exp 2 $1000 $500 Exp 1
    Exp 3 $1200 $250
    Exp 4 $1800 $500
    Exp 5 $2500 $750
    Exp 6 $3500 $1000 Exp 2


    I hope this is clear, if not please let me know. As I stated earlier, I don’t know if this can even be accomplished. If it can, I would really appreciate any input on the formula!

    Thanks
    Steve
    Attached Files Attached Files
    Last edited by Steven P; 06-04-2011 at 07:07 PM.

  2. #2
    Forum Guru MarvinP's Avatar
    Join Date
    07-23-2010
    Location
    Woodinville, WA
    MS-Off Ver
    Office 365
    Posts
    16,168

    Re: Need help with a formula!

    Hi Steve and welcome to the forum,

    You might change the title of your thread to less generic problem. Something like "Reconsile Expenses and Savings Problem" as per the Forum Rules.

    See the attached where I've done it a little different way. I've made expenses negative and savings positive and made a running total column. Is this good enough for your needs?
    Attached Files Attached Files
    One test is worth a thousand opinions.
    Click the * Add Reputation below to say thanks.

  3. #3
    Registered User
    Join Date
    06-04-2011
    Location
    USA
    MS-Off Ver
    Excel 2013
    Posts
    16

    Need help with a formula for expense/savings program!

    Hi Marvin,

    Thanks for the input, but what you provided is not what I'm looking for!

    Thanks
    Steve



    Quote Originally Posted by MarvinP View Post
    Hi Steve and welcome to the forum,

    You might change the title of your thread to less generic problem. Something like "Reconsile Expenses and Savings Problem" as per the Forum Rules.

    See the attached where I've done it a little different way. I've made expenses negative and savings positive and made a running total column. Is this good enough for your needs?
    Last edited by Steven P; 06-04-2011 at 12:01 PM.

  4. #4
    Forum Guru MarvinP's Avatar
    Join Date
    07-23-2010
    Location
    Woodinville, WA
    MS-Off Ver
    Office 365
    Posts
    16,168

    Re: Need help with expense/savings program formula

    Hi Steve,

    If you really want help with this you need to make a sample file and attach it to a post. You can do this by clicking on the "Go Advanced" below the message area and then on the Paper Clip Icon above the advanced message area.

    Be very specific on what your expected results will be.

    This is your best bet for someone understanding the question and getting you a great answer.

  5. #5
    Registered User
    Join Date
    06-04-2011
    Location
    USA
    MS-Off Ver
    Excel 2013
    Posts
    16

    Re: Need help with expense/savings program formula

    My explanation in the opening post was pretty detailed, I've attached a sample of what i'm looking to do.
    Attached Files Attached Files
    Last edited by shg; 06-04-2011 at 05:49 PM. Reason: deleted quote

  6. #6
    Forum Guru MarvinP's Avatar
    Join Date
    07-23-2010
    Location
    Woodinville, WA
    MS-Off Ver
    Office 365
    Posts
    16,168

    Re: Need help with expense/savings program formula

    Hi Steven,

    I must have my dumb hat on today. I don't see how your first post relates to the sample you posted. Then I'm not sure what you want as your desired result. I just can't figure out what you are looking to do.

    Maybe one of the smart gurus can figure it out.

  7. #7
    Registered User
    Join Date
    06-04-2011
    Location
    USA
    MS-Off Ver
    Excel 2013
    Posts
    16

    Re: Need help with expense/savings program formula

    Yes it's pretty complex, that's why I'm having issues with it. Thanks anyways!

    Quote Originally Posted by MarvinP View Post
    Hi Steven,

    I must have my dumb hat on today. I don't see how your first post relates to the sample you posted. Then I'm not sure what you want as your desired result. I just can't figure out what you are looking to do.

    Maybe one of the smart gurus can figure it out.

  8. #8
    Forum Expert Mordred's Avatar
    Join Date
    07-06-2010
    Location
    Winnipeg, Canada
    MS-Off Ver
    2007, 2010
    Posts
    2,787

    Re: Need help with expense/savings program formula

    Quote Originally Posted by Steven P View Post
    Column A is the name of the expense, Column B is the dollar amount of the expense, Column C is accumulated savings and Column D is where the formula is located in each cell and where the results are displayed.
    I don't see that anywhere in your workbook example. A is Month, B is account to pay, C is Balance in Account and D is empty.
    If you're happy with someone's help, click that little star at the bottom left of their post to give them Reps.

    ---Keep on Coding in the Free World---

  9. #9
    Forum Expert
    Join Date
    11-29-2010
    Location
    Ukraine
    MS-Off Ver
    Excel 2019
    Posts
    4,168

    Re: Need help with expense/savings program formula

    hi, Steven P, please check attachment, hope this helps
    Attached Files Attached Files

  10. #10
    Registered User
    Join Date
    06-04-2011
    Location
    USA
    MS-Off Ver
    Excel 2013
    Posts
    16

    Re: Need help with expense/savings program formula

    Sorry I messed it up. Here's the proper workbook!


    Quote Originally Posted by Mordred View Post
    I don't see that anywhere in your workbook example. A is Month, B is account to pay, C is Balance in Account and D is empty.
    Attached Files Attached Files

  11. #11
    Forum Guru MarvinP's Avatar
    Join Date
    07-23-2010
    Location
    Woodinville, WA
    MS-Off Ver
    Office 365
    Posts
    16,168

    Re: Need help with expense/savings program formula

    Hey Steven,

    The new sample.xls still doesn't have anything in Column D.

    See if watersev has figured out what you need. He is one of the Smart Gurus. He also speaks multiple languages. Maybe that's why he understands this problem.

  12. #12
    Forum Expert Mordred's Avatar
    Join Date
    07-06-2010
    Location
    Winnipeg, Canada
    MS-Off Ver
    2007, 2010
    Posts
    2,787

    Re: Need help with expense/savings program formula

    To further that MarvinP, Column C is completely empty. I am still confused here.

  13. #13
    Registered User
    Join Date
    06-04-2011
    Location
    USA
    MS-Off Ver
    Excel 2013
    Posts
    16

    Re: Need help with expense/savings program formula

    It's on two worksheets the first 2 are on sheet 1 and the 2nd two are on sheet 2
    Attached Files Attached Files

  14. #14
    Forum Guru MarvinP's Avatar
    Join Date
    07-23-2010
    Location
    Woodinville, WA
    MS-Off Ver
    Office 365
    Posts
    16,168

    Re: Need help with expense/savings program formula

    Look at his most recent sample.xls (Post #11) where he inserted two columns on Sheet 2 so there is now data in Column D.

    What I want to know is what is Watersev smoking that he was able to understand the problem well enough to come up with some answer.

    Then I want to know from Steven if his answer is right!!

    Do we have a Troll here?

  15. #15
    Forum Expert shg's Avatar
    Join Date
    06-20-2007
    Location
    The Great State of Texas
    MS-Off Ver
    2003, 2010
    Posts
    40,678

    Re: Need help with expense/savings program formula

    Another way, perhaps.
    Attached Files Attached Files
    Last edited by shg; 06-04-2011 at 07:41 PM.
    Entia non sunt multiplicanda sine necessitate

  16. #16
    Registered User
    Join Date
    06-04-2011
    Location
    USA
    MS-Off Ver
    Excel 2013
    Posts
    16

    Re: Need help with expense/savings program formula

    I'll have a look at this and see if it's what i need. I appreciate it, thank You.

    And no I'm not trolling!!!

    Quote Originally Posted by shg View Post
    Another way, perhaps.

  17. #17
    Registered User
    Join Date
    06-04-2011
    Location
    USA
    MS-Off Ver
    Excel 2013
    Posts
    16

    Re: Need help with expense/savings program formula

    This works exactly the way I need it to. Thank you so much! Now I have to see how I can transfer it to work with my spreadsheet format.

    I may have more questions for you.

    Thanks again!

    Quote Originally Posted by shg View Post
    Another way, perhaps.

  18. #18
    Registered User
    Join Date
    06-04-2011
    Location
    USA
    MS-Off Ver
    Excel 2013
    Posts
    16

    Re: Need help with expense/savings program formula

    Now what I need is a separate column from what you have provided that will read every column (you have 6) in each row (you have 36) and then display the debt that is being paid in the specific month. I need it to display the actual debt (ex. debt1, debt2, etc.) not the amount!

    Ex.

    Jan Debt1
    Feb
    March
    April Debt2
    May
    June
    July
    August Debt3


    Thanks

    Quote Originally Posted by shg View Post
    Another way, perhaps.

  19. #19
    Registered User
    Join Date
    06-04-2011
    Location
    USA
    MS-Off Ver
    Excel 2013
    Posts
    16

    Re: Need help with expense/savings program formula

    Hi shg,

    I attached a modified version of the file you provided with the two additional columns that I need; "Debt Paid" and "Amount Paid". I would really appreciate it if you could help me with this.

    Thanks


    Quote Originally Posted by shg View Post
    Another way, perhaps.

  20. #20
    Forum Expert shg's Avatar
    Join Date
    06-20-2007
    Location
    The Great State of Texas
    MS-Off Ver
    2003, 2010
    Posts
    40,678

    Re: Need help with expense/savings program formula

    A fomula for col N is simple enugh; add the amounts in cols D:I.

    A formula for col L would be more complicated, because it could be a catenation of several values if several debts were paid the same month.

  21. #21
    Registered User
    Join Date
    06-04-2011
    Location
    USA
    MS-Off Ver
    Excel 2013
    Posts
    16

    Re: Need help with expense/savings program formula

    For simplicity, let's assume that only one debt is paid per month. Can it be done this way?


    Quote Originally Posted by shg View Post
    A fomula for col N is simple enugh; add the amounts in cols D:I.

    A formula for col L would be more complicated, because it could be a catenation of several values if several debts were paid the same month.

  22. #22
    Forum Expert shg's Avatar
    Join Date
    06-20-2007
    Location
    The Great State of Texas
    MS-Off Ver
    2003, 2010
    Posts
    40,678

    Re: Need help with expense/savings program formula

    In L4 and down,

    =IF(COUNT(D4:I4), LOOKUP(9E+307, D4:I4, $D$2:$I$2), "")

  23. #23
    Registered User
    Join Date
    06-04-2011
    Location
    USA
    MS-Off Ver
    Excel 2013
    Posts
    16

    Re: Need help with expense/savings program formula

    Thank you VERY much, you've been extremely helpful.

  24. #24
    Forum Expert shg's Avatar
    Join Date
    06-20-2007
    Location
    The Great State of Texas
    MS-Off Ver
    2003, 2010
    Posts
    40,678

    Re: Need help with expense/savings program formula

    You're welcome, good luck.

  25. #25
    Registered User
    Join Date
    06-04-2011
    Location
    USA
    MS-Off Ver
    Excel 2013
    Posts
    16

    Re: Need help with expense/savings program formula

    One more question. How do I expand the formula for 15 debt columns. and 48 months (rows). I tried expanding the formula, but it does not work. I'm assuming it has to do with the 9E+307? Not sure!

  26. #26
    Forum Expert shg's Avatar
    Join Date
    06-20-2007
    Location
    The Great State of Texas
    MS-Off Ver
    2003, 2010
    Posts
    40,678

    Re: Need help with expense/savings program formula

    Insert columns to the left of col J, copy col I to the right, then copy all formulas down.

  27. #27
    Registered User
    Join Date
    06-04-2011
    Location
    USA
    MS-Off Ver
    Excel 2013
    Posts
    16

    Re: Need help with expense/savings program formula

    Thank you i figured it out, that's not the issue! It's something else with my spreadsheet!

+ 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