+ Reply to Thread
Results 1 to 7 of 7

Sum amounts from different worksheet with multiple criteria

  1. #1
    Registered User
    Join Date
    01-19-2012
    Location
    Perth
    MS-Off Ver
    Microsoft Office 365 - Excel 2019
    Posts
    15

    Sum amounts from different worksheet with multiple criteria

    Hi

    Thanking you in advance for your assistance.

    In the attached spreadsheet, if you look at the summary tab, i want a formula in the summary tab say in say cell ref E5 which basically looks at the GL code in column C in (summary sheet) and looks up all amounts related to that code in the costs sheet if the cost centre is ICT (cell ref D2 in summary sheet) and if there is no value than it returns a blank or zero. Similarly in the summary tab is cell D2 is Finance then all the costs related to a particular GL code in the costs sheet related to finance only will appear in that cell in the summary sheet. Hope this makes sense.

    Thanks so much
    Attached Files Attached Files

  2. #2
    Forum Guru Pete_UK's Avatar
    Join Date
    12-31-2011
    Location
    Warrington, England
    MS-Off Ver
    Office 2019 (still learning)
    Posts
    24,791

    Re: Sum amounts from different worksheet with multiple criteria

    You can use this formula in cell E5 of the Summary sheet:

    =SUMIFS(Costs!H:H,Costs!$C:$C,TRIM($D$2),Costs!$B:$B,$C5)

    then copy across and down as required.

    Hope this helps.

    Pete

  3. #3
    Registered User
    Join Date
    01-19-2012
    Location
    Perth
    MS-Off Ver
    Microsoft Office 365 - Excel 2019
    Posts
    15

    Re: Sum amounts from different worksheet with multiple criteria

    Dear Pete.

    Thank you so much for the prompt reply and helping me with a brilliant solution to my query. Thank you so so much. Ever so grateful. Bless

  4. #4
    Registered User
    Join Date
    01-19-2012
    Location
    Perth
    MS-Off Ver
    Microsoft Office 365 - Excel 2019
    Posts
    15

    Re: Sum amounts from different worksheet with multiple criteria

    Thank you so much once again Pete for your reply and solution. You are a legend

  5. #5
    Forum Guru Pete_UK's Avatar
    Join Date
    12-31-2011
    Location
    Warrington, England
    MS-Off Ver
    Office 2019 (still learning)
    Posts
    24,791

    Re: Sum amounts from different worksheet with multiple criteria

    You're welcome - glad to help, and thanks for the rep.

    You will notice that I used ...TRIM($D$2)... in the formula, and that is because you had two trailing spaces after ICT in that cell - you should try to avoid trailing spaces in your input, or you could use a data validation drop-down in that cell to make things easier.

    If that takes care of your original question, please take a moment to select Thread Tools from the menu above and to the right of your first post in this thread, and mark the thread as SOLVED.

    Also, your profile states that you are using Excel 2003, but you wouldn't be able to use SUMIFS in that version, so please update your User CP to show your current version.

    Pete

  6. #6
    Registered User
    Join Date
    01-19-2012
    Location
    Perth
    MS-Off Ver
    Microsoft Office 365 - Excel 2019
    Posts
    15

    Re: Sum amounts from different worksheet with multiple criteria

    Once again thank you so much. I appreciate your help. I will also change the CP as i am using the latest version of excel. I am not sure what training spaces mean but will have a look and amend. Thank you so so much.

  7. #7
    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
    81,247

    Re: Sum amounts from different worksheet with multiple criteria

    You have not yet updated your profile - please do so ASAP.

    Trailing spaces are spaces that appear after text in a cell.
    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] Provide total items + amounts when compile data in multiple worksheet + alignment (part 2)
    By jamewoong in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 12-30-2015, 11:58 PM
  2. [SOLVED] Provide total items + amounts when compile data in multiple worksheet
    By jamewoong in forum Excel Programming / VBA / Macros
    Replies: 9
    Last Post: 12-29-2015, 05:53 PM
  3. Problems adding large amounts of data with multiple criteria
    By jcroque89 in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 06-12-2014, 12:15 PM
  4. [SOLVED] SUMIFS amounts with multiple criteria
    By Lucille Boshoff in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 03-31-2014, 07:21 AM
  5. [SOLVED] How to sum amounts with multiple criteria
    By rbarnard in forum Excel Formulas & Functions
    Replies: 9
    Last Post: 09-30-2013, 04:53 PM
  6. [SOLVED] Calculating amounts in a single currency from a list of multiple currency amounts
    By Romsky in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 07-03-2013, 12:22 PM
  7. How to populate a second worksheet based on multiple criteria from another worksheet
    By bruce.shoemake in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 12-14-2012, 05:28 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