+ Reply to Thread
Results 1 to 15 of 15

sort duplicates clients & calculation for each sheet based on two cases

  1. #1
    Forum Contributor
    Join Date
    07-14-2021
    Location
    LY
    MS-Off Ver
    2019
    Posts
    271

    sort duplicates clients & calculation for each sheet based on two cases

    I want in RESULT sheet show the clients calculation as I put in requirement sheet .
    in SH sheet the PAID word in column E will put amount in column D(DEBIT) by brings from the lastrow in column I , the NOT PAID word in column E will put amount in column E (CREDIT) in RESULT sheet by brings from the lastrow in column I .
    in WS sheet the PAID word in column E will put amount in column E(CREDIT) by brings from the lastrow in column I , the NOT PAID word in column E will put amount in column D (DEBIT) in RESULT sheet by brings from the lastrow in column I .
    in RS sheet the PAID , NOT PAID wordS in column E will put amount in column E (CREDIT) in RESULT sheet by brings from the lastrow in column I .
    in TR sheet the PAID , NOT PAID wordS in column E will put amount in column D (DEBIT ) in RESULT sheet by brings from the lastrow in column I .
    and will brings the NAME and DATE.
    there is two formulas for each name and sometimes one formula in column E in RESULT sheet as I did it .I put some clients to see how should calculate.
    in column C should merge sheet name ,INVOICE NO and CONDITION for each sheet.
    should clear data in RESULT sheet from row2 before gettingf data. also I would make the old date is priorety across sheet for the same client and sort clients from A-Z andd fill mpty cells by hayphen or cells contains zero even if it contains formula .
    Last thing exclude SL ID sheets from my requirements

    I hope to use sorting way to deal with big data in future( 6000 rows for each sheet)
    Attached Files Attached Files
    Last edited by Mussa-A; 03-23-2024 at 01:58 PM.

  2. #2
    Forum Expert
    Join Date
    05-05-2015
    Location
    UK
    MS-Off Ver
    Microsoft Excel for Microsoft 365 MSO (Version 2402 Build 16.0.17328.20068) 64-bit
    Posts
    28,205

    Re: sort duplicates clients & calculation for each sheet based on two cases

    Removed by JT
    Last edited by JohnTopley; 03-23-2024 at 10:07 AM.
    If that takes care of your original question, please select Thread Tools from the menu link above and mark this thread as SOLVED.

  3. #3
    Forum Contributor
    Join Date
    07-14-2021
    Location
    LY
    MS-Off Ver
    2019
    Posts
    271

    Re: sort duplicates clients & calculation for each sheet based on two cases

    Your "Requirement" results do not match the data in the supplied file! Yet another mis-post
    I don't understand what's wrong?!

  4. #4
    Forum Expert
    Join Date
    05-05-2015
    Location
    UK
    MS-Off Ver
    Microsoft Excel for Microsoft 365 MSO (Version 2402 Build 16.0.17328.20068) 64-bit
    Posts
    28,205

    Re: sort duplicates clients & calculation for each sheet based on two cases

    Errors in WS where Invoice No/Condition in wrong columns and some calculation in "Requirements" are wrong!

    Please Login or Register  to view this content.
    Attached Files Attached Files
    Last edited by JohnTopley; 03-23-2024 at 01:51 PM. Reason: Update output formatting

  5. #5
    Forum Contributor
    Join Date
    07-14-2021
    Location
    LY
    MS-Off Ver
    2019
    Posts
    271

    Re: sort duplicates clients & calculation for each sheet based on two cases

    Errors in WS where Invoice No/Condition in wrong columns and some calculation in "Requirements" are wrong!
    ok I\ve just found one error, sorry about it!
    but there is problem about formulas for each name as I said
    there is two formulas for each name and sometimes one formula in column E in RESULT sheet as I did it
    just see the first row for each name how should be the first formula , the second formula will depend on first formula for name separately , not as you did it for all of names depend on each others of them in calculation . each name will calculate individually by use two formulas .

  6. #6
    Forum Expert
    Join Date
    05-05-2015
    Location
    UK
    MS-Off Ver
    Microsoft Excel for Microsoft 365 MSO (Version 2402 Build 16.0.17328.20068) 64-bit
    Posts
    28,205

    Re: sort duplicates clients & calculation for each sheet based on two cases

    Please Login or Register  to view this content.
    Attached Files Attached Files
    Last edited by JohnTopley; 03-24-2024 at 03:53 AM.

  7. #7
    Forum Contributor
    Join Date
    07-14-2021
    Location
    LY
    MS-Off Ver
    2019
    Posts
    271

    Re: sort duplicates clients & calculation for each sheet based on two cases

    thanks , but why doesn't show minus values in BALANCE column when values in CREDIT column bigger than DEBIT column ?!

  8. #8
    Forum Expert
    Join Date
    05-05-2015
    Location
    UK
    MS-Off Ver
    Microsoft Excel for Microsoft 365 MSO (Version 2402 Build 16.0.17328.20068) 64-bit
    Posts
    28,205

    Re: sort duplicates clients & calculation for each sheet based on two cases

    See attached
    Attached Files Attached Files

  9. #9
    Forum Contributor
    Join Date
    07-14-2021
    Location
    LY
    MS-Off Ver
    2019
    Posts
    271

    Re: sort duplicates clients & calculation for each sheet based on two cases

    when the name contains two rows to calculation then the second formula is wrong . the code will repeat first formula in second row , should not do that !
    highlighted some cells contains error formula
    Attached Files Attached Files

  10. #10
    Forum Expert
    Join Date
    05-05-2015
    Location
    UK
    MS-Off Ver
    Microsoft Excel for Microsoft 365 MSO (Version 2402 Build 16.0.17328.20068) 64-bit
    Posts
    28,205

    Re: sort duplicates clients & calculation for each sheet based on two cases

    See attached
    Attached Files Attached Files

  11. #11
    Forum Contributor
    Join Date
    07-14-2021
    Location
    LY
    MS-Off Ver
    2019
    Posts
    271

    Re: sort duplicates clients & calculation for each sheet based on two cases

    it's perfect !
    last thing,please: can you make the formulas as values?
    as bold some lines I try to do that,but gives error calculation.
    Please Login or Register  to view this content.

  12. #12
    Forum Expert
    Join Date
    05-05-2015
    Location
    UK
    MS-Off Ver
    Microsoft Excel for Microsoft 365 MSO (Version 2402 Build 16.0.17328.20068) 64-bit
    Posts
    28,205

    Re: sort duplicates clients & calculation for each sheet based on two cases

    Please Login or Register  to view this content.
    [/COLOR]
    Last edited by JohnTopley; 03-26-2024 at 03:33 AM.

  13. #13
    Forum Contributor
    Join Date
    07-14-2021
    Location
    LY
    MS-Off Ver
    2019
    Posts
    271

    Re: sort duplicates clients & calculation for each sheet based on two cases

    then will take much time to running the code .
    is there any way to avoid implementing for the whole column? I mean just searching for numbers are existed in column instead of search for empty cell that's why colud make slow th code as I think.

  14. #14
    Forum Expert
    Join Date
    05-05-2015
    Location
    UK
    MS-Off Ver
    Microsoft Excel for Microsoft 365 MSO (Version 2402 Build 16.0.17328.20068) 64-bit
    Posts
    28,205

    Re: sort duplicates clients & calculation for each sheet based on two cases

    Please Login or Register  to view this content.

  15. #15
    Forum Contributor
    Join Date
    07-14-2021
    Location
    LY
    MS-Off Ver
    2019
    Posts
    271

    Re: sort duplicates clients & calculation for each sheet based on two cases

    thanks for every thing .

