+ Reply to Thread
Results 1 to 7 of 7

Split Amount According to Voucher Number

Hybrid View

  1. #1
    Forum Contributor HaroonSid's Avatar
    Join Date
    02-28-2014
    Location
    india
    MS-Off Ver
    Excel 2013
    Posts
    2,095

    Post Split Amount According to Voucher Number

    Hi,
    i have some payment detail in K4:K5000,
    and voucher wise amount detail in E4:E5000

    i want first some of the Amount from K4:K5000 according to Criteria range J4:J5000

    And then the sum ammount is spilt to the party voucher wise,

    for example

    in range j4:j5000 = AL SAFA 01 / AAM = 1300000 + 100000 + 100000 = 3300000

    THEN this amount 3300000 spilt to range e4:e5000

    Screenshot_1.jpgScreenshot_2.jpg
    Attached Files Attached Files
    Use Code-Tags for showing your code :
    Please mark your question Solved if there has been offered a solution that works fine for you
    If You like solutions provided by anyone, feel free to add reputation using STAR *

  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 2406
    Posts
    44,662

    Re: Split Amount According to Voucher Number

    Try this:

    =IFERROR(1/(1/MAX(0,IF(SUMIF(D$4:D4,D4,E$4:E4)<SUMIF(J:J,D4,K:K),F4,SUMIF(J:J,D4,K:K)-SUMIF(D3:D$4,D4,E3:E$4)))),"")

    copied down. Please try to remember to keep sample files SMALL (10-20 rows, not hundreds and NEVER thousands!!)
    Attached Files Attached Files
    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
    Forum Contributor HaroonSid's Avatar
    Join Date
    02-28-2014
    Location
    india
    MS-Off Ver
    Excel 2013
    Posts
    2,095

    Re: Split Amount According to Voucher Number

    Sir,
    Thanks for the reply and the solution of my problem,

    there is little problem in formula,
    i add a peyment to
    j35 = AL QURESH FOOD 441
    K35 = 1533706

    but first amount in g31 = 1000000 not showing in formula, while second amount g32 = 533706 is showing,

    this problem is in many payment detail

    please check

    Screenshot_1.jpg

  4. #4
    Forum Contributor HaroonSid's Avatar
    Join Date
    02-28-2014
    Location
    india
    MS-Off Ver
    Excel 2013
    Posts
    2,095

    Re: Split Amount According to Voucher Number

    same problem here

    Screenshot_2.jpg

  5. #5
    Forum Guru HansDouwe's Avatar
    Join Date
    06-21-2022
    Location
    Nederland
    MS-Off Ver
    365 V2403 (Build 17330.20000)
    Posts
    6,466

    Re: Split Amount According to Voucher Number

    Here is another solution:

    Please try in F4 and copy down:
    Formula: copy to clipboard
    =IFERROR(1/(1/MAX(0,MIN(E4,SUMIF(J$4:J$99,D4,K$4:K$99)-SUMIF(D$3:D3,D4,E$3:E3)))),"")
    Attached Files Attached Files

  6. #6
    Forum Contributor HaroonSid's Avatar
    Join Date
    02-28-2014
    Location
    india
    MS-Off Ver
    Excel 2013
    Posts
    2,095

    Re: Split Amount According to Voucher Number

    Thank you very very much sir,

    its working great now

  7. #7
    Forum Guru HansDouwe's Avatar
    Join Date
    06-21-2022
    Location
    Nederland
    MS-Off Ver
    365 V2403 (Build 17330.20000)
    Posts
    6,466

    Re: Split Amount According to Voucher Number

    Thanks for the feedback and rep . Glad to have helped.

+ 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. Total Split Amount Based on Split Group
    By BillySpivy in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 07-14-2021, 05:50 AM
  2. Excel split excess amount
    By Shan54321 in forum Excel General
    Replies: 2
    Last Post: 02-19-2019, 04:30 PM
  3. Split Column amount in flatfile
    By cpmsimoes in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 11-18-2018, 09:51 PM
  4. Replies: 1
    Last Post: 02-25-2015, 10:48 AM
  5. 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
  6. filter data using unique voucher number (solved)!
    By kermitchell in forum Excel General
    Replies: 4
    Last Post: 06-26-2012, 08:30 AM
  7. How do you create voucher number in excel
    By cole in forum Excel - New Users/Basics
    Replies: 1
    Last Post: 03-20-2005, 05:06 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