+ Reply to Thread
Results 1 to 4 of 4

Split Spendings

  1. #1
    Registered User
    Join Date
    07-28-2017
    Location
    CINE1748
    MS-Off Ver
    Office 2013
    Posts
    2

    Split Spendings

    Hello

    After the holidays we wanted to sort out who has to pay whom how much. We used the App Splitwise, though not all people spent the whole holidays together. So i set up 4 different Groups in Splitwise.
    Now everybody would have to do multiple transactions because we have 4 groups.

    I started doing everything manually in Excel using this template: http://www.herber.de/bbs/user/70975.xls

    From each of the four tables I calculated the average amount (what everybody should have spent in the end) together --> Column C
    Persons A,B,C,D,E spent the whole holidays together. Thats way the all need to pay the same amount
    Person F left ealier. So he has to pay less
    Persons G and H came later and left ealier. Thats why the have to pay even more less.

    Now my question is how do I calculated who has to pay whom how much. So not everybody has to make multiple transactions.

    Using Office 2013

    Attachment 530405

    thank you
    Attached Files Attached Files
    Last edited by SaleLeone; 07-28-2017 at 04:04 AM.

  2. #2
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2403
    Posts
    44,190

    Re: Split Spendings

    Will you please attach a SMALL sample Excel workbook (10-20 rows of data is usually enough)? Please don't attach a picture of one (no-one will want to re-type all your stuff before starting).

    1. Make sure that your sample data are truly REPRESENTATIVE of your real data. The use of unrepresentative data is very frustrating and can lead to long delays in reaching a solution.

    2. Make sure that your desired solution is also shown (mock up the results manually).

    3. Make sure that all confidential information is removed first!!

    4. Try to avoid using merged cells. They cause lots of problems!

    Unfortunately the attachment icon doesn't work at the moment. So, to attach an Excel file you have to do the following: Just before posting, scroll down to Go Advanced and then scroll down to Manage Attachments. Now follow the instructions at the top of that screen.
    Glenn




    None of us get paid for helping you... we do this for fun. So DON'T FORGET to say "Thank You" to all who have freely given some of their time to help YOU

  3. #3
    Valued Forum Contributor quekbc's Avatar
    Join Date
    01-18-2010
    Location
    Sydney, Australia
    MS-Off Ver
    2010, 2013, 2016
    Posts
    1,149

    Re: Split Spendings

    Quote Originally Posted by SaleLeone View Post
    Now my question is how do I calculated who has to pay whom how much. So not everybody has to make multiple transactions.
    This was something I thought about some time ago. My small brain could only come out with a solution where everyone does at most 1 transaction - however, it's not easy to formulate this - and more often than not I do it manually. I'll try to explain the procedure as concisely as possible.

    1) Sort from positive to negative (positive means they should receive money, negative means they need to pay)
    2) The smallest number (i.e. most negative) pays the biggest number (i.e. most positive) in full
    3) Recalculate net position - sort them again and repeat step 1 and 2 until everyone nets off to 0.

    It's a series of calculation - best explain in the attached. The blocks for Round 2 is structured to be copied across to round 3, 4, 5, etc. until all becomes 0 (or close to 0).

    P/S: This method is not perfect and I'm pretty sure there'll be some cases where this doesn't work - in which case I do it manually.
    P/S: Also, it's kinda hard to explain this to my friends when I did this because this method almost always means everyone needs to pay someone, even if at the start people owe you money. In which case, I usually make an adjustment by randomly selecting 1 (or a few) people to make 2 transactions.
    Attached Files Attached Files

  4. #4
    Registered User
    Join Date
    07-28-2017
    Location
    CINE1748
    MS-Off Ver
    Office 2013
    Posts
    2

    Re: Split Spendings

    Quote Originally Posted by quekbc View Post
    This was something I thought about some time ago. My small brain could only come out with a solution where everyone does at most 1 transaction
    Cool!
    thanks a lot.

+ 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. Need Macro code to split data split in 7 sheets based on variable rows in column A
    By Alija_21 in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 12-31-2015, 08:03 AM
  2. How to split numbers to specific name and total and split
    By ashokavarthanan in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 11-13-2015, 09:12 AM
  3. [SOLVED] create macro to split screen and then in top split, go to a certain cell
    By ammartino44 in forum Excel Programming / VBA / Macros
    Replies: 8
    Last Post: 09-17-2015, 05:45 PM
  4. Split cell to create sorted heading on empty row above and keep second split info
    By CastingDirector in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 02-09-2015, 12:24 AM
  5. [SOLVED] Split Array, Listing Marked Items in Split Arrays
    By lesoies in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 05-27-2013, 02:07 AM
  6. [SOLVED] Split Macro modification to Split into new Workbooks instead of sheets within one workbook
    By DLSmith in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 07-13-2012, 08:11 PM
  7. Can excels Split() function split a string up at multiple spots?
    By 111StepsAhead in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 12-14-2011, 02:36 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