+ Reply to Thread
Results 1 to 6 of 6

Looking up values based on multiple conditions then put sum the values in anther sheet.

  1. #1
    Registered User
    Join Date
    08-05-2017
    Location
    Vietnam
    MS-Off Ver
    2007
    Posts
    7

    Looking up values based on multiple conditions then put sum the values in anther sheet.

    Dear Professionals
    I have two sheets. Sheet 1 has goods codes of companies. I want to sum all a specific goods code of a company then put it in another sheet.
    For example: D5 of sheet 2 will get the sum of c17 to c20 of sheet 1, E4 of sheet 2 will get the sum of c11 to c13 of sheet 1.
    I tried many functions but i did not get the right result.
    Please take a look at it and help me solve this.
    Thank you and regards.
    Attached Files Attached Files

  2. #2
    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. 2407 (Windows 11 23H2 64-bit)
    Posts
    83,113

    Re: Looking up values based on multiple conditions then put sum the values in anther sheet

    Welcome to the forum!

    In B4 copied across and down:

    =SUMIFS('Sheet 1'!$C$2:$C$30,'Sheet 1'!$A$2:$A$30,'Sheet 2'!$A4,'Sheet 1'!$B$2:$B$30,'Sheet 2'!B$3)
    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.

  3. #3
    Forum Guru MarvinP's Avatar
    Join Date
    07-23-2010
    Location
    Woodinville, WA
    MS-Off Ver
    Office 365
    Posts
    16,169

    Re: Looking up values based on multiple conditions then put sum the values in anther sheet

    Hi cuchi and welcome to the forum,

    This problem was made for Pivot Tables. See the attached where I've done a Pivot Table on sheet 2 of your data. Time to learn about Pivot Tables? No formulas needed...

    PT Names Codes ExcelEX.xls
    One test is worth a thousand opinions.
    Click the * Add Reputation below to say thanks.

  4. #4
    Registered User
    Join Date
    08-05-2017
    Location
    Vietnam
    MS-Off Ver
    2007
    Posts
    7

    Re: Looking up values based on multiple conditions then put sum the values in anther sheet

    it works! You are awesome, Mrs AliGW. Thank you so much, thank you.

  5. #5
    Registered User
    Join Date
    08-05-2017
    Location
    Vietnam
    MS-Off Ver
    2007
    Posts
    7

    Re: Looking up values based on multiple conditions then put sum the values in anther sheet

    Quote Originally Posted by MarvinP View Post
    Hi cuchi and welcome to the forum,

    This problem was made for Pivot Tables. See the attached where I've done a Pivot Table on sheet 2 of your data. Time to learn about Pivot Tables? No formulas needed...

    Attachment 531883
    Thank you so much, another solution by using Pivot Table. Thank you Marvin P. Thank you.

  6. #6
    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. 2407 (Windows 11 23H2 64-bit)
    Posts
    83,113

    Re: Looking up values based on multiple conditions then put sum the values in anther sheet

    You're welcome!

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

+ 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. Finding values based on multiple conditions
    By T21PAC in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 01-31-2014, 12:21 PM
  2. Replies: 1
    Last Post: 10-01-2013, 02:41 AM
  3. Replies: 5
    Last Post: 09-25-2013, 12:31 AM
  4. VBA copy values to another sheet based on conditions
    By dusoo in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 06-20-2013, 01:24 AM
  5. [SOLVED] Formula to get look up values based on multiple conditions
    By Excel Dumbo in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 03-29-2013, 12:17 AM
  6. [SOLVED] Trying to add conditioning and values based on multiple conditions.
    By SadenShard in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 12-27-2011, 12:58 AM
  7. Calculate Values based on Multiple Conditions
    By creativefusion in forum Excel - New Users/Basics
    Replies: 2
    Last Post: 05-24-2009, 09:27 PM
  8. [SOLVED] Cell values based upon multiple conditions
    By Ryan M via OfficeKB.com in forum Excel - New Users/Basics
    Replies: 2
    Last Post: 07-18-2005, 10:05 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