+ Reply to Thread
Results 1 to 6 of 6

Get totals and remain for specific ID

  1. #1
    Forum Expert
    Join Date
    04-23-2009
    Location
    Matrouh, Egypt
    MS-Off Ver
    Excel 2013
    Posts
    6,882

    Get totals and remain for specific ID

    Hello everyone
    In my sample workbook I have two sheets .. Data sheet and the Expected Results sheet ..
    In Data sheet I have clients that have specific totals (that should be paid) in column D .. and in column G the amounts that is paid ..
    I need in the Expected Results sheet to prepare a report for those who didn't pay all the Total only .. as for who paid the total amount I didn't need to extract them ..
    In other words if the value in column G is less than the value in column D then to deal with that row ..
    For example :
    The ID process 189 in second row of table has a total 90.000 and in column G there is a value 80.000 so he didn't pay all the total amount ..
    and the same ID process pay another (second paid) in row 3 , he paid 5000 so the total is still unpaid completely
    I have attached the expected results to illustrate the form of the report needed

    Thanks advanced for help
    Attached Files Attached Files
    < ----- Please click the little star * next to add reputation if my post helps you
    Visit Forum : From Here

  2. #2
    Forum Expert
    Join Date
    11-28-2012
    Location
    Guatemala
    MS-Off Ver
    Excel 2010
    Posts
    2,394

    Re: Get totals and remain for specific ID

    Dear Yasser Khalil

    Please try this macro.
    Please Login or Register  to view this content.

  3. #3
    Forum Expert
    Join Date
    04-23-2009
    Location
    Matrouh, Egypt
    MS-Off Ver
    Excel 2013
    Posts
    6,882

    Re: Get totals and remain for specific ID

    Thanks a lot for reply and for the code
    As for results I don't need results if the Total amount is paid so as for ID Process 156 is not needed
    Another point I noticed in results in column F the value 523 .. and in column M in cell M5 the value 0 .. what's this?

  4. #4
    Forum Expert
    Join Date
    11-28-2012
    Location
    Guatemala
    MS-Off Ver
    Excel 2010
    Posts
    2,394

    Re: Get totals and remain for specific ID

    Please Login or Register  to view this content.

  5. #5
    Forum Expert
    Join Date
    04-23-2009
    Location
    Matrouh, Egypt
    MS-Off Ver
    Excel 2013
    Posts
    6,882

    Re: Get totals and remain for specific ID

    Thank you very much for this great code ..
    I tested it on original data and it is ok but took some time
    If there is a way to use arrays instead of loops I would be grateful
    If your time doesn't allow , thanks a lot for great help you offered in this issue
    Best Regards

  6. #6
    Forum Expert
    Join Date
    11-28-2012
    Location
    Guatemala
    MS-Off Ver
    Excel 2010
    Posts
    2,394

    Re: Get totals and remain for specific ID

    Dear YasserKahlil:

    You are mot welcome. Unfortunately, I have little to no expertise in arrays. I am very eager and hopeful to learn from another forum member how to use them in this case.

+ 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. Add totals to specific cells using VBA
    By Alidamalang110 in forum Excel Programming / VBA / Macros
    Replies: 10
    Last Post: 04-14-2015, 07:18 AM
  2. Enabling manual calculation on one specific workbook but all other open worbooks remain on
    By teo.paranoid in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 03-25-2014, 06:39 AM
  3. [SOLVED] Trying to get a value to remain copy into a cell and remain the same when condition met
    By shadowlost in forum Excel Programming / VBA / Macros
    Replies: 8
    Last Post: 05-24-2013, 11:47 AM
  4. Summary of Totals per Amount, but Non Specific
    By brandi97 in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 09-25-2012, 03:11 PM
  5. Formula for totals relating to specific descriptions
    By neal_dodd in forum Excel General
    Replies: 5
    Last Post: 10-06-2010, 06:15 AM
  6. Column totals to remain when deleted
    By rushdenx1 in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 09-25-2007, 04:56 AM
  7. Totals for specific values
    By Breezeman in forum Excel - New Users/Basics
    Replies: 2
    Last Post: 07-19-2007, 12:45 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