+ Reply to Thread
Results 1 to 10 of 10

Formula to sum across multiple worksheets but in different rows. Please help thank you!

  1. #1
    Registered User
    Join Date
    07-20-2013
    Location
    Anaheim, CA
    MS-Off Ver
    MS365
    Posts
    63

    Formula to sum across multiple worksheets but in different rows. Please help thank you!

    Hi There!

    I have 3 sheets. 1st tab is my consolidated tab of all General Ledger expenses on Column A. Columns C-N are the months Jan - Dec.

    I am trying to create a formula on C19, that will sum all dollar amounts for the specific general ledger expense and for the specific month.

    So for C19, it is 5010-0022 Legal Expense. What formula can be entered that will sum all the expenses across the 2 other sheets that may have the same expense?
    Attached Files Attached Files

  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
    30,824

    Re: Formula to sum across multiple worksheets but in different rows. Please help thank you

    Formula: copy to clipboard
    Please Login or Register  to view this content.


    Remove leading blanks from column A in "Consolidated"
    Attached Files Attached Files
    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 Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (both in England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2504 (Windows 11 Home 24H2 64-bit)
    Posts
    90,691

    Re: Formula to sum across multiple worksheets but in different rows. Please help thank you

    Administrative Note:

    Is your forum profile up-to-date and showing ONLY the oldest Excel PRODUCT that you need this to work for?

    Members will tailor the solutions they offer to the Office PRODUCT (Excel, NOT Windows) that you have. Please check that your forum profile is up-to-date in this respect. If you aren't sure, in Excel go to File | Account and report what it says below the MS logo at the top of that page. If your product is for Mac, please also state this.

    The four most recent Excel products are Excel 2019, Excel 2021, Excel 2024 and MS365 - if you are using MS365, please give this name along with the version number in your profile (e.g. MS365 Version 2306). This is in the About Excel section further down the Account page.

    Thanks.
    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. It's a universal courtesy.
    You can reward them by clicking on * Add Reputation below their user name on the left, if you wish.

    NB:
    as a Moderator, I never accept friendship requests.
    Forum Rules (updated August 2023): please read them here.

  4. #4
    Registered User
    Join Date
    07-20-2013
    Location
    Anaheim, CA
    MS-Off Ver
    MS365
    Posts
    63

    Re: Formula to sum across multiple worksheets but in different rows. Please help thank you

    Thank you John! I tried entering the formula, but it didnt give me a result. How can your formula also include the month in the criteria as well? So for example Legal expense is in both HR sheet and Asset Management Sheet and totals to 145K for the full year.

  5. #5
    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
    30,824

    Re: Formula to sum across multiple worksheets but in different rows. Please help thank you

    Updated

    Formula: copy to clipboard
    Please Login or Register  to view this content.


    OR

    Formula: copy to clipboard
    Please Login or Register  to view this content.


    Copy across to "Dec"
    Attached Files Attached Files
    Last edited by JohnTopley; 11-26-2024 at 03:23 AM.

  6. #6
    Registered User
    Join Date
    01-23-2013
    Location
    Dubai
    MS-Off Ver
    Office 365 Version 2409
    Posts
    9

    Re: Formula to sum across multiple worksheets but in different rows. Please help thank you

    =SUMPRODUCT(('2200 HR'!$A$7:$A$29=Consolidated!$A11)*('2200 HR'!$R$6:$AC$6=Consolidated!C$9)*('2200 HR'!$R$7:$AC$29))+SUMPRODUCT(('3000 Asset Management'!$A$7:$A$26=Consolidated!$A11)*('3000 Asset Management'!$B$6:$M$6=Consolidated!C$9)*('3000 Asset Management'!$B$7:$M$26)
    Attached Files Attached Files
    Last edited by AliGW; 11-26-2024 at 03:35 AM. Reason: Post corrected.

  7. #7
    Registered User
    Join Date
    07-20-2013
    Location
    Anaheim, CA
    MS-Off Ver
    MS365
    Posts
    63

    Re: Formula to sum across multiple worksheets but in different rows. Please help thank you

    Thank you it worked! One last question if i may, Lets say, I have many more sheets to do this. There is about 10 more sheets, but i didnt enter it for sake of keeping it rather simple. Do i just keep adding on to the formula that you created?

  8. #8
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (both in England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2504 (Windows 11 Home 24H2 64-bit)
    Posts
    90,691

    Re: Formula to sum across multiple worksheets but in different rows. Please help thank you

    Which of your helpers are you talking to? Please mention their user name. Thanks.

  9. #9
    Registered User
    Join Date
    07-20-2013
    Location
    Anaheim, CA
    MS-Off Ver
    MS365
    Posts
    63

    Re: Formula to sum across multiple worksheets but in different rows. Please help thank you

    Either one. Thanks

  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
    30,824

    Re: Formula to sum across multiple worksheets but in different rows. Please help thank you

    Ideally, you need to get your data in the same ranges in ALL sheets so a generic formula can be provided.

    You can simply add to the formula I provided but it will be rather "messy" with 10+ sheets!

+ 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] Search multiple columns from Multiple Worksheets and copy rows into a Summary Worksheet
    By kljohn01 in forum Excel Programming / VBA / Macros
    Replies: 15
    Last Post: 09-07-2017, 03:46 PM
  2. Code adding rows to multiple tables in multiple worksheets
    By gabriel78 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 01-30-2017, 05:26 AM
  3. [SOLVED] Delete Rows except rows with specific values across multiple uniquely named Worksheets
    By moosetales in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 01-23-2016, 03:04 PM
  4. [SOLVED] Copy rows from multiple worksheets with multiple criteria - greater than dynamic values
    By stackout in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 12-03-2015, 04:36 PM
  5. Replies: 1
    Last Post: 11-11-2013, 04:27 PM
  6. Extract multiple rows from multiple worksheets with Index formula
    By RedApple in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 06-10-2011, 02:33 PM
  7. Replies: 1
    Last Post: 06-18-2006, 11:40 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