i'm trying to use a SUMIF with multiple criteria but it isn't working in google spreadsheets.
right now i have
=SUMIF($B$8:$B,"1",$C$8:$C,H8:H,"Direct")
i want "Direct" to be the sub criteria, so it only sums rows with that all in it.
SUMIF with multiple criteria doesn't exist, you should be using SUMIFS. Your setup would be as follows:
SUMIFS(sum_range1, criteria_range1, criterion1, criteria_range2, criterion2)
Formula edited to reflect comments below.
Related
I want to count dates within a matrix using COUNTIF with each cell using different reference cells for the criteria.
I would like the reference in the COUNTIF criteria to vary positionally for each cell in the range (similar to how conditional formatting works). It seems that COUNTIF does not work this way. The reference in the criteria is stationary and each cell determination uses that one reference.
I could perhaps use COUNTIFS and have a criteria set for each column, but in my real workbook I'm dealing with too many to make that a simple solution.
The linked image shows an example of the kind of workbook I'm using and the formula in its current state. The red filled cells are expired trainings based on the renewal time.
Any and all help is appreciated, thank you.
=COUNTIF(B6:E6,"<"&TODAY()-(365*$B2))
Use SUMPRODUCT:
=SUMPRODUCT(--(B3:E3<(TODAY()-($B$2:$E$2*365))))
I have a data set like this (not table):
I want to Sum with following criteria: US, Apple and date prior to today.
Because of the data layout the SUMIFS formula doesn't seems to work.
This is what I have:
=SUMIFS(C2:G3,A2:A3,"US",B2:B3,"Apple",A3:G3,"<"&Today())
SUMIFS requires all the ranges to be the same size and shape. you will want SUMPRODUCT:
=SUMPRODUCT(C2:G3*(A2:A3="US")*(B2:B3="Apple")*($C$1:$G$1<Today()))
I am trying to make a countifs formula across multiple worksheets.
The formula I have so far is:
=SUMPRODUCT(COUNTIFS(INDIRECT("'"&TabList&"'!$AG$6:$AI$31"),"1"),INDIRECT("'"&TabList&"'!$AG$6:$AI$31"),"D5")
Each of the countifs work seperately but when I put them together they keep coming up with an error.
Any ideas?
I have this formula on several sheets in cell F1
{=SUM(IF(MONTH(A3:A210)=1,B3:B210,0))}
I have this formula on a totals sheet
=SUM(Start:End!F1)
I've been trying to combine the two into one formula on the totals page. Thank you everyone getting me this far.
I ended up creating a pivot table using the wizard which allows you to choose multiple consolidation ranges.
I was given the idea here:
https://support.office.com/en-us/article/Consolidate-multiple-worksheets-into-one-PivotTable-3ae257d2-ca94-49ff-a481-e9fc8adeeeb5
I have an excel sheet which I need help with.
I have already took sum with
=SUM(INDEX(B3:K7,MATCH(A13,A3:A7,0),0))
formula and need to get the sum for specific data range. Like sum only for last 3 days from today.
Please help.
Try this SUMPRODUCT variant
=SUMPRODUCT(INDIRECT("B"&MATCH(A13,A3:A7)+2&":K"&MATCH(A13,A3:A7)+2),--(B2:K2>=(B10-3)),--(B2:K2<="B10"))
UPDATED
To have the formula in different sheet you need to include the sheet references. I suggested cutting and pasting it from Sheet2 to Sheet1 but missed out that the part inside INDIRECT will not be adjusted by Excel automatically.
=SUMPRODUCT(INDIRECT("Sheet2!B"&MATCH(A13,Sheet2!A3:A7)+2&":ZZ"&MATCH(A13,Sheet2!A3:A7)+2),--(Sheet2!B2:ZZ2>=(TODAY()-7)))