# Using SUMPRODUCT To Get Count

Dec 5, 2013
I'm trying to get the count of all cells in column F of one workbook that have a value of "RES" or "RET" and put that count in cell B2 of another workbook. At first I tried COUNTIF but quickly realized that it doesn't work when the other workbook is closed. I tried this, but it gives a REF! error:

Code:

=SUMPRODUCT(('H:Benefit BillingTurnover Reports2011[Turnover - termed thru 1-31-11.xls]site only'!F:F

="RES")*('H:Benefit BillingTurnover Reports2011[Turnover - termed thru 1-31-11.xls]site only'!F:F="RET"))

The workbook and worksheet referred to definitely exist in the directory in the path, and the F column has a mix of values including the two I'm looking for. Once I have a working formula, it will ultimately be populated into a large range of cells by a VBA sub (that part I can do ).

View 5 Replies
ADVERTISEMENT
Jan 7, 2009

I'd like to use a sumproduct function to count 2 conditions. I want to add the number of times the number 0 is entered in Column D when a 1 is entered in the same row within Column C next to it.

I'm using the formula below yet its wrong.... it gives the answer of 7 rather than 1 (see data in attached file).

=SUMPRODUCT((C3:C124=1)*(D3:D124=0))

View 2 Replies
View Related
May 15, 2009

The below formula is a small piece of a formula but it's where it's causing the error to occur. When I'm trying to count the months within the SUMPRODUCT formula it works fine, but when there is a "TOTAL" it's returning an error.

AB11/04/2009#VALUE!22/04/2009 33/04/2009 44/04/2009 51/05/2009 62/05/2009 73/05/2009 8TOTAL 95/04/2009

Spreadsheet FormulasCellFormulaB1=SUMPRODUCT(--(MONTH(A1:A9)=4))

View 9 Replies
View Related
Jun 9, 2009

*ABC53TypeCost$Bought54Orange3Friday55Orange5Sunday56Apple4Friday57Orange5Friday58Orange4Sunday59Apple4Friday60Banana3Tuesday61Orange4Sunday Excel tables to the web >> Excel Jeanie HTML 4

Now, i want the Sum and Count of Orange which is bought on Friday

Answer Should Be

in D54 =8 and E54=2

View 9 Replies
View Related
Aug 5, 2006

The problem facing by me that I have a worksheet in which I count some values through sumproduct function in vba but its not working but if i manually put in this in sheet it works.here is the code.

Dim Sal As Workbook

Dim rng As Range

Dim rng1 As Range

Dim Dept As Range

Dim Dept1 As Range

Dim rg As Range

Dim i As Byte

Sub salries()

Application.DisplayAlerts = False

On Error Resume Next

Set Con = Workbooks("Branch Wise Deparment Wise No. of Staff.xls")

Set Sal = Workbooks("salarysheet.xls")

Sal.Activate

Sheets("Working").Delete

Sheets("GT").Activate

Range("B3").Select

Set rng = Range(ActiveCell, Selection.End(xlDown))..............

View 7 Replies
View Related
May 8, 2013

I am trying to use sumproduct to count across multiple sheets and so far have

=SUMPRODUCT((INDIRECT("'"&$Z$1:$Z$7&"'!$K$190:$K$220")>0),(INDIRECT("'"&$Z$1:$Z$7&"'!$D$190:$D$220")=B22))

This is my latest iteration and there have been about 50 so far, none of which I can get to work.

View 9 Replies
View Related
Jun 4, 2014

I am trying to use SUMPRODUCT on one of my excel files. the condition is that it will try to count all those cells that contain certain letters. i tried using this formula, =SUMPRODUCT(--('All Computers'!$A$2:$A$100000="USA*"),--('All Computers'!$E$2:$E$100000="June")), but I am getting a 0 value.

View 3 Replies
View Related
Dec 4, 2013

I am trying to exclude unusable data from my analysis. I have flagged data in the flag column on sheet 1 by a "1". A "0" is good data. On sheet 2, I have counts for the amounts of a certain code per partner. I used a sumproduct formula for the counts, but now I want to exclude all data with a flag "1".

View 4 Replies
View Related
May 19, 2008

I have a document with the following data

1: NAME

2: DESCRIPTION

3: DATE "12/15/2007" format

I would like to know if anyone knows how I can perform the following. And please excuse me for not writing this very technically I am a bit lost.

