SUMProduct

Hello,
Why doesn't the sumproduct work with CX?
for example this formula would not work
=SUMPRODUCT((Range1=Criteria1),(Range2=Criteria2),--(Range3=Criteria3),Range2Sum)
Any Ideas?????

To update the board on the issue, I put here some explanation on the problem. The formula that does not work looks like this:
SUMPRODUCT(1(A1:A9=H1),1(B1:B9=I1)1(C1:C9=J1),D1:D9)
Hi Chris,
The formula you are using is an array formula, for example, A1:A9=H1 means you go through each cell and do the comparison and return array (which is then used by sumproduct). Unfortunately, we do not support array formulas so far u2013 we support arrays as arguments, but not as return values of functions.  You can do the same thing if you put results of comparisons (A1=H1, A2=H1, ..A9=H1) into some cells and then use those cells as range for sumproduct.
Margaret

Similar Messages

  • Random numbers in sumproduct function

      have no success with this:     e33 has 1,  f33 has 2,  g33 has 3.    k22 has 4,  k25 has 5,  k32 has 6.       expecting (1x4) + (2x5) + (3x6) = 4+10+18= 32
        it's the outer product in matrix algebra.     in apl it's 1 2 3 +.x 4 5 6 = 32       
         how is a random list or range  of  values entered?     thanks.     don mattern

    I could be wrong, but I do not believe numbers has the power to make matrix calculations.  I might suggest excel if that is an option.
    This is how I would say that you need to do matrix multiplication.  I am going to assume you know all the rules for multiplying matrices.  First you need to have 4 separate tables with no header rows, no footer rows, nor header columns.
    I will demonstrate with a (3x3)(3x3).  The first two tables are the Matrices that you are multiplying.
    1
    2
    3
    4
    5
    6
    7
    8
    9
    9
    8
    7
    6
    5
    4
    3
    2
    1
    The third is the Transpose of Table 2.  In row 1 column A, place this formula =INDEX(TRANSPOSE(Table 2::$A$1:$C$3),ROW(),COLUMN()), and then fill it all the way out. And this is your result:
    9
    6
    3
    8
    5
    2
    7
    4
    1
    Now in the fourth table, in row 1 column A place this formula: =SUMPRODUCT(OFFSET(Table 1::$A$1,ROW()−1,0,1,3),OFFSET(Transpose of Table 2::$A$1,COLUMN()−1,0,1,3)) and fill out to the rest of the table.
    30
    24
    18
    84
    69
    54
    138
    114
    90
    This is a slight doozy, but I will explain when I have it written up in a few.

  • Sumproduct row and column?

    hello --
    it seems fairly straight forward to use sumproduct for two columns or two rows of a given length. how can i do the same for a row and a column of the same length. i keep getting an error when i do that. do i need to use a different function to get the desired result? basically what i am trying to do it:
    sumproduct((A1:A5),(C1:C5))
    thank you in advance for your help.

    The arguments to the sumproduct() function require the same dimensions.  I think this mean the same number of rows and columns.  Therefore a range from A1 to A5 is 5 rows , 1 column, whereas a range from C1 thru C5 is 1 row and 5 columns.
    I suggestion something like this to make the range in the C1 thru C5 reside in B1 thru B5:
    Now you can perform the sum product on column A and B.
    B1=OFFSET($C$1, 0, ROW()−1)
    this is shorthand for select cell B1, then type (or copy and paste from here) the formula:
    =OFFSET($C$1, 0, ROW()−1)
    select cell B1, copy,
    select cells B1 thru B5, paste
    For this example:
    D3=SUMPRODUCT(A, B)

  • Sumproduct in Numbers driving me mad!

    Hi All, looking for someone to tell me im being really silly here, this is driving me mad!!!
    So, I've been trying to impliment the following sumproduct in Numbers, here are my two tables, both on the same sheet. This is a test workbook ive been playing around with...
    Table 1
    A
    B
    C
    D
    1
    Make
    Month
    Sold
    Price
    2
    Ford
    June
    1
    £100.00
    3
    Ford
    June
    3
    £200.00
    4
    Ford
    May
    4
    £300.00
    Table 2
    A
    B
    C
    1
    Make
    Month
    Total
    2
    Ford
    June
    ? = the following formula: =SUMPRODUCT((Table 1::A2:A4=A2)×(Table 1::B2:B4=B2)×(Table 1::C2:C4))
    Numbers comes to the value of 1. Interestingly enough, when i export to Excel, the answer magically becomes 4. Im a bit of an Excel geek so would like to think i know my stuff, but am trying to switch to Numbers for simple stuff because I like being able to view sheets on my iPhone, but this is driving me mad!
    Any advice you can give would be brilliant!
    Thanks in advanced,
    Dave.

    I would add a new column to the top table (in my example I am calling it "Sales Data"):
    The new column is called "Extended Amount" and is the product of the number sold and the price
    E2=C2×D2
    this is shorthand for select cell E2, then type ( or copy and paste from  here) the formula:
    =C2×D2
    select E2 and fill down
    Now in the the summary table (the lower table):
    C2=SUMIF(Sales Data::B, B2,Sales Data::E)
    this sums the extended amount for all months that match what you enter in cell B2 in the month column of the table "Sales Data"

  • Working of  SUMPRODUCT(array1,array2,array3, ...)

    Dear All,
    I need to Implement equivalent functionality of SUMPRODUCT(array1,array2,array3, ...) of excel .in
    oracle
    Please Try to Provide Some Hint.
    Thanks
    I Value Your Time And Efforts
    Edited by: user13474542 on Dec 21, 2010 2:25 AM
    Edited by: user13474542 on Dec 21, 2010 2:26 AM

    INDIRECT is your friend here.
    B2 contains the SUMPRODUCT formula:
    =SUMPRODUCT(D2:D10,E2:E10)
    B3 contains the same formula, using INDIRECT to construct the two ranges from the contents of cells B1 and C1:
    =SUMPRODUCT(INDIRECT(""&B1),INDIRECT(""&C1))
    Details on INDIRECT (and the other functions supported in Numbers), along with at least one example for each function, may be found in the iWork Formulas and Functions User Guide, which can be downloaded via the Help menu in Numbers '09.
    Also available in the same location is a download link for the Numbers '09 User Guide, a more general guide to the features of Numbers. The first few chapters are strongly recommended as required reading for anyone new to Numbers, and especially to those migrating from another spreadsheet application; the rest may be browsed or devoured when there's a need to know about a specific topic.
    Regards,
    Barry

  • Importing SUMPRODUCT formula from XL into Numbers

    Hello all,
    I am having some challenges converting a SUMPRODUCT function from Excel/LibreOffice.  After browsing the support postings, it seemed as if rewriting the formula as a COUNTIF(S) or SUMIF(S) function could get the job done, but I haven't met with success going those routes.
    The file I'm working with is difficult for me to explain, so I have posted a small example here:
    https://www.iwork.com/document/?d=Reso_book.numbers&a=p205658906
    The basic application of the file is a reservation book; the formulas in question are in cells D5-L13 on the Availability sheet.  They are still in their original, non-Numbers syntax.
    The Availability sheet would effectively look up a table number from the Reservation sheet and return "1" if booked, "0" if not, or "-1" if doubled.
    In the posted file, D5-G5 would return 1, while H5-L5 would return 0.
    If anyone would be willing to take a look, I'd greatly appreciate any advice or insight for how to rework these formulas.

    I never use excel but something seems to be wrong in your original formula.
    =1-SUMPRODUCT((Reservation::Table 1::$D$2:$D$10<=D$4)*(Reservation::Table 1::$E$2:$E$10>=D$4)*(Reservation::Table 1::$F$2:$F$10=$B5))
    Given what I read in several pages found thru Google, the last component of your formula :
    (Reservation::Table 1::$F$2:$F$10=$B5)
    must not be a condition
    In fact, the embedded condition appears as dropped by the formula parser.
    When I reproduced you document in LibreOffice, removing the component =$B5 in the last component changes nothing.
    So I built the Numbers document without it (Table YK).
    In the edited table, the formula in D5 is :
    =1-SUMIFS((Reservation::Table 1::$F$2:$F$10),Reservation::Table 1::$D$2:$D$10,"<="&D$4,Reservation::Table 1::$E$2:$E$10,">="&D$4)
    Apply FillDown then Fill_to_right.
    I'm not sure that it's what you need but it return the same values than the originla ones in LibreOffice.
    Yvan KOENIG (VALLAURIS, France) samedi 29 octobre 2011 17:49:47
    iMac 21”5, i7, 2.8 GHz, 4 Gbytes, 1 Tbytes, mac OS X 10.6.8 and 10.7.2
    My iDisk is : <http://public.me.com/koenigyvan>
    Please : Search for questions similar to your own before submitting them to the community

  • Applying SUBTOTAL to multiple condition SUMPRODUCT

    Hi
    I have created the following formula which works:
    =SUMPRODUCT(--($AG$10:$AG$1999<>0),$U$10:$U$1999/SUMIF($AG$10:$AG$1999,"<>"&0,$U$10:$U$1999),$X$10:X$1999)
    Column AG is a "type" filter where I've assigned 0 values to data I need to ignore when doing my sumproduct, U is my values column so the values I want to sumproduct with column X which is my return column. So this works fine to ignore my blank
    types and sumproduct the remaining values and returns to give me a total.
    However I'd like to extend this so that when I put a filter on my data the forumla holds.
    I've previously used the following for subtotals
    =SUMPRODUCT(X9:X1999,SUBTOTAL(109,OFFSET($U$9,ROW($U$9:$U$1999)-ROW($U$9),,1))/$U$7)
    but this doesn't account for the fact that I need to strip out the types that are blank which I do in the above via: --($AG$10:$AG$1999<>0)
    Is there anyway to combine these two forumlae???
    I'm trying to build the spreadsheet to be robust enough for new data to be pasted into cells A9:AG1999 each month and the required metrics pop out at the top so that others can use without having to update pivots etc. I need it dummy proofed so all they
    do is paste in new data and the forumulae do the rest!
    Any help would be greatly appreciated :O)  Happy to provide more detail if the above isn't clear!

    Try:
    =SUMPRODUCT(X$9:X$5129,SUBTOTAL(109,OFFSET($U$9,ROW($U$9:$U$5129)-ROW($U$9),,1))/SUMPRODUCT(SUBTOTAL(109,OFFSET($U$9,ROW($U$9:$U$5129)-ROW($U$9),,1)),--($AG$9:$AG$5129<>0)),--($AG$9:$AG$5129<>0))
    Solved by NVBC in the OzGrid Excel forum: tipost titled "Apply SUBTOTAL to multiple condition SUMPRODUCT inc SUMIF"

  • SUMPRODUCT problem.

    Can anyone help with a SUMPRODUCT problem. I have a table and am looking to find a value based on two criteria and using the following formula:
    =SUMPRODUCT((A2:A7=A10)*(B1:F1=B9)*B2:F7)
    The formula works fine in Excel but with Numbers I get an error telling me that a range cannot be used as a single value. Is there any way around this in Numbers?
    Thank you.
    Paul

    Maybe I missed a function (return the index of a string in a list of strings) so I use HLOOKUP and VLOOKUP to mimic it.
    To do that I inserted an extraneous header row and an extraneous header column.
    In C2, I inserted =COLUMN() and filled to the right
    In B3, I inserted =ROW() and filled to the bottom.
    After that, in C11, I inserted the formula :
    =OFFSET($A$1,VLOOKUP($A$11,$A:$B,2,0)-1,HLOOKUP($C$10,$1:$2,2,0)-1)
    which, If I understand correctly, is achieving the require task.
    In Tableau 2, I did quite the same but the formulas are :
    In C2, I inserted =COLUMN()-1 and filled to the right
    In B3, I inserted =ROW()-1 and filled to the bottom.
    After that, in C11, I inserted the formula :
    =OFFSET($A$1,VLOOKUP($A$11,$A:$B,2,0),HLOOKUP($C$10,$1:$2,2,0))
    Of course we may replace the first formulas by typed numbers (it's not difficult to know the column or the row index).
    Yvan KOENIG (VALLAURIS, France) mardi 31 janvier 2012
    iMac 21”5, i7, 2.8 GHz, 12 Gbytes, 1 Tbytes, mac OS X 10.6.8 and 10.7.2
    My Box account  is : http://www.box.com/s/00qnssoyeq2xvc22ra4k

  • SUMPRODUCT dynamic range

    I wanted to do some number cruching in Numbers with quite a few formulas like (SUMPRODUCT(array1, array2) + SUMPRODUCT(array3, array4)) / SUM(array5) for every worksheet, which is fine except that I've got some ten worksheets. And each worksheet is a bit different in terms of array sizes and locations.
    It'd be more efficient (and less error-prone) if I could get to write generic formulas and let each worksheet derive the final 'array's by referring to values stored in certain cells. Basically make it table-driven formulas if you know what I mean.
    Unfortunately Numbers returns error for say SUMPRODUCT(B2), where the B2 cell has a string like "D10:D144, R10:R144". So it appears Numbers won't happily take Text value for Range value.
    I've checked some online forum. Some mentioned using INDIRECT or INDEX, and my trial result still returned error. Others mentioned table names or VB object attributes (which sound like Excel-only).
    Wondering if anyone ran into similar situation and got answers? It'd be great to be able to learn and move on and not getting stuck here.

    INDIRECT is your friend here.
    B2 contains the SUMPRODUCT formula:
    =SUMPRODUCT(D2:D10,E2:E10)
    B3 contains the same formula, using INDIRECT to construct the two ranges from the contents of cells B1 and C1:
    =SUMPRODUCT(INDIRECT(""&B1),INDIRECT(""&C1))
    Details on INDIRECT (and the other functions supported in Numbers), along with at least one example for each function, may be found in the iWork Formulas and Functions User Guide, which can be downloaded via the Help menu in Numbers '09.
    Also available in the same location is a download link for the Numbers '09 User Guide, a more general guide to the features of Numbers. The first few chapters are strongly recommended as required reading for anyone new to Numbers, and especially to those migrating from another spreadsheet application; the rest may be browsed or devoured when there's a need to know about a specific topic.
    Regards,
    Barry

  • Sumproduct and ignoring empty cells

    Hi there!
    I am working on creating a grade book with Numbers. And I would need help to find my way around a problem.
    To calculate the general grades in the "I" column, I used the following formula to assign coefficients (weight of each assignement on line 2) to a range of cells containing a grade (result of a formula calculating the average grade for each assignment).
    *I3 =SUMPRODUCT(B3:H3,$B$2:$H$2)*
    (Line 3 is for a specific student, columns B-H for the average grades of students on 7 types of assignments that need to be shown).
    I need to be able to give a general grade at any time during the semester, before all assignments taken.
    Problem:
    I cannot get a general grade (I3) until all the averages of all the assignments(B3:H3) are calculated (I guess because they contain references to cells with formulas: red arrow displayed until grades are entered).
    Question:
    Is there a way to calculate the general grades, respecting the assigned coefficients while ignoring the cells that don't have a numbered result.
    The idea would be =SUMPRODUCT(cells with numbered result (B3:H3), $B$2:$H$2 only match when corresponding line 3 cell has numbered result)
    I AM REALLY SORRY, I am new at this and it's hard for me to explain the problem in a more concise manner. I hope I made some sense!
    THANK YOU FOR YOUR PATIENCE!

    You were right, the reason why I was getting a red arrow is because AVERAGE cannot handle empty values.
    Using =IF(COUNT(B2:D2)=0,0,SUM(B2:D2)/COUNT(B2:D2)) will return 0 as a grade...which would lower the actual final grade of a student.
    That is why I was wondering if cells with no numbered value (or now with 0% as a value) could be ignored.
    To have an average of the cells with an actual grade, respecting their Weight, I would need to have a (group of) function(s) doing the following:
    1-Select each cell with value > 0% and multiply it by the assigned WEIGHT.
    2-Sum of the individual products obtained.
    3-(multiplied by 100%)divided by sum of all used assigned Weights
    In the following picture you will see the actual grades for Interro and Participation, the 0% grades that should be ignored, the Total (20%) that is wrong because these cells were not ignored ...and the (hopefully) Real Total (78.8%) that I obtained typing:
    =(Interrogations 'Student'*'Interrogations ' WEIGHT+Participation 'Student'*Participation WEIGHT)*Total WEIGHT/('Interrogations ' WEIGHT+Participation WEIGHT)
    !http://i249.photobucket.com/albums/gg221/KathyFR/RealAverage.jpg!
    Can you think of formula that would select the cells and make the calculations on its own (and that I could then drag to calculate the current total grade of all students throughout the semester)?
    (Now, I don't want to waste too much of your time...I can understand if you want to give up on me! Thanks for all you've done already! Hope you have some fun thinking about the problem).

  • Sumproduct & text & 'MMM'

    I wish apple used the Excel convention for formulas, I am having trouble getting my head around translating the following excel formula to Numbers iOS version:
    =IF(N7="","",SUMPRODUCT((TEXT($A$8:$A$1006,"MMM")=O$6)*($B$8:$B$1006=$N7)*($D$8:$H$1006)))
    I'll try to explain what I am trying to do. I am trying to create a complex (?) budget entry/summary where I can see my expenditure for each month for the financial year.
    Each transaction consist of :- Date, Category, Description and 5 columns showing my current bank & credit card accounts (Column A, B, C, D to H)
    There is approx. 800 entries for my last financial year, so I made a table in Excel for 1000 entries
    A8:A1006 range is the date column
    B8:B1006 range is the category column
    The summary table is tabulated row-wise in categories and column-wise by month.
    O6 is the first month in the summary table
    N7 is the category in the summary table
    D8:H1006 range is the total 5 columns of the accounts

    Okay, I'm back now.
    Add another column, I,  to your data table (Table 1 in the formula below) that is the sum of all the sum of columns D through H.
    In your summary table, cell )7 should be the formula
    =SUMIFS(Table 1 :: $I,Table 1 :: $A,">="&O$6,Table 1 :: $A,"<"&P$6,Table 1 :: $B,$N7)
    Fill this to the right and down to complete the table
    You will need one extra month in the summary becasue it refers to the current month as well as the next month (which is in the next columns). You could modify the formula so this isn't required. I did it the easy way.
    Format the dates in the summary so they display only the month.  I didn't do that; I wanted to show you what was actually in the cells.

  • Is there any functions to work like Excel's sumproduct function?

    Dear Guru,
    Is it possible to run a BPC's function like Excel's sumproduct function?
    Thanks,
    Suphawat

    Hi,
    If your template is static, you can write the excel function anywhere in the template. If the template is dynamic, then you can write the function after the expansion ( at the end of the expansion).
    Hope this helps.

  • How would I create a Summary Chart for the Current Year Using a Count by Month?

    Post Author: MarkS
    CA Forum: Charts and Graphs
    I have a data set of 3 date fields.  I would like to create a summary counting all of the occurrances of each of these dates per month, similar to using a SumProduct() command in excel.
    For example, my data is as follows:
    Registered Date  |    Application Date   |   Sale Date
    1/1/2007             |      2/1/2007            |     2/20/2007    
    1/10/2007           |      2/1/2007            |     3/20/2007
    2/20/2007           |      3/10/2007          |     3/20/2007
    I would like to summarize this information by month as follows:
                          |  Jan '07   |   Feb '07  |  Mar '07  |  TOTAL
    Registered      |      2        |   1           |    0         |   3
    Applications    |     0         |   2           |   1          |  3
    Sales             |     0         |   1            |  2            |  3
    TOTAL           |   2            |  4            |  3            | 9
    Is there any way to do this?

    Post Author: V361
    CA Forum: Charts and Graphs
    Yes, but it will require some effort. Group on "Sale Date"  Change the group to group by month.   You can then create a running total for "Registered Date","Application Date"," Sale Date"      For Registered date, I used Field to summarize Registered Date,  Type of summary was count, Evaluate use a formula, reset on change of group 1 (I only have one group, "Sale Date")  The formula will look like this.
    month ({Registered Date  }) in &#91;1,2,3,4,5,6,7,8,9,10,11,12&#93;
    You would build your other running totals (Counts) using the same methods,
    Once you have these, you should be able to create your chart.

  • Calculations across multiple columns

    I am a virgin to iOS Numbers on the iPad and need to prove it’s worth in work. I have a spreadsheet where I have to calculate the number of entries matching 3 criteria in a row:
    by Date (Month),type of job (e.g. bathroom or kitchen) and against a score range of <=6
    I have the data in aworksheet called Data! and the calculations are made in a separate worksheet,Calculations!
    The formula I havebeen using in Excel is:
    =SUMPRODUCT((Data!$A:$A=B220)*(Data!$E:$E<=6)*(Data!$L:$L=B219))
    B220 is a cell containing the date I am looking for in Data! A:A (e.g. Jan, Feb)
    Column E contains the value; I am looking for scores of 6 and less
    B219 is a cell containing the type of work in text format to be looked for in Data! Column L
    And this is spot on giving me a numeric value for example for all kitchen works in June with ascore of 6 or less.
    In Numbers I have tried to transpose this:
    =SUMPRODUCT((Data::Table1::A: =B220)*( Data::Table 1::E<=6)*( Data::Table 1::L=B219))
    But it doesn’t work I have scoured the net and the on line help for iOS numbers is as useful as a chocolate fireguard.  I even tried my local Apple store to no avail
    Can anyone throw some light on the right direction I need to head in before I throw in the towel and get everyone on Roambi which works with the excel output

    CAUTION, I'm not sure that COUNTIFS behave flawlessly in Numbers for iOS.
    If I remember well it's one of the functions which failed in the document which I tried to make usable soon after the delivery of Numbers for iPad.
    Yvan KOENIG (VALLAURIS, France) lundi 18 juillet 2011 23:21:22
    iMac 21”5, i7, 2.8 GHz, 4 Gbytes, 1 Tbytes, mac OS X 10.6.8
    Please : Search for questions similar to your own before submitting them to the community
    To be the AW6 successor, iWork MUST integrate a TRUE DB, not a list organizer !

  • Trying to display rows with sums and percents using filters

    Hello, I am working on a data sheet containing levels for students of 0, 1, 2, or 3 in different categories. I am trying to show totals and percents of these levels, while being able to filter out certain students based on gender, ethnicity, etc. Problem
    is when I filter, the rows showing my totals and percents disappear.
    For total number of level 3's in a column my formula looks like this: =SUMPRODUCT(SUBTOTAL(103,OFFSET(F6:F26,ROW(F6:F26)-ROW(F6),0,1)),--(F6:F26=3))
    For percent of level 3's I have: SUMPRODUCT(SUBTOTAL(103,OFFSET(F6:F26,ROW(F6:F26)-ROW(F6),0,1)),--(F6:F26=3))/SUM(F28:F31) 
    Percents and totals calculate fine. When I filter in the columns demonstrating demographics, which is columns B,C, D or E, the rows in which I calculate my totals and percents disappear. I also tried the number 3 instead of 103 after the SUBTOTAL function
    but same result. What am I doing wrong?

    Since you didn’t upload your excel file, I’m not quite sure what’s your source data looks like.
    I don’t think this issue is caused by your formula, but I guess you really need use number 3 instead of 103 in your SUBTOTAL formula.
    Anyway, please try below possible solutions for this issue.
    1. Set up your formula firstly, then filter data. Rather than the other way around.
    2. Select the filter range before filter. Or use advanced filter(except  the row which including your  formula)
    3. Copy the formula to the next row, then delete the pervious formula row.
    If it didn’t bring any joy. It’ll be better if you can share your workbook with us.

Maybe you are looking for

  • SearchPagingWebPart is empty

    Hi, I try to create a Custom Search Page in c#. I extended the CoreResultsWebPart with my custom web part and put it on an aspx page. The results are shown fine however the other search related web parts are empty. For example the SearchPagingWebPart

  • Ping command is not working on server 2008 r2

    Arvind

  • Starting Weblogic 6.1 failure extracting WAR classes

    Hi there, I'm getting several error-messages when starting my weblogic 6.1 saying: <Jan 10, 2002 9:07:32 AM CET> <Error> <HTTP> <[WebAppServletContext(4057696,cert ificate,/certificate)] failure extracting WAR classes java.io.IOException: Permission

  • How to import movies in library

    after a disaster; deleting windows media player, i thought; let's have a look at that iTunes video-thing. The music works just fine but It seem I just can't play movies or episodes. the file are all .avi it doesn't work with quicktime either. what to

  • Creating slide shows in FCE

    I am attempting to create a slide show in FCE. The intended final product is a slide show from digital stills, with titles, transitions, and a musical soundtrack. I can't figure out how to set a default duration for the imported digital images. There