+ 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. [SOLVED] sort duplicates names consecutively under each other of them based on column
    By Alaa-A in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 03-22-2023, 03:57 AM
  2. [SOLVED] sort data based on date for multiple cases
    By Mussa-A in forum Excel Programming / VBA / Macros
    Replies: 15
    Last Post: 11-29-2021, 09:07 AM
  3. [SOLVED] create reports for clients from two sheets to sheet summery based on selected cell
    By MKLAQ in forum Excel Programming / VBA / Macros
    Replies: 12
    Last Post: 02-13-2021, 07:58 AM
  4. [SOLVED] Calculation how many calls/cases and agent can work Contact Centre
    By MarkoGreenio in forum Excel General
    Replies: 11
    Last Post: 07-08-2019, 04:18 AM
  5. [SOLVED] Sort and remove duplicates based on 3 columns
    By gauti14 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 12-19-2016, 04:51 PM
  6. [SOLVED] Need to Create a new Analysis Sheet based on Existing Sheets Failed Test cases
    By Kandavalli.Kiran in forum Excel Programming / VBA / Macros
    Replies: 14
    Last Post: 01-11-2015, 01:44 AM
  7. [SOLVED] Overwriting Duplicates in certain cases
    By marshall in forum Excel - New Users/Basics
    Replies: 1
    Last Post: 02-22-2006, 04:20 AM

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