if name = "JOHN" and description = "APPLE" count how many apples there are for john.

Now it gets complicated for me because the dates are as follows. Lets say it starts 1/1/2004 the next cell might be 1/3/2204, 1/6/2204, etc all the way to 2008. I would like to find a way to say

If date = day/month/year I would like to count the whole month instead of the individual days. am I making sence? Let me give you another example.

record reads "," represent cells

JOHN,1/2/2204,APPLE

JOHN,1/3/2204,ORANGE

JOHN,2/3/2004,APPLE

I would like to be able to come up with the following

JOHN had 1 APPLE in JAN 2004

JOHN had 1 ORANGE in JAN 2004

View 14 Replies
View Related
Feb 16, 2006

Ive started using the sumproduct function to count multiple conditions which is useful

howveer if i want to count those records in one column that meet a condition and those records in another column that meet anyone of a number of conditions how can i do that?

the only way i can think is like the below

=sumproduct(--((columnA=apple)*((ColumnB<>Red)*(columnB<>Yellow))))

Rather than having to eliminate red and yellow i would like to say is green or blue.

View 14 Replies
View Related
Nov 17, 2011

What is the formula for sumproduct to count a say column c for a range of names and as long it match column k for yes.

View 1 Replies
View Related
Dec 12, 2011

Similar to SUMPRODUCT, do we have any function to count cells with diffrent critereas. Countifs does not work since the critereas are at different coulmn and rows.

View 1 Replies
View Related
Sep 5, 2008

I'm after a SUMPRODUCT that will give me the number of times that F is in column B2:B1000 when non of the following is in column A2:A1000.

000

001

002

003

004

005

006

All the above are in text format.

Example below would return 3.......

View 9 Replies
View Related
Jan 22, 2014

I use a sumproduct to count a special content from a table.

I have the country, a special key and the product.

I have different products like rismo 12, rismo 100, rismo 200.

But i want to count them all.

So i have the following function.

=+SUMPRODUCT(((ISNUMBER(FIND("rismo";E1:E1000))*1)*(C1:C1000=D2)))*((H1:H1000=60)+(H1:H1000=65)).

In the cells c are the countrys. In the cells h are the special keys. I am looking for the 60 and 65.

My result is always 0.

View 3 Replies
View Related
Oct 3, 2008

I have a range of data going accross columns, the entries include, U, T, and F1 to F11. I have a requirement to count how many of a particular type of entry there are, this needs to be done in groups, e.g, counting attendance bonuses which are included in entries, F5,F6, F8 and F11, (i.e. in one cell i need to total how many F5's,6's,8's & 11's are in that row?!). i just cant quite seem to get the formula right to count them.

View 5 Replies
View Related
Jan 26, 2009

I'm having trouble with SUMPRODUCT. I would like a count of how many rows where:

Column A = PP

and

Column B = QQ or RR or SS

and

Column C = TT or UU or VV

View 2 Replies
View Related
Nov 5, 2009

=SUMPRODUCT(SLVL!$B$6:$B$49>=$A$2)*(SLVL!$B$6:$B$49<=$B$2)*(SLVL!$A$6:$A$49=A12)

I'm sure that there had been an error somewhere but I can't figure it out. I'm getting zero value. Situation: need to count number of leaves within a specified period, thus I opted to use Sumproduct.

View 4 Replies
View Related
May 6, 2009

I am trying to do a basic count in a range, however am a little brain fried and its not working. On attachment, column D is to list all times out of column A and B listing only unique entries (have tried to use Macro with advanced filter however not liking it being an extract). Column E is to be a count of how many times the break time in Column D appears.

View 2 Replies
View Related
Mar 20, 2014

I need a sumproduct to count response times in between 1-2 hours. The response times are calculated from an 'initial referral date and time' and a 'actual response date and time' (the difference between refererral and response time be across several days) and are in the format below:

Time between intital and contact

00:22:37

00:00:01

00:08:46

I have tried several different formula, but I can't get excel to recognise the time range I need. Its just the bit in red i need sorted.

