+ Reply to Thread
Results 1 to 4 of 4

Sum of values for multiple criteria

  1. #1
    Registered User
    Join Date
    03-04-2019
    Location
    US
    MS-Off Ver
    O365 (PC) V 2108
    Posts
    14

    Sum of values for multiple criteria

    Dear all,

    I have the following situation. I have two sheets with the following tables/data:
    Sheet 1: Table1

    Company Account 1 Account 2 Sum amount
    001 220000 221000
    002 120000 121000

    Sheet 2: Table2:

    Company Account Amount
    001 220000 $1'000.00
    001 221000 $2'000.00
    002 120000 $0.00
    002 121000 $1'500.00
    003 220000 $1'900.00
    004 221000 $0.00

    What I want to do in the sheet 1, Table 1 (column D):
    • Add for each company the total amount for both accounts from sheet 2
    • By validating that the company number and two accounts from the sheet 1 correspond to the data in sheet 2 and have then the sum done
    I tried doing this by using SUMIFS but it seems that it does not work.
    SUMIFS(Table2!C:C;Table2!A:A;Table1!A2;Table2!B:B;Table1!B2&C2)
    Could you please help me on this?

    Thank you in advance for your answer.

  2. #2
    Forum Expert
    Join Date
    10-10-2016
    Location
    Sheffield
    MS-Off Ver
    365 and rarely 2016
    Posts
    3,210

    Re: Sum of values for multiple criteria

    Attach a sample workbook. Make sure there is just enough data to demonstrate your need. Include a BEFORE sheet and an AFTER sheet in the workbook if needed to show the process you're trying to complete or automate. Make sure your desired results are shown, mock them up manually if necessary.

    Remember to desensitize the data.

    Click on GO ADVANCED and then scroll down to Manage Attachments to open the upload window.

  3. #3
    Registered User
    Join Date
    03-04-2019
    Location
    US
    MS-Off Ver
    O365 (PC) V 2108
    Posts
    14

    Re: Sum of values for multiple criteria

    Dear davsth,
    Thanks for your reply, here you have the pics with the two sheets I'm currently using.
    The question remains the same.

    Sheet1:
    Sheet 1.PNG

    Sheet2:
    Sheet2.PNG

    Thanks.

  4. #4
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,926

    Re: Sum of values for multiple criteria

    vicr1, welcome to the forum

    I see no sample workbook (file) attached, did you forget to add 1, as requested? Pictures are of little value. Honestly, no one wants to re-type your data to try and solve your issue. Additionally, we would only be guessing at how your data was structured, ie. formulas, formatting, etc. Additionally, due to how some browsers behave, many of our members cannot see uploaded pictures/images. Please do not take this route.
    1. Use code tags for VBA. [code] Your Code [/code] (or use the # button)
    2. If your question is resolved, mark it SOLVED using the thread tools
    3. Click on the star if you think someone helped you

    Regards
    Ford

+ 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. Replies: 13
    Last Post: 05-24-2018, 01:18 AM
  2. [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
  3. Replies: 2
    Last Post: 05-26-2015, 07:29 PM
  4. how to add all values above row that meet multiple criteria criteria
    By skikio in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 05-18-2015, 09:40 AM
  5. [SOLVED] How to sum values based on multiple criteria with multple possibilities for each criteria?
    By boredaxel in forum Excel Formulas & Functions
    Replies: 8
    Last Post: 11-05-2013, 02:26 AM
  6. Replies: 2
    Last Post: 10-05-2011, 12:43 PM
  7. Macro to remove duplicates values and keep unique values bases on multiple criteria
    By Ricker090 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 04-16-2011, 04:37 PM

Tags for this Thread

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