+ Reply to Thread
Results 1 to 4 of 4

Total Cost Split Pro Rata

  1. #1
    Forum Contributor
    Join Date
    06-15-2012
    Location
    London, England
    MS-Off Ver
    Excel 2007
    Posts
    100

    Total Cost Split Pro Rata

    Hi guys,

    Got a bit of a tricky one, been struggling with it for a while.

    I've attached a sample workbook to show what i'm getting at..

    In column A I have a booking reference that will often be duplicated up to a maximum of 15 times. In column D (CBM) there are a number of different cubi meatre measurements. What I need is for column F to find the sum of all CBM's for the booking reference in column A and then assign a percentage in column G for that line.

    So for example, in row 5 booking ref A221-011857 has 11.25 assigned to it and the total sum of all A221-011857 CBMs would be 21.09 (Sum(D5:D10)) so this would be shown in Column F. Then in column G it would show 53.34% of that total CBM is allocated to row 5.

    Apologies for the, probably, really drawn out way of explaining. I'd never make a teacher.

    Thanks very much for any help in advance.
    Attached Files Attached Files

  2. #2
    Registered User
    Join Date
    09-28-2012
    Location
    Melbourne, Australia
    MS-Off Ver
    Excel 2007
    Posts
    7

    Re: Total Cost Split Pro Rata

    Something like this?

    Formula entered into F2 and G2 then copied/dragged down

    Rows 2, 3 and 4 showing errors because there is no values in the CBM column
    If you have a lot of these you can enter the G2 formula as
    =IF(D2=0, "", D2/F2)
    Attached Files Attached Files
    Last edited by Zygron; 09-28-2012 at 09:38 AM.

  3. #3
    Forum Guru Pete_UK's Avatar
    Join Date
    12-31-2011
    Location
    Warrington, England
    MS-Off Ver
    Office 2019 (still learning)
    Posts
    24,794

    Re: Total Cost Split Pro Rata

    Put this in F2 and copy down:

    =SUMIF(A:A,A2,D:D)

    Then put this in G2:

    =IF(F2=0,0,D2/F2)

    Format as a percentage, then copy down.

    Hope this helps.

    Pete

  4. #4
    Forum Contributor
    Join Date
    06-15-2012
    Location
    London, England
    MS-Off Ver
    Excel 2007
    Posts
    100

    Re: Total Cost Split Pro Rata

    Zygron & Pete,

    I knew it would be something like a simple formula.

    A million thank you's though :D

+ 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