+ Reply to Thread
Results 1 to 7 of 7

highest possible number from sum between number and porcentage?

  1. #1
    Registered User
    Join Date
    03-06-2018
    Location
    MX
    MS-Off Ver
    2010
    Posts
    17

    Question highest possible number from sum between number and porcentage?

    Let's say I have a budget of $5000. I get 20% of what I spend without going over the budget. Example: I spend $1200, so I get 20% of that: $240.

    However, the money spent + 20% of that cannot exceed the budget.

    How can I do that automatically in excel? is there a way i can type $5000, and with a formula, I automatically get the most I can spend (+ 20%)?

    In this example, the most I can spend without going over adding both is: Spent ($4166.6) + 20% ($833.32) = $4999.92 (it does NOT go overbudget), that means that maximum I can spend is $4166.6 and the max I can get from 20% is $833.32.

    I would like to know if there is a formula that could give me either the max money I can spend, or max 20% I can get ( or both) automatically. Is it possible?

    Thank you very much!
    Last edited by colonel179; 08-24-2018 at 06:46 PM.

  2. #2
    Registered User
    Join Date
    08-23-2018
    Location
    Ireland
    MS-Off Ver
    Office365
    Posts
    17

    Re: highest possible number from sum between number and porcentage?

    This would work, and give you both values in one cell.

    ="Spend - " & TEXT(H8/1.2,"0.0") & ", you get " & TEXT((H8/1.2)*0.2,"0.0")

    Where H8 contains your budget number

    Not very helpful if you then need to do something with the results, but at at least you'll have your answers.

  3. #3
    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: highest possible number from sum between number and porcentage?

    Wouldn't it make more sense that you get 20% of the UNSPENT budget?

    So if you accomplish a task with a budget of $5000 for $1000, you get $800. If you spend $4000, you get $200, and if you spend $5000 (or more), you get nothing.
    Entia non sunt multiplicanda sine necessitate

  4. #4
    Forum Guru
    Join Date
    04-13-2005
    Location
    North America
    MS-Off Ver
    2002/XP and 2007
    Posts
    15,849

    Re: highest possible number from sum between number and porcentage?

    How much is Excel and how much is algebra? This should be a simple algebra problem. Once the algebra is done, the programming should also be simple. let x be budget spent. According to your description, the problem should be x+0.2x=5000 and solve for x. Does that look correct?
    Quote Originally Posted by shg
    Mathematics is the native language of the natural world. Just trying to become literate.

  5. #5
    Registered User
    Join Date
    03-06-2018
    Location
    MX
    MS-Off Ver
    2010
    Posts
    17

    Re: highest possible number from sum between number and porcentage?

    Quote Originally Posted by mel0nc0lly View Post
    This would work, and give you both values in one cell.

    ="Spend - " & TEXT(H8/1.2,"0.0") & ", you get " & TEXT((H8/1.2)*0.2,"0.0")

    Where H8 contains your budget number

    Not very helpful if you then need to do something with the results, but at at least you'll have your answers.
    I don't actually have to do anything with it, only display it. I guess I could try your solution. Thanks for helping!

    Quote Originally Posted by shg View Post
    Wouldn't it make more sense that you get 20% of the UNSPENT budget?

    So if you accomplish a task with a budget of $5000 for $1000, you get $800. If you spend $4000, you get $200, and if you spend $5000 (or more), you get nothing.
    I get the money for trips. I get 20% of what I spend because it's for things that I can't get an invoice for. I don't really know why they do it like that. I have an expenses file in excel, and it would help me a lot if I can show what is my real spending amount, and what I would get as 20%.

    Quote Originally Posted by MrShorty View Post
    How much is Excel and how much is algebra? This should be a simple algebra problem. Once the algebra is done, the programming should also be simple. let x be budget spent. According to your description, the problem should be x+0.2x=5000 and solve for x. Does that look correct?
    Yes. You are correct! It's just that I don't know how to translate it to a formula, so that I type 5000 and it gives me the answer right away.

  6. #6
    Valued Forum Contributor jtakw's Avatar
    Join Date
    05-05-2018
    Location
    CA, USA
    MS-Off Ver
    2016
    Posts
    668

    Re: highest possible number from sum between number and porcentage?

    Hi,

    Excel 2016 (Windows) 64 bit
    A
    B
    C
    D
    1
    Budget Max to Spend Your "Cut" Total Spent plus your Cut
    2
    5000
    4166.666667
    833.33333
    5000
    Sheet: Sheet42

    Excel 2016 (Windows) 64 bit
    B
    C
    D
    2
    =A2/1.2
    =B2*0.2
    =B2+C2
    Sheet: Sheet42

  7. #7
    Registered User
    Join Date
    03-06-2018
    Location
    MX
    MS-Off Ver
    2010
    Posts
    17

    Re: highest possible number from sum between number and porcentage?

    Quote Originally Posted by jtakw View Post
    Hi,

    Excel 2016 (Windows) 64 bit
    A
    B
    C
    D
    1
    Budget Max to Spend Your "Cut" Total Spent plus your Cut
    2
    5000
    4166.666667
    833.33333
    5000
    Sheet: Sheet42

    Excel 2016 (Windows) 64 bit
    B
    C
    D
    2
    =A2/1.2
    =B2*0.2
    =B2+C2
    Sheet: Sheet42


    Thank You very much! i adapted this and I had ot exactly how I wanted.

+ 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. [SOLVED] Geting highest number value from list with values which are text/number combinations
    By igormigor in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 02-25-2016, 10:48 AM
  2. Replies: 3
    Last Post: 03-22-2015, 12:30 PM
  3. [SOLVED] Find highest version number for each material number
    By keld.strobel in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 03-06-2015, 07:08 AM
  4. Replies: 3
    Last Post: 07-15-2014, 03:02 PM
  5. [SOLVED] How2 find number in range and return that number or if doesn't exist then the next highest
    By Crawfinator1 in forum Excel Formulas & Functions
    Replies: 10
    Last Post: 06-06-2014, 08:52 AM
  6. Replies: 0
    Last Post: 09-06-2012, 10:41 AM
  7. Find highest number of sales in a date range and show seller and sale number
    By audiofreak in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 09-06-2012, 03:34 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