+ Reply to Thread
Results 1 to 18 of 18

Merge amounts for each sheet alone with calculation across sheet based on cell value(name)

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

    Merge amounts for each sheet alone with calculation across sheet based on cell value(name)

    Hi experts ,
    I need to merge amounts for each sheet alone based on cell value (B5) in SL sheet contains name and should match with column C for each sheet alone also based on word(NOT PAID) and ignore PAID in column E should match with B9 in SL sheet and calculation across sheets . when merge amounts should brings amounts from column I for the last row contains TOTAL word in column A .
    I take MUSS name as in example in SL sheet inside B5
    when sum for SH sheet =880, WS sheet=2503, RS sheet=2490, TR sheet=550
    so the final result should be in B7= 880-2503+2490-550=317
    I put expected result in last sheet how should show in B7 for SL sheet .
    thanks
    Attached Files Attached Files
    Last edited by Mussa-A; 03-20-2024 at 09:19 AM. Reason: error in details

  2. #2
    Forum Expert
    Join Date
    07-20-2011
    Location
    Mysore, India.
    MS-Off Ver
    Excel 2019
    Posts
    8,587

    Re: Merge amounts for each sheet alone with calculation across sheet based on cell value(n

    Code for macro. The macro linked to Button in SL sheet.
    PAID and NOT PAID are not there in file.

    Please Login or Register  to view this content.
    Attached Files Attached Files
    Last edited by kvsrinivasamurthy; 03-20-2024 at 08:54 AM.
    Pl note
    Array formula should be confirmed with Ctrl+Shift+Enter keys together.
    If answere is satisfactory press * to add reputation.

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

    Re: Merge amounts for each sheet alone with calculation across sheet based on cell value(n

    Hi
    sorry about my mistake . I was editing my file because I make a big mistake .I hope to accept my apologies !
    please see again my file and details .

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

    Re: Merge amounts for each sheet alone with calculation across sheet based on cell value(n

    by the way seem the merging is error based on your code .
    just use the last row contains TOTAL row until doesn't repeat summing amounts have already sum and show error by sum twice. just take the amount for lastrow as I did it in my example , you will note the error.
    like SH sheet for MUSS name and NOT PAID will be = 680+200=880
    Last edited by Mussa-A; 03-20-2024 at 09:01 AM.

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

    Re: Merge amounts for each sheet alone with calculation across sheet based on cell value(n

    PAID and NOT PAID are not there in file.
    are you sure ?!
    I downloaded the file and they are existed in column E!

  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,206

    Re: Merge amounts for each sheet alone with calculation across sheet based on cell value(n

    There is no "PAID" or "NOT PAID" in any column
    If that takes care of your original question, please select Thread Tools from the menu link above and mark this thread as SOLVED.

  7. #7
    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,206

    Re: Merge amounts for each sheet alone with calculation across sheet based on cell value(n

    Look at file #2: you obviously uploaded a new file!

    And do not put dark font (black) on dark backgrounds (header rows)!

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

    Re: Merge amounts for each sheet alone with calculation across sheet based on cell value(n

    There is no "PAID" or "NOT PAID" in any column
    do you want cell in SL sheet contains NOT PAID?
    if it's so see the edited file
    but it's really existed in column E I thought to could deal without cell in SL sheet
    Look at file #2: you obviously uploaded a new file!
    yes and this is my bad ! and I informed kvsrinivasamurthy.

  9. #9
    Registered User
    Join Date
    09-18-2023
    Location
    Geogia, USA
    MS-Off Ver
    365
    Posts
    99

    Re: Merge amounts for each sheet alone with calculation across sheet based on cell value(n

    I had been playing around a little bit with it ...here is a way to do it.

    Please Login or Register  to view this content.
    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,206

    Re: Merge amounts for each sheet alone with calculation across sheet based on cell value(n

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

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

    Re: Merge amounts for each sheet alone with calculation across sheet based on cell value(n

    Hi jdelano
    seem to this is what I want it , but I need more time to make sure there is no problem.
    I will inform you soon.

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

    Re: Merge amounts for each sheet alone with calculation across sheet based on cell value(n

    thanks JT
    I'm afraid your merging is wrong .
    I hope to read this post#4 maybe you understand it and download the file again to find out what you're missed .your result is different what jdelano got it, and me .
    Last edited by Mussa-A; 03-20-2024 at 10:32 AM.

  13. #13
    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,206

    Re: Merge amounts for each sheet alone with calculation across sheet based on cell value(n

    Updated version in Post #10 based on KVS code

  14. #14
    Registered User
    Join Date
    09-18-2023
    Location
    Geogia, USA
    MS-Off Ver
    365
    Posts
    99

    Re: Merge amounts for each sheet alone with calculation across sheet based on cell value(n

    Quote Originally Posted by Mussa-A View Post
    Hi jdelano
    seem to this is what I want it , but I need more time to make sure there is no problem.
    I will inform you soon.
    Okay, sounds good

    EDIT: note that on sheet ws the condition was in col D not E, so I switched the invoice and condition columns
    Last edited by jdelano; 03-20-2024 at 11:06 AM.

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

    Re: Merge amounts for each sheet alone with calculation across sheet based on cell value(n

    @jdelano
    EDIT: note that on sheet ws the condition was in col D not E, so I switched the invoice and condition columns
    not really understand it !
    all of sheets contains PAID,NOT PAID in column E
    it's perfect
    many thanks buddy
    Last edited by Mussa-A; 03-20-2024 at 10:54 PM.

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

    Re: Merge amounts for each sheet alone with calculation across sheet based on cell value(n

    thank you so much JT.

  17. #17
    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,206

    Re: Merge amounts for each sheet alone with calculation across sheet based on cell value(n

    Thank you for the rep.

  18. #18
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,853

    Re: Merge amounts for each sheet alone with calculation across sheet based on cell value(n

    If that takes care of your original question, please choose Thread Tools from the menu link above and mark this thread as SOLVED.
    Ali


    Enthusiastic self-taught user of MS Excel who's always learning!
    Don't forget to say "thank you" in your thread to anyone who has offered you help.
    You can reward them by clicking on * Add Reputation below their user name on the left, if you wish.

    Forum Rules (updated August 2023): please read them here.

+ 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] merge amounts for each sheet based on duplicates dates & one word
    By Maklil in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 03-09-2024, 12:25 AM
  2. [SOLVED] Merge amounts for each duplicates tranfer number separately & paste data to Master sheet
    By zameel in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 11-02-2023, 06:06 AM
  3. [SOLVED] sum amounts for each sheet based on month
    By Hasson in forum Excel Programming / VBA / Macros
    Replies: 17
    Last Post: 09-05-2023, 04:39 AM
  4. Copy data to new sheet based on < or > amounts
    By jlang11 in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 10-29-2021, 01:06 PM
  5. [SOLVED] Autopopulate a cell on one sheet, based on a calculation on another sheet
    By jjward101 in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 10-21-2021, 09:34 PM
  6. Formula to add amounts based on text in a column from a different sheet
    By kylecampbellcore in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 07-17-2014, 09:33 AM
  7. [SOLVED] Hide/unhide sheet macro based on cell calculation
    By Greg Fisher in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 05-26-2005, 05:19 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