MS Excel: Goal Seek or Algebra

MS Excel: Goal Seek or Algebra

Let's start with a question. I want to pay a business through a payment processor such as PayPal. I want to send it $120 but I know the processor will charge it both a percentage fee as well as a fixed fee. So, the question becomes what amount should I have the processor charge me so that the recipient receives $120. Mathematically, what the recipient gets is

Paid_to_Recipient = Amount_charged*(1-Percent_fee_rate)-Fixed_fee        

and, I want to know what should be the Amount_charged.

We can use MS Excel's Goal Seek utility to calculate it.

No alt text provided for this image

One weakness of a utility such as Goal Seek is that it is dependent on the initial approximation provided by the user. A poor initial approximation for a complex problem could lead to an suboptimal result or even a failure to find a solution (*)

Of course, if the relationship between the goal and the 'by changing' cell is one that we can invert through algebra, we should do so and directly answer our question. The above formula, once rewritten becomes


Amount_charged = (Pay_To_Recipient + Fixed_fee)/(1-Percent_fee_rate)        
No alt text provided for this image

Now, change the value in cell C12 and immediately see the result in cell C13.

Goal Seek is a powerful utility particularly useful when a relationship is not "invertible." One example of this is in calculating the interest rate for a loan with fixed recurring payments (say, monthly payments). Excel's RATE function is similar to Goal Seek when it comes to computing the interest rate - in particular, the last argument to the function is a 'guess' value.

Do you use Goal Seek? Where do you find use for it? Would you like to learn more about it? Please share your ideas and comments in the discussion of this article.

(*) Goal Seek falls into the category of analytical tools called Numerical Analysis. The basic idea is to reach a numerical solution to a problem starting with an initial approximation and then iteratively improving the approximation until there is no further improvement. For more see the Newton–Raphson and associated methods: Newton's method - Wikipedia

My previous article: Calendar for the New Year | LinkedIn

Julie Basu, PhD

Silicon Valley Technologist | Entrepreneur | CEO | Board Director | R&D Lead at smartQED and ProSolvr

2 年

Useful tips - thanks for sharing!

回复

要查看或添加评论,请登录

Tushar Mehta的更多文章

  • MS Excel: How to develop a recursive function

    MS Excel: How to develop a recursive function

    Introduction A recursive function returns a value that depends on the value that the function returns for another set…

    2 条评论
  • Phone Number Region Lookup

    Phone Number Region Lookup

    Introduction We call people using phone numbers without giving much thought to what the number represents. Each number…

    1 条评论
  • MS Excel - Graph a Spill Range

    MS Excel - Graph a Spill Range

    Introduction to Dynamic Array Formulas and Spill Ranges Microsoft implemented a major improvement in Excel with the…

  • List and count unique values (MS Excel, Python, and SQL)

    List and count unique values (MS Excel, Python, and SQL)

    This is a fairly common requirement that until recently had a convoluted solution in Excel. Given a list of values, how…

    1 条评论
  • Excel Large Number Arithmetic with Python

    Excel Large Number Arithmetic with Python

    Introduction When it comes to numbers, MS Excel follows the IEEE 754 standard (Floating-point arithmetic may give…

  • MS Excel: Recursive functions

    MS Excel: Recursive functions

    In MS Excel: Functions are first-class objects, we saw how a custom Excel function, using LAMBDA, can call another…

    3 条评论
  • MS Excel: Functions are first-class objects

    MS Excel: Functions are first-class objects

    What makes a function a first-class object? This is almost certainly an advanced discussion. And, we will start with a…

  • Generate unique random integers

    Generate unique random integers

    Generating unique random integers is an important task in various domains. Examples include data sampling, simulations,…

    2 条评论
  • Calendar for the New Year

    Calendar for the New Year

    For the New Year..

    1 条评论
  • Validating U.S. Bank Routing Numbers

    Validating U.S. Bank Routing Numbers

    In the U.S.

社区洞察

其他会员也浏览了