+ Reply to Thread
Results 1 to 10 of 10

Calculate with multiple conditions

  1. #1
    Registered User
    Join Date
    01-29-2017
    Location
    London
    MS-Off Ver
    2013
    Posts
    15

    Calculate with multiple conditions

    Hello forum,
    I have a small problem in this picture.
    Is it possible to calculate the sum using a formula cell.
    The problem is as follows:
    In cell C7, where the number 1 and next number 2 to the cell where it is manually entered number 4 calculates all the cells where it is 1
    The second condition where the number 2 is a compilation of the first
    There are six conditions for the numbers 1,2,4,5,7,8
    I hope you understand the problemScreenshot - 29_1.png
    Last edited by sasajo1; 01-29-2017 at 06:58 AM.

  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. 2412 (Windows 11 24H2 64-bit)
    Posts
    88,730

    Re: Calculate with multiple conditions

    Welcome to the forum!

    Will you please attach a sample Excel workbook? We are not able to work with or manipulate a picture of one.

    1. Make sure that your sample data are REPRESENTATIVE of your real data. The use of unrepresentative data is very frustrating and can lead to long delays in reaching a solution.

    2. Make sure that your desired solution is also shown (mock up the results manually).

    3. Make sure that all confidential data is removed or replaced with dummy data first (e.g. names, addresses, E-mails, etc.).

    4. Try to avoid using merged cells as they cause lots of problems.

    Unfortunately the attachment icon doesn't work at the moment, so to attach an Excel file you have to do the following: just before posting, scroll down to Go Advanced and then scroll down to Manage Attachments. Now follow the instructions at the top of that screen.

    Please pay particular attention to point 2 (above): without an idea of your intended outcomes, it is often very difficult to offer appropriate advice.
    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.

  3. #3
    Registered User
    Join Date
    01-29-2017
    Location
    London
    MS-Off Ver
    2013
    Posts
    15

    Re: Calculate with multiple conditions

    I attach the file
    Attached Files Attached Files

  4. #4
    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
    29,980

    Re: Calculate with multiple conditions

    Try ....

    In BM7

    =SUMPRODUCT(($C7:$BK8=BM$5)*($D$7:$BL$8))

    Copy across to BR7

  5. #5
    Registered User
    Join Date
    01-29-2017
    Location
    London
    MS-Off Ver
    2013
    Posts
    15

    Re: Calculate with multiple conditions

    Thanks.Great

  6. #6
    Registered User
    Join Date
    01-29-2017
    Location
    London
    MS-Off Ver
    2013
    Posts
    15

    Re: Calculate with multiple conditions

    I quickly forward.
    Everything is true except:
    I send this case so you will see:
    1 - 28 wrong
    2 - 6 ok
    4 - wrong
    7 - 13 ok
    Attached Files Attached Files

  7. #7
    Forum Guru
    Join Date
    08-28-2014
    Location
    USA
    MS-Off Ver
    Excel 2019
    Posts
    18,509

    Re: Calculate with multiple conditions

    Try this modification to John's formula:
    Formula: copy to clipboard
    Please Login or Register  to view this content.
    Let us know if you have any questions.
    Consider taking the time to add to the reputation of everybody that has taken the time to respond to your query.

  8. #8
    Registered User
    Join Date
    01-29-2017
    Location
    London
    MS-Off Ver
    2013
    Posts
    15

    Re: Calculate with multiple conditions

    Yes.
    Bravo.
    Thanks

  9. #9
    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. 2412 (Windows 11 24H2 64-bit)
    Posts
    88,730

    Re: Calculate with multiple conditions

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

  10. #10
    Forum Guru
    Join Date
    08-28-2014
    Location
    USA
    MS-Off Ver
    Excel 2019
    Posts
    18,509

    Re: Calculate with multiple conditions

    You're Welcome and thank you for the feedback. I hope that you have a blessed day.

+ 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. Calculate ideal body weight (IBW) based on multiple conditions
    By smaeralbazz in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 05-07-2016, 02:14 AM
  2. Replies: 2
    Last Post: 01-14-2016, 03:53 PM
  3. Calculate Stdev for a group of cells based on multiple conditions
    By dsgeller in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 08-14-2014, 09:58 AM
  4. [SOLVED] Calculate difference if satisfy multiple conditions
    By hparnian in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 08-27-2012, 02:03 PM
  5. Calculate Values based on Multiple Conditions
    By creativefusion in forum Excel - New Users/Basics
    Replies: 2
    Last Post: 05-24-2009, 09:27 PM
  6. How to calculate values in multiple values with multi conditions
    By Curtis in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 09-06-2005, 12:05 PM
  7. [SOLVED] How to calculate values in multiple values with multi conditions
    By bj in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 09-06-2005, 04:05 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