+ Reply to Thread
Results 1 to 7 of 7

Split an amount evenly with condition

Hybrid View

  1. #1
    Registered User
    Join Date
    03-04-2014
    Location
    London
    MS-Off Ver
    Excel 2003
    Posts
    4

    Split an amount evenly with condition

    Hello,

    I'm trying for a while to do an excel that splits an amount of money imputed for every month evenly between the employees but with a condition of 1/2 for the last two. I would be more than grateful for any ideas.

    Thanks a lot.

    JustM3-excel.xlsx

  2. #2
    Forum Moderator alansidman's Avatar
    Join Date
    02-02-2010
    Location
    Steamboat Springs, CO
    MS-Off Ver
    MS Office 365 insider Version 2504 Win 11
    Posts
    24,717

    Re: Split an amount evenly with condition

    See attached.
    Attached Files Attached Files
    Alan עַם יִשְׂרָאֵל חַי


    Change an Ugly Report with Power Query
    Database Normalization
    Complete Guide to Power Query
    Man's Mind Stretched to New Dimensions Never Returns to Its Original Form

  3. #3
    Registered User
    Join Date
    03-04-2014
    Location
    London
    MS-Off Ver
    Excel 2003
    Posts
    4

    Re: Split an amount evenly with condition

    thank you martin I'm not that familiar with excel i would be more than grateful if you could tell me where to put this condition. many thanks

  4. #4
    Forum Expert martindwilson's Avatar
    Join Date
    06-23-2007
    Location
    London,England
    MS-Off Ver
    office 97 ,2007
    Posts
    19,320

    Re: Split an amount evenly with condition

    =IF(ROWS($A$1:A1)>11,D$15/24,D$15/12) will do it for your example
    but more generic
    =IF(ROWS($A$1:A1)<COUNTA($A$2:$A$200)-1,D$15/(COUNTA($A$2:$A$20)-1),D$15/(2*(COUNTA($A$2:$A$20)-1))) where d15 is where the value is
    Last edited by martindwilson; 03-04-2014 at 09:38 AM.
    "Unless otherwise stated all my comments are directed at OP"

    Mojito connoisseur and now happily retired
    where does code go ?
    look here
    how to insert code

    how to enter array formula

    why use -- in sumproduct
    recommended reading
    wiki Mojito

    how to say no convincingly

    most important thing you need
    Martin Wilson: SPV
    and RSMBC

  5. #5
    Registered User
    Join Date
    03-04-2014
    Location
    London
    MS-Off Ver
    Excel 2003
    Posts
    4

    Re: Split an amount evenly with condition

    thanks a lot for the fast reply. One question though, for the values of the last two, is it possible to be exactly half of the value of the others? For example if the other ones are getting 18, the last two to get 9 each. Hope it makes sense.

    many thanks

  6. #6
    Forum Expert martindwilson's Avatar
    Join Date
    06-23-2007
    Location
    London,England
    MS-Off Ver
    office 97 ,2007
    Posts
    19,320

    Re: Split an amount evenly with condition

    both ways i suggested here
    Attached Files Attached Files

  7. #7
    Registered User
    Join Date
    03-04-2014
    Location
    London
    MS-Off Ver
    Excel 2003
    Posts
    4

    Re: Split an amount evenly with condition

    wow ure a star! thank you :D

+ 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. How to Split a number in one cell evenly over several?
    By 975873 in forum Excel Formulas & Functions
    Replies: 10
    Last Post: 03-16-2015, 07:55 AM
  2. Replies: 5
    Last Post: 05-08-2014, 10:42 AM
  3. VBA String Split after certain amount of the same delimeter
    By Alla88 in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 03-12-2013, 10:18 AM
  4. [SOLVED] Find based on lowest occurance and condition, then ditribute evenly.
    By drSwank in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 01-31-2013, 05:57 PM
  5. Replies: 1
    Last Post: 11-29-2010, 09:09 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