+ Reply to Thread
Results 1 to 5 of 5

Calculate value without changing its total

  1. #1
    Registered User
    Join Date
    12-17-2011
    Location
    Gurgaon
    MS-Off Ver
    Excel 2003
    Posts
    3

    Calculate value without changing its total

    hello,
    I am new in excel vba and have some problem to solve a sheet, which is as follows:

    Previous IN OUT TOTAL NEXT
    9 27 17 19 12
    12 0 0 12 27
    27 0 0 27 19
    48 27 17 58

    In Total Couloumn formula is (Previous + IN - OUT)

    I have to make value of 'TOTAL' = 'NEXT' by changing the nos in 'IN' and 'OUT' without changing its (IN, OUT) total

    e.g. first row of NEXT is 12, i have to convert 'TOTAL' value to 12 also hence i will change "'IN'1" to 20 and "'IN'3" to 7 it now value in 'TOTAL'
    will be 19 and sum of 'IN' (27) will not change.

    if anybody interested, please support
    Thanks in advance.........

  2. #2
    Forum Guru
    Join Date
    08-26-2007
    Location
    London
    Posts
    4,606

    Re: Calculate value without changing its total

    Please post a workbook.

  3. #3
    Registered User
    Join Date
    12-17-2011
    Location
    Gurgaon
    MS-Off Ver
    Excel 2003
    Posts
    3

    Re: Calculate value without changing its total

    Dear StephenR,
    i am sending the workbookBook2.xls

  4. #4
    Forum Guru
    Join Date
    08-26-2007
    Location
    London
    Posts
    4,606

    Re: Calculate value without changing its total

    Are there no other constraints? It seems as though there will be many possible solutions - eg In values could be 10/16/1/27 and Out 7/1/9/17.

  5. #5
    Registered User
    Join Date
    12-17-2011
    Location
    Gurgaon
    MS-Off Ver
    Excel 2003
    Posts
    3

    Re: Calculate value without changing its total

    yes may be possible that it have some more solution but it is not illogical and hence it can be programed in macro
    so please help

+ 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