SUMIFS returns 0 if more than one condition entered

Widgets

Suzanne

100

Jon

200

Frank

300

Suzanne

400

Jon

500

Frank

600

Hello world

I have problems with SUMIFS.  I want to know how many widgets Jon and Suzanne have set.  If I set SUMIFS(B:B,A:A,"Jon",A:A,"Suzanne"), I get zero.  Interestingly, if I just use a condition, like SUMIFS(B:B,A:A,"Jon"), I get 700 everything as I expect.  What I am doing wrong when I add this second condition?  I tried to put the formula in column C, so there is no chance of a circular reference, and I tried to put in a completely different table - the same results.

I use numbers 3.6.1 on a MacBook Pro running El Capitan 10.11.3

Thanks in advance for your help.

Summits() does not work for you in this case.

what you want is:

SUMIF(A, "Suzanne", B) + SUMIF (A, B, "Jon")

SUMIFS() requires the same condition for a particular line... it is necessary that Suzanne and Jon, be appointed in the same line, to include the value in the accumulation

Tags: iWork

Similar Questions

  • How to use more than one condition set?

    Dear Sir

    I want to define more than one type of condition and use it together for all objects on the page, for example, page element, button page and etc.

    Is it possible to manage in "PL/SQL tends" to condition type? ("for example = >"Request = Expression'and'current page! = 1 Expression',..) If no response, is please tell me otherwise.

    Kind regards

    Saeed.

    Hi Saeed,

    Saeed reports says:

    I would like to know the conditions CGI and browsers. Can I view the document or essay on the condition type in pl/sql?

    Yes, you can also view the conditions of CGI Environment Variables and browser in "PL/SQL Expression.

    For example:

    • "The condition type" cgi_env SERVER_NAME = Expression 1 "can be transformed into" PL/SQL Expression"as:
    OWA_UTIL.GET_CGI_ENV('SERVER_NAME') = 'MyServer'
    
    • The condition type for browser condtions can be can be transformed into "PL/SQL Expression" as:
    instr(upper(OWA_UTIL.GET_CGI_ENV('HTTP_USER_AGENT')),upper('Firefox/37.0')) > 0
    

    The following is old, but complete documentation on the Types of conditions:

    https://docs.Oracle.com/CD/E14373_01/AppDev.32/e11838/condition.htm#HTMDB25942

    I hope this helps!

    Kind regards

    Kiran

  • InstanceSumIf w / more than one condition

    Hi all

    I would like to take the sum of the instances based on several conditions.

    With the help of the functional reference:
     InstanceSumIf(<relationship>, <number-attr>, <condition>) 
    Works well with the only condition and does not compile when you try to join two or more conditions with and/or

    in our example, the following works:
     Sum exam results = (a exam, student mark, the child has attended the exam) 
    While there are compilation issues
    Sum exam results = (a exam, student mark, the child has attended the exam and the child was not late for the exam) 
    where;
    the child was involved in the review and
    the child isn't late for the exam
    are 2 attributes.

    Hope that makes sense
    Thank you

    If you have configured an entity "child" so what you have here should do the trick. If there are 4 child entity instances should be 4 instances of "results of the child should be considered.

    If this isn't the case, then I would check to make sure that everything is being built the way you expect. Try looking through the (view... generation model Build - Model) to make sure your attributes of 'child' three fall under the entity "the child."

    If the attributes of your 'child' under the 'global' entity, something is wrong.

    How do you test your rules? What makes you think they work badly?

  • more than one condition of joining 2 tables of obiee

    Hello

    I use obiee 11g.

    There are 2 tables tableA and tableB where the join condition is (tableA.col1 = tableB.col1) or (tableA.col1 is null and tableB.col1 is null)
    where can I do this type of join.
    I tried to put in the physical layer-> f (x), but in error as only columns CIHI a d opertaors are allowed.

    Thank you

    Hello

    Maybe you should go for case function.
    As it indicates that your condition.

    Kind regards
    Lacouture.

  • generate duplicates using more than one condition

    Dear experts, I have the sample data below
    create table tbl_one
    (
      p_id number(30),
      c_id number(30),
      location_a varchar2(300),
      flag varchar2(1)
    );
    
    insert into tbl_one
      (p_id, c_id, location_a, flag)
    values
      (1, 112, 'ref_1', '1');
    
    insert into tbl_one
      (p_id, c_id, location_a, flag)
    values
      (1, 113, 'ref_1', '1');
      
    insert into tbl_one
      (p_id, c_id, location_a, flag)
    values
      (1, 114, 'ref_2', '1');
      
      
    insert into tbl_one
      (p_id, c_id, location_a, flag)
    values
      (2, 115, 'ref_3', '1');
      
    insert into tbl_one
      (p_id, c_id, location_a, flag)
    values
      (2, 116, 'ref_3', '1');
    insert into tbl_one
      (p_id, c_id, location_a, flag)
    values
      (2, 117, 'ref_4', '1');
    This is the output I want below
    PID    C_ID    LOCATION_A     FLAG
    1        112     ref_1                 1
    1        113     ref_1                 1
    2        115     ref_3                 1
    2        116     ref_3                 1
    Basically, the output is obtained in all cases where the flag and the location_A is duplicated in the same nest

    I need help with the query. Any help is appreciated. Thank you

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                
    select p_id, c_id, location_a, flag from
    (
    select p_id, c_id, location_a, flag, count('Dracula') over (partition by p_id, location_a, flag) cnt
    from tbl_one
    )
    where cnt > 1
    order by p_id, c_id
    
    P_ID     C_ID     LOCATION_A     FLAG
    1     112     ref_1     1
    1     113     ref_1     1
    2     115     ref_3     1
    2     116     ref_3     1
    
  • Single - row subquery returns more than one line.

    Hi Experts

    I am faced with error

    ORA-01427: single - row subquery returns more than one line.

    MyQuery is:

    select
       TO_CHAR(T.MR_REG_DATE,'DD')                     "DATE"
       ,CASE  
         WHEN trunc((MONTHS_BETWEEN(T.MR_REG_DATE,T.MR_DOB))) between 0 and 1 THEN ' 01'||'  - ('||'0 - 1 Month)'
         WHEN trunc((MONTHS_BETWEEN(T.MR_REG_DATE,T.MR_DOB))) BETWEEN 2 AND 12 THEN ' 02'||'  - ('||'2 - 12 Months)'
         WHEN trunc((MONTHS_BETWEEN(T.MR_REG_DATE,T.MR_DOB))) BETWEEN 13 AND 60 THEN ' 03'||'  - ('||'1 - 5 Years)'
         WHEN trunc((MONTHS_BETWEEN(T.MR_REG_DATE,T.MR_DOB))) BETWEEN 61 AND 120 THEN ' 04'||'  - ('||'5 - 10 Years)'
         WHEN trunc((MONTHS_BETWEEN(T.MR_REG_DATE,T.MR_DOB))) > 120 then ' 05'||'  - ('||'> 10 Years)'
        END age
      ,count(T.Mr_Code) No_of_Patient
      ,(  SELECT count(x.mr_code) mr_code
             FROM HMIS_MRINFO X
             where X.mr_reg_date between &FRM_DATE AND &TO_DATE
               and X.mr_code NOT in (select Y.mr_code from hmis_pat_add_dis_detail Y
                                      WHERE Y.mr_reg_date between &FRM_DATE AND &TO_DATE
                                    )
            GROUP BY CASE  
                       WHEN trunc((MONTHS_BETWEEN(X.MR_REG_DATE,X.MR_DOB))) between 0 and 1 THEN ' 01'||'  - ('||'0 - 1 Month)'
                       WHEN trunc((MONTHS_BETWEEN(X.MR_REG_DATE,X.MR_DOB))) BETWEEN 2 AND 12 THEN ' 02'||'  - ('||'2 - 12 Months)'
                       WHEN trunc((MONTHS_BETWEEN(X.MR_REG_DATE,X.MR_DOB))) BETWEEN 13 AND 60 THEN ' 03'||'  - ('||'1 - 5 Years)'
                       WHEN trunc((MONTHS_BETWEEN(X.MR_REG_DATE,X.MR_DOB))) BETWEEN 61 AND 120 THEN ' 04'||'  - ('||'5 - 10 Years)'
                       WHEN trunc((MONTHS_BETWEEN(X.MR_REG_DATE,X.MR_DOB))) > 120 then ' 05'||'  - ('||'> 10 Years)'
                      END 
      ) Missing_MR
    from hmis_mrinfo T,hmis_pat_add_dis_detail M
    where T.mr_code = M.mr_code(+)
      and T.mr_reg_date between &FRM_DATE AND &TO_DATE
      &AGE_GRP
    GROUP BY T.MR_REG_DATE
             ,CASE  
               WHEN trunc((MONTHS_BETWEEN(T.MR_REG_DATE,T.MR_DOB))) between 0 and 1 THEN ' 01'||'  - ('||'0 - 1 Month)'
               WHEN trunc((MONTHS_BETWEEN(T.MR_REG_DATE,T.MR_DOB))) BETWEEN 2 AND 12 THEN ' 02'||'  - ('||'2 - 12 Months)'
               WHEN trunc((MONTHS_BETWEEN(T.MR_REG_DATE,T.MR_DOB))) BETWEEN 13 AND 60 THEN ' 03'||'  - ('||'1 - 5 Years)'
               WHEN trunc((MONTHS_BETWEEN(T.MR_REG_DATE,T.MR_DOB))) BETWEEN 61 AND 120 THEN ' 04'||'  - ('||'5 - 10 Years)'
               WHEN trunc((MONTHS_BETWEEN(T.MR_REG_DATE,T.MR_DOB))) > 120 then ' 05'||'  - ('||'> 10 Years)'
              END 
    ORDER BY T.MR_REG_DATE;
    

    Please give some advice / solution.

    I think this might do it for you

    Select

    TO_CHAR (T.MR_REG_DATE, 'DD') "DATE."

    CASE

    WHEN trunc ((MONTHS_BETWEEN (T.MR_REG_DATE, T.MR_DOB))) between 0 and 1 THEN ' 01' |'.  - ('||' 0-1 month)"

    WHEN trunc ((MONTHS_BETWEEN (T.MR_REG_DATE, T.MR_DOB))) BETWEEN 2 AND 12 THEN ' 02' |'.  - ('||' 2-12 months)"

    WHEN trunc ((MONTHS_BETWEEN (T.MR_REG_DATE, T.MR_DOB))) BETWEEN 13 AND 60 THEN ' 03' |'.  - ('||' 1-5 years)"

    WHEN trunc ((MONTHS_BETWEEN (T.MR_REG_DATE, T.MR_DOB))) BETWEEN 61 AND 120 THEN ' 04' |'.  - ('||' 5-10 years)'

    WHEN trunc ((MONTHS_BETWEEN (T.MR_REG_DATE, T.MR_DOB))) > 120 then ' 05' |'.  ' - ('| ' > 10 years).

    Age of the END

    count (T.Mr_Code) No_of_Patient

    , count (case when t.mr_code NOT in (select Y.mr_code from hmis_pat_add_dis_detail Y))

    WHERE Y.mr_reg_date between & FRM_DATE AND & TO_DATE)

    then t.mr_code

    (end) Missing_MR

    of hmis_mrinfo T, hmis_pat_add_dis_detail M

    where T.mr_code = M.mr_code (+)

    and between T.mr_reg_date & FRM_DATE AND & TO_DATE

    & AGE_GRP

    T.MR_REG_DATE GROUP

    CASE

    WHEN trunc ((MONTHS_BETWEEN (T.MR_REG_DATE, T.MR_DOB))) between 0 and 1 THEN ' 01' |'.  - ('||' 0-1 month)"

    WHEN trunc ((MONTHS_BETWEEN (T.MR_REG_DATE, T.MR_DOB))) BETWEEN 2 AND 12 THEN ' 02' |'.  - ('||' 2-12 months)"

    WHEN trunc ((MONTHS_BETWEEN (T.MR_REG_DATE, T.MR_DOB))) BETWEEN 13 AND 60 THEN ' 03' |'.  - ('||' 1-5 years)"

    WHEN trunc ((MONTHS_BETWEEN (T.MR_REG_DATE, T.MR_DOB))) BETWEEN 61 AND 120 THEN ' 04' |'.  - ('||' 5-10 years)'

    WHEN trunc ((MONTHS_BETWEEN (T.MR_REG_DATE, T.MR_DOB))) > 120 then ' 05' |'.  ' - ('| ' > 10 years).

    END

    ORDER BY T.MR_REG_DATE;

  • I work in a large project on my main composition and have always return all night but cannot give more than one inside and out...?

    Hello.

    I work in a big project on my main composition in 2015 of EI, Yosemite 10.10.5 and always return all night but cannot give more than one inside and out...?

    If I give several definitions in my composition to queue rendering, After Effects rendered all points, but only the last again and again.

    I never need to make multiple files during the night, so I don't know if this is normal or there at - there a Posibility to return more control then a?

    Kind regards

    Florian.

    It's one of these bugs CC 2015. It would be possible to set using render settings different, it seems to occur with specific formats.

    Mylenium

  • Einreihig subquery returns more than one query

    Hello

    I get the following error: einreihig subquery returns more than one request. I don't know how I should debug this application. As far as I know, subqueries can return only 1 row...: S

    I've only Oracle SQL Developer to run/test of my queries. I can run the query with ROWNUM < 5000, which gives no error. If I run with ROWNUM > 5000 and ROWNUM < 6000 then the error pops up...

    This is the query:
    with
    DATES as 
      (select (select min(REC_DATE) from STOCK) as FROM_DT, (select max(CHANGE_DATE) from STOCK_ADJUST) as TO_DT from DUAL),
    MONTHS as 
      (select add_months(trunc(FROM_DT,'MM'),ROWNUM-1) as DT from DATES connect by ROWNUM <= months_between(TO_DT, FROM_DT)+1),
    CALCULATIONS as
      (select 
        PNM.PNM_AUTO_KEY PNM_KEY,
        MONTHS.DT DT, 
        NVL((select sum(stm.qty_rec) from stock stm WHERE STM.REC_DATE < MONTHS.DT AND STM.PNM_AUTO_KEY = PNM.PNM_AUTO_KEY GROUP BY pnm_auto_key),0) INCOMING, 
        NVL((select sum(saj.qty_adj) from stock_adjust saj 
                                    inner join stock stm on saj.stm_auto_key = stm.stm_auto_key 
                                    inner join parts_master pnm on stm.pnm_auto_key = pnm.pnm_auto_key where SAJ.CHANGE_DATE < MONTHS.DT AND STM.PNM_AUTO_KEY = PNM.PNM_AUTO_KEY group by pnm_auto_key),0) OUTGOING
      from MONTHS, PARTS_MASTER PNM)
    SELECT
      ROWNUM, CALCULATIONS.PNM_KEY PNM_AUTO_KEY, CALCULATIONS.DT COUNT_DATE,CALCULATIONS.INCOMING QTY_RECEIVED, CALCULATIONS.OUTGOING QTY_USED, (CALCULATIONS.INCOMING + CALCULATIONS.OUTGOING) QTY_BALANCE
    FROM
      CALCULATIONS;
    Published by: layout of the code user574699 on November 17, 2008 02:10

    the problem is that you use the same alias in your view online as well as in your main query in the second statement-nvl...

    HTH

  • Install more than one exe to a folder or in subfolders of the same folder

    Hello!
    I want to do at least one of the following conditions:

    1. I want to install several exes (built with LV app builder) in a directory because they go hand in hand.
    2. make several subfolders under the same top-level folder EAT install exe in each of them.

    (Upper level) should be the folder of "society". The subfolders are for applications.
    For example:
    c:\company\app1\app1.exe
    c:\company\app1\app1setup.exe
    c:\company\app2\app2.exe
    etc.
    This can also be in the folder "program files".

    If I try to do, I have a few problems of implementation of the construction specifications. If I have more than one generation standard for the exe I can't add in the same folder. At least if they contain the same external files, such as DLLs.
    If I try to do by exe installer, I get an error message telling me that the same folder (my "upper tier") already exist in the registry and cannot be added again. This is also true if I try to do a new project instead of having to install several specifications in a project to build.

    I use Labview 2009 (engl.) Windows Vista (in German).

    If someone has a help for me or similar encounters problems please let me know.

    Holger

    Ok

    for the records: I found out what was the problem (and the solution).

    Both my needed apps the same external DLL. While this should be no problem it caused the new Builder installer/app and me the headaches. The new app Builder seems to build its internal paths in the registry. If you select more than one target of generation 'exe', he gets into trouble if more than one using a subdirectory 'data' with the same DLL and each subdirectory using the name of 'data' of sugested.

    The solution is simple: just give each target generation "exe" a subdirectory 'data' different like data1, data2 etc. and the problems disappear.

    Holger

  • can we have more than one type of topology for a rule?

    Hello

    5.6.4 can we have more than one type of topology for a rule? How insert and separate?

    Thank you.

    Try something like this, but be very careful that you understand the implications of the scope of the rule to a very large number of objects:

    $objectsbytype(/Host|) VMWVirtualMachine | VMWESXServer | VMWCluster | VMWDatastore /) If you do not need to check each type separately

    or

    the ((hôte où name like 'a%') Union (VMWVirtualMachine where name like would be %')) If you need condition the type of each object separately, and then join the results)

  • I can't have more than one value of function?

    I hope all of you can point me to some introductory articles/documents on function.

    I know the function is used to calculate a value and it always returns a single value.

    I want to know I can get more than one value of function? If so please share a few lines of code

    Hello

    Certainly, you CAN define functions with OUT parameters. It is generally not advisable to do so, however. Working with settings, for example, can be called from SQL, among other useful things.

    If you are wanting a function that returns multiple values, you would generally be

    -create a procedure that has several OUT parameters

    -create a function that returns a type of object that encapsulates the values that you want to return

    How to make FUNCTION returns several columns and several outputs line

    can functions return multiple values?

    oracle function to return more than one value

    You must give several values of function that can be found in Sql

  • Is it possible to have more than one person in the role of signatory of widget in a widget e-sign?

    I'm creating a widget that will require more than one signatory if a condition is met.  This form will be accessible from the outside of our Organization.  Is it possible to create a form that has more than one person in the role of credits of the signatory widget?

    Hello RiversidePaulD,

    From now on, you can have a single (unique) signer who can esign Widgets online. If your second signatory is fixed, then counter signer is the best option. Apart from that, it is not possible to have two different esigners who continue to change. I took this as a feedback however.

    -Usman

  • Select Date Max with more than one result

    Hello;

    I need to write a query that returns the maximum date for a specific transaction that is not a problem, but my problem occurs when I have several transactions with the same date max trans.


    Can someone help me write something which will return only one record from a result set that has more than one record

    Example:

    TRAN_ID - LAW #-TRANS_DATE
    -272-1111111-29/10/1999 00:00:00
    -273-1111111-29/10/1999 00:00:00
    -274-1111111-29/10/1999 00:00:00
    -275-1111111-29/10/1999 00:00:00

    You are referring to your alias at the wrong level, try this:

    select * from (
    select account_transaction_id,
           account_number,
           max_days_in_arrears,
           trans_date,
           row_number() over(partition by account_number order by trans_date desc, account_transaction_id desc) as rn
      from account_transaction atr
     where max_days_in_arrears > 90
       and account_number in (100026, 121189, 100223)
       and trans_date = (select distinct max(trans_date)
                           from account_transaction
                          where account_number = atr.account_number
                            and max_days_in_arrears > 90)
     order by account_number, trans_date
    )
    where rn = 1;
    

    and use code tags please, so that your queries can still be read easily and quickly for us to understand.

    Published by: hoek on March 23, 2009 15:48

  • Having more than one user affect the speed of my MacBook Pro?

    I have a MacBook Pro, which is now painfully slow 2011.

    I have three users each journal entry/exit in the required form.

    Having more than one user affect the speed of the Mac or not?

    Thank you

    If you open a session there should be no impact.

    You can view a report of etrecheck for more Analytisis

    www.etrecheck.com

  • Can I connect more than one headset bluetooth with Apple TV 4?

    Can I connect more than one headset bluetooth with Apple TV 4?

    No, sorry. This is a limitation for all devices Bluetooth headset.

Maybe you are looking for

  • Qosmio F30-141 - how to change the RAID to IDA in the BIOS?

    Hello world! I own computer laptop Qosmio F30-141. The problem is that I don't like vassive RAID. Please, could you tell me step by step how to change the RAID to IDA in the BIOS. Thank you in advance.

  • A60 Pro satellite fan does not

    Hi all I have a problem with my sons laptop. Intermittently, the fan does not start and after a while, the computer overheats and stops. The problem is not the fan itself, it runs for a few seconds when always first turned, but then sometimes does no

  • Re: Toshiba Tempro does not work

    When I connect Windows 7 on my laptop, I get a dialog message saying that Toshiba Tempro does not work and that Windows is trying to find a solution, although he never does. I tried delete, by downloading from the Web from Toshiba site and reinstall

  • tick count vs get time in seconds

    Hello I have a question about dt different then as 'number of cycles' and "get time in seconds" on a loop. I am attaching the picture which should describe the problem. Why is there a difference and what would be the best to do? Yves

  • Epson 510 series all-in-one printer prints black photos

    printer, epson is printing pictures in the computer, anyone able to help blacks, says epson printer is ok.