=SUMPRODUCT((MONTH(Referral!$H$2:$H$1048576)=4)*(Referral!$E$2:$E$1048576="Initial")*(Referral!J2:J1048576>1)*(Referral!J2:J1048576

View 3 Replies
View Related
Oct 19, 2007

I'm using the following formula to get a count of records that have a matching function name that is in B10.

=SUMPRODUCT(--('Oct-2007_FunctionSurvey'!$T$2:$T$1498=B10))

My Problem: There are duplicate entries in my recordset based on COl A (AppID).

How can I change the formula to only count the occurences of the B10 values based on a unique AppID (col A)?

View 9 Replies
View Related
May 11, 2013

I am trying to count dates from a list using sum product (I found the formula via google) I have plugged it into my spreadsheet but it does not seem to be calculating correctly.

I have attached the spreadsheet too : sumproduct_Error.xlsx

=SUMPRODUCT(YEAR(Tbl_finish[Finish]=2008)*(MONTH(Tbl_finish[Finish]=1)))

I am expecting a count of all the dates in January 2008 with the formula above.

View 5 Replies
View Related
Jan 17, 2014

I'm trying to count the number of rows in a dataset where column A is something, B is something, C is something, D is not something, D is not something else, and column E > 0 OR F is something but I just can't get the result I want.

My actual dataset is a staggering 294,000 rows and 46 columns so here's a simplified version:

View 8 Replies
View Related
Oct 7, 2008

Is there a simpler way to to the calculations on the spreedsheet i have attached?

Basically I want to count up the components used to make one product

View 14 Replies
View Related
Jun 29, 2009

I have a formula which I have copied from one of your good selves and tried to adapt it. The formula is below. I a am getting #NA as my answer.

=SUMPRODUCT(ISNUMBER(FIND({"h","H"},B11:G11))*{0.5,1})

I have a person name in Colomn A and then 1 week B-G on a row and want to count number of days holiday.

View 4 Replies
View Related
Nov 3, 2009

I have attached a spreadsheet with a small indicative data set to assist in understanding. I am trying to count the number of documents each individual has assigned to them that are not yet 'completed' (ie REGISTERED, IN WORK, REVIEWED). The problem I am trying to overcome is that the document state can be 1 of several values indicated in the same column.

I have tried using this SUMPRODUCT formula:

=SUMPRODUCT((($E$2:$E$11="REGISTERED")+($E$2:$E$11="IN WORK")+($E$2:$E$11="REVIEWED")*($B$2:$B$11="Jones")))

but it is generating incorrect values!

Specifically:

- Jones shoulld return 1

- Franks should return 3

- Smith shoudl return 0

View 4 Replies
View Related
Aug 25, 2009

Requesting a SUMPRODUCT (or other) command that will give a count of rows where all of the following three things are true:

column A = P

(column B = Q or column B = R)

column C = S

View 5 Replies
View Related
Jan 28, 2010

I want to count the number of unique, or distinct, company names in column [C7], subject to two conditions that will exclude certain unique company names from the count.

I should also point out that most company names appear multiple times in column [C7].

a) Count the unique company names in column [C7]...

b) ...including only those companies who have at least one "Yes" in column [C8] somewhere among their records

c) ...and who also have at least one value equal or greater than "1" in column [C15] somewhere among their records

Note that that there is no requirement that the "Yes" and the "1" ever appear in the same record.

View 2 Replies
View Related
Aug 21, 2009

I've got the following sumproduct formula (which seems to work):

=SUMPRODUCT(--(ISNUMBER(SEARCH($B17,Product_Keywords))),--(YEAR(Invoice_Date)=H$3),--(ROUNDUP(MONTH(Invoice_Date)/3,0)=H$4),--(Invoiced_Amount))

B17 is a keyword to be found in the Product_Keywords range

I'd like to modify it so that:

ifthe cell in the range Product_Keywords also includes "," thendivide the sumproduct by the number of commas+1

Presumably I could add --(ISNUMBER(SEARCH(",",Product_Keywords) as one of the conditions,

but how would I keep track of the number of commas in the cell?

View 9 Replies
View Related
Jan 23, 2009

I am trying to count the number of rows that have values greater than 10/01/2008 in either of two fields. I tried following formula but instead of giving total number of rows, it returns a random date.

View 2 Replies
View Related
Nov 17, 2007

see my attached sheet cotaining the following questions. in a day report sheet how should i count request matching the crateria of date and other conditions. in a monthly report a heavy conditional sum calculation which make slower sheets how can i make it faster.

View 2 Replies
View Related