+ Reply to Thread
Results 1 to 7 of 7

Accounting Formula

  1. #1
    Registered User
    Join Date
    08-02-2013
    Location
    New Jersey
    MS-Off Ver
    Excel 2010
    Posts
    36

    Accounting Formula

    Is there a formula out there that would look at a range of numbers and return what numbers would sum up to an amount. For instance.

    101.5
    600.32 X
    100.75
    384.00 X
    991.00
    600.00 X
    725.11

    Looking for what numbers above would = 1584.32

    Any suggestions?

  2. #2
    Forum Expert
    Join Date
    04-22-2013
    Location
    .
    MS-Off Ver
    .
    Posts
    4,418

    Re: Accounting Formula

    You could use a "brute force method" along the lines of:
    in column A put your numbers, in column B put =randbetween(0,1) in C1 put = sumif(B1:B7,1,A1:A7)
    then recalculate unril you reach your target.

  3. #3
    Registered User
    Join Date
    12-20-2013
    Location
    London
    MS-Off Ver
    Excel 2010
    Posts
    10

    Re: Accounting Formula

    Hi Bridge,

    I'm not sure if there's a formula that can do this, but it can be done using the solver application.

    In column B, put 1 in cells B1:B7 and in column C put =A1*B1 in cell C1 and copy down. In cell C8 enter =SUM(C1:C7)

    Got to Data->Solver at the top and set objective as $C$8 to Value of 1584.32 by changing variable cells $B$1:$B$7

    subject to constraints of
    $B$1:$B$7 <=1
    $B$1:$B$7 = integer
    $B$1:$B$7 >=0

    and solve for answer. Hope this helps.

  4. #4
    Forum Expert
    Join Date
    04-22-2013
    Location
    .
    MS-Off Ver
    .
    Posts
    4,418

    Re: Accounting Formula

    @newbydeveloper...

    are you sure? I would have thought the solver would find it difficult to arrive at an answer as there is no logic behind the function it is trying to solve.

  5. #5
    Registered User
    Join Date
    12-20-2013
    Location
    London
    MS-Off Ver
    Excel 2010
    Posts
    10

    Re: Accounting Formula

    @Yudlugar, yes it works

    Solver sets column B's values to be either 0 or 1 and creates a solution for the sum of column C (Ax*Bx) to equal 1584.32, give it a try.

  6. #6
    Forum Expert
    Join Date
    04-22-2013
    Location
    .
    MS-Off Ver
    .
    Posts
    4,418

    Re: Accounting Formula

    So it does !

    For some reason I though the solver used a newton-raphson type thing so you had to be trying to solve an actual function (like y=3x^2) rather than a random problem like this one.

  7. #7
    Forum Expert Alf's Avatar
    Join Date
    03-13-2004
    Location
    Gothenburg/Mullsjoe, Sweden
    MS-Off Ver
    Excel 2019 and not sure I like it
    Posts
    4,758

    Re: Accounting Formula

    Instead of

    Please Login or Register  to view this content.
    use

    Please Login or Register  to view this content.
    Alf

+ 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] Using IF formula and accounting for zero or null cell?
    By phantasm79 in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 12-04-2013, 04:25 PM
  2. [SOLVED] IF formula in Accounting
    By ululator in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 07-06-2013, 03:34 PM
  3. Query on Excel Formula -FIFO Accounting
    By sabya in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 06-14-2011, 10:50 AM
  4. formula accounting for cash flows.
    By Gaunta in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 02-13-2011, 06:54 PM
  5. complicated accounting formula
    By achinfish in forum Excel General
    Replies: 1
    Last Post: 09-18-2007, 04:08 PM

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