+ Reply to Thread
Results 1 to 8 of 8

Sum with 2 conditions

  1. #1
    Registered User
    Join Date
    09-01-2016
    Location
    sWITZERLAND
    MS-Off Ver
    2013
    Posts
    14

    Sum with 2 conditions

    Hi All

    I am trying to solve one function that keeps me awake at night.

    I need to sum data under two conditions

    if in column A data is not marked green & in column B in respective row chosen txt is shown ( different sites, paris, madrid etc) then sum respective positions in column A
    I managed to get close with following function however if there is more then 1 marked green then it breaks the sumup
    =SUMIFS($A5:$A369 ; $B5:$B369 ; B195(cell with the txt) ; $B5:B369 ; SummeWennFarbe(A5:$A369;$B$39(cell with green colour)))
    Last edited by KaBom; 09-01-2016 at 05:50 AM.

  2. #2
    Forum Expert
    Join Date
    05-30-2012
    Location
    The Netherlands
    MS-Off Ver
    Office 365
    Posts
    14,987

    Re: Sum with 2 conditions

    You get better result on your question if you add a small excel file, without confidential information.

    Please also add the expected results manualy in your file.
    Notice my main language is not English.

    I appreciate it, if you reply on my solution.

    If you are satisfied with the solution, please mark the question solved.

    You can add reputation by clicking on the star * add reputation.

  3. #3
    Registered User
    Join Date
    09-01-2016
    Location
    sWITZERLAND
    MS-Off Ver
    2013
    Posts
    14

    Re: Sum with 2 conditions

    Attachment 478294 Attachment 478295

  4. #4
    Forum Expert
    Join Date
    05-30-2012
    Location
    The Netherlands
    MS-Off Ver
    Office 365
    Posts
    14,987

    Re: Sum with 2 conditions

    when i click on the file I get the message below.

    Invalid Attachment specified. If you followed a valid link, please notify the administrator.
    Maybe this is a forumissue, since I also notice this with another threat.

  5. #5
    Registered User
    Join Date
    09-01-2016
    Location
    sWITZERLAND
    MS-Off Ver
    2013
    Posts
    14

    Re: Sum with 2 conditions

    Hi Try the other link seems to work it is only image though

    I try to attach the excel here againExample.xlsx

  6. #6
    Forum Expert
    Join Date
    05-30-2012
    Location
    The Netherlands
    MS-Off Ver
    Office 365
    Posts
    14,987

    Re: Sum with 2 conditions

    You can filter on color, but I don't believe you can sum on a color.

    Probably it can be done with VBA, but that is not my expertice.


    If you can add why the cells are collered, we can use that argument in a formula.

  7. #7
    Registered User
    Join Date
    09-01-2016
    Location
    sWITZERLAND
    MS-Off Ver
    2013
    Posts
    14

    Re: Sum with 2 conditions

    The cells are coloured manualy to indicate they should belong to Low cost country

  8. #8
    Registered User
    Join Date
    09-01-2016
    Location
    sWITZERLAND
    MS-Off Ver
    2013
    Posts
    14

    Re: Sum with 2 conditions

    So this cannot be done?

    In any case

    Thank you for your help anyway

+ 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: 2
    Last Post: 01-14-2016, 03:53 PM
  2. Replies: 6
    Last Post: 04-30-2015, 09:10 AM
  3. Replies: 1
    Last Post: 03-26-2014, 02:14 PM
  4. [SOLVED] Vlookup - Country conditions (Multiple conditions)
    By dluhut in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 04-26-2013, 11:42 AM
  5. [SOLVED] Text results with two conditions (lookup with two conditions)
    By Davzx in forum Excel General
    Replies: 8
    Last Post: 05-25-2012, 03:08 AM
  6. convert the if conditions to OR conditions
    By nynamyna in forum Excel Programming / VBA / Macros
    Replies: 11
    Last Post: 03-09-2011, 06:41 PM
  7. How to multiple conditions to validate more than 2 conditions to .
    By Bhuvana Govind in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 01-28-2005, 04:06 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