+ Reply to Thread
Results 1 to 4 of 4

a sum of numbers should be equal to 0 (what is the closest percentage)

  1. #1
    Registered User
    Join Date
    10-10-2020
    Location
    US
    MS-Off Ver
    365
    Posts
    3

    a sum of numbers should be equal to 0 (what is the closest percentage)

    Hello,

    I am working on an engineering economy problem (FV,PV) but could not figure out how to reach my goals without using VBA.

    Please see the attachment for a sample cashflow workbook. I have 3 cash flows, and I need the sum of these cash flows to be equal to 0 (or as close as possible to 0). In other words, what would be the interest (in this case it is "x") that I would pick from the "interest rate" column so that the sum of these 3 cashflows can be equal to 0 (or closest to 0).

    I attempted to list the interest rate starting from 0.0001 and let excel pick up using lookup function, but was not successful .

    Any help is much appreciatedAttachment 699065
    Attached Files Attached Files
    Last edited by fomenter23; 10-10-2020 at 08:26 PM.

  2. #2
    Forum Expert
    Join Date
    12-14-2012
    Location
    London England
    MS-Off Ver
    MS 365 Office Suite.
    Posts
    8,448

    Re: a sum of numbers should be equal to 0 (what is the closest percentage)

    Interest rate = 26.3762485681608%

    Select the Data tab then "What If Analysis"

    Select "Goal Seek" then set these three variables:

    Set Cell = D7

    To Value = 0

    By Changing Cell = G2
    Last edited by mehmetcik; 10-10-2020 at 11:07 PM.
    My General Rules if you want my help. Not aimed at any person in particular:

    1. Please Make Requests not demands, none of us get paid here.

    2. Check back on your post regularly. I will not return to a post after 4 days.
    If it is not important to you then it definitely is not important to me.

  3. #3
    Registered User
    Join Date
    10-10-2020
    Location
    US
    MS-Off Ver
    365
    Posts
    3

    Re: a sum of numbers should be equal to 0 (what is the closest percentage)

    EDIT: NEVERMIND, I GOT IT. THANKS again
    Last edited by fomenter23; 10-10-2020 at 10:09 PM.

  4. #4
    Forum Expert
    Join Date
    05-01-2014
    Location
    California, US
    MS-Off Ver
    Excel 2010
    Posts
    1,795

    Re: a sum of numbers should be equal to 0 (what is the closest percentage)

    @fomenter23.... The IRR gives you that rate. For your example, =IRR({-3000,3000,1000}) in B6.

    Note that cash flows must have opposite signs for inflows and outfllows. It would be better to enter -3000 into B2 and use =IRR(B2:B4).

    The result from Excel IRR is 26.3762615824786% (+1.11E-16). With that rate, Excel NPV returns about 3.41E-9.

    In contrast, if Goal Seek returns 26.3762485681608%, Excel NPV returns about 3.73E-4, which is not as close to zero.

    FYI, the best IRR is 26.3762615825973% (+3.86E-16). Excel NPV returns 0.00E+0, which is exactly zero.

    With Excel NPV, the formula should be =NPV(B6,{3000,1000})-3000, not =NPV(B6,{-3000,3000,1000}).

    The latter should also return exactly zero, if B6 is the best IRR. Otherwise, it returns a different result because Excel NPV discounts the first cash flow, unlike most interpretations of the NPV calculation.

    Arguably, the difference is too small to worry about, and NPV(B6,{-3000,3000,1000}) is more convenient to write and to remember.
    Last edited by joeu2004; 10-11-2020 at 12:03 PM.

+ 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] Percentage of two totals not equal to average percent of each month
    By Berqlind in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 12-03-2018, 06:55 PM
  2. 2 numbers which should be equal do not evaluate to equal
    By welchs101 in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 07-21-2018, 01:46 PM
  3. Have a Text Value equal a percentage to be total in another column
    By KStrong in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 03-19-2015, 03:12 PM
  4. [SOLVED] closest or nearest value (higher or equal)
    By vysa in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 03-09-2014, 02:44 PM
  5. [SOLVED] Showing 2 cells as equal within a certain percentage
    By bishoposiris in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 02-24-2014, 03:34 PM
  6. Is it possible to list/row of objects equal to percentage total?
    By Jonesy Vision in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 09-18-2013, 12:44 PM
  7. The Closest numbers to a number from a list ???
    By Deladier in forum Excel General
    Replies: 3
    Last Post: 03-11-2010, 12:44 PM

Tags for this Thread

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