# Countif/sumproduct Formula

Oct 22, 2008
I have a sheet with repeated dates for several months and I need to break out data by week and then by certain criteria. I can do 1 or the other but combining the COUNTIF formula and the SUMPRODUCT formula has proven to be beyond me.

I have this now:

=SUMPRODUCT(--(D2:D31719"7/19/2008"+0),--(G2:G31719>"5"))

but it returns a value of 0 which is incorrect.

What I need to do is have the formula return a sum of all of the fields in colG that are >5 within a date range. Once I find that # I have to divide it by another field and multiply by 100 to get the percent.

View 9 Replies
ADVERTISEMENT
Jul 2, 2009

I have a worksheet where I am trying to count the number of occurences of several text strings.

For example:

I'm trying to count how many times "paid in full" and "fully paid" occur in column A.

I have two formulas, and both seem to work, but since I don't really understand either of them, I'm wondering which I should use and how I would adapt it to include additional text strings. (Like adding "paid" to the list)

Here are my formuals (I didn't write either of them, another co-worker did)

=(COUNTIF(A:A,"paid in full"))+(COUNTIF(A:A,"fully paid"))

=SUMPRODUCT(--(A1:A50={"paid in full","fully paid"}))

Also, if there is another and easier way to do what I'm trying to do, I'd love to know.

View 6 Replies
View Related
Jun 29, 2006

I am working off a seperate worksheet and trying to use a Sumproduct with multiple criterias along with one criteria that calculate all fileds that =<45. The formula I am using is listed below. I get #VALUE!

=SUMPRODUCT(--('Q2-PDR Query BW'!A1:A200="Yes"),--('Q2-PDR Query BW'!B1:B200="Health Net"),--('Q2-PDR Query BW'!C1:C200="Closed"),--('Q2-PDR Query BW'!U1:U200="<=45"))

View 7 Replies
View Related
Mar 9, 2009

I am trying to count number of staff working in any day without deleting the empty cells.(see attached sample sheet). I tried sumproduct as I have two criteria but it is giving me a "zero" result. I only want to count cells in range B3:B32 that does not have "#" sign if there is a staff name if there is a staff name id corresponding cell in Column A within A3:A32.

View 3 Replies
View Related
Feb 24, 2014

Essentially I have the following:

Sheet 1 (raw data)

column a = day

column b = weeknum

column c = Employee Name (5 names)

Sheet 2 (sheet I would like to create graphs)

I need to sum total records of each employee per week. For example:

column a2:a6 are each possible employee name

column b1:h1 are weeknums 1-7

I've tried countif but I'm only able to make that work if there's a helper column.

View 3 Replies
View Related
Apr 8, 2009

Change Sumproduct to countif(and(. I'm using this formula

View 2 Replies
View Related
Feb 14, 2008

a calculation that has some conditions. I have a spreadsheet where I am calculating how many cells fall within a month date range using forumla :=SUMPRODUCT(('Project Team Actions'!J8:J525S2)) - as it calculates via other worksheets, but I only want it to count the cells that have OPEN or On Going in a neighbouring column, but not count the items that are closed.

View 9 Replies
View Related
Sep 16, 2009

I haven't been this deep into excel before. The deeper I look, the more potential I recognize, the more amazed I get. That being said, I have come to a tough count issue. Let me attempt to explain as precisely as possible.

My current worksheet is large but I am only particularly concerned with two columns of information (Regions) and (Days). The logic I am attempting is something along the lines of Count If Region = East, or West, and Days is greater than 0, less than 60.

I am open to any and all suggestions on how to tackle this situation. I have been able to achieve similar counts by using pivot tables but the dynamic nature of these two columns presents some difficulties that my “new user” mind has been unable to work through.

View 9 Replies
View Related
Jul 2, 2009

My problem is :

1.In G Column I put logic for Fail and Obtained Marks.

G2=IF(COUNTIF(B2:F2,">=60")=5,SUM(B2:F2),"Fail")

2. Now in H column I want use this formula which I obtained from this forum

H2=SUMPRODUCT((G$2:G$7>G2)/COUNTIF(G$2:G$7,G$2:G$7&""))+1

To get the position of Students.

But the text value "fail" in the G2:G7 getting Position No. 1 and i've noticed the reason by using evaluate formula as well.

3. I got solution by changing "Fail" with 0 by creating column I and then column H put this formula ........

View 14 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
Oct 6, 2011

I am using the formula below to count the occurences of relevant text strings (names) in a cell that can contain many separate strings. It works great. "References!$F$2:$F$34" contains my list of names and the formula returns how many occurences there are in each cell.

What i'd like to do know is work in a date criteria. Each name has an associated relevant date attached to it as does each cell that I am looking for these names in.

So...in english what Id like to do is alter my formula so that when it finds a text string that exists in "References!$F$2:$F$34", it then compares the associated date in "References!$G$2:$G$34" with the date associated with N3 which happens to be O3.

SUMPRODUCT(COUNTIF(N3,"*"&References!$F$2:$F$34&"*"))

View 5 Replies
View Related
Jul 6, 2009

I want to get students positions in a class like 1st, 2nd, 3rd, etc. There can be two 1st position and 2 2nd positions at a time .

1.In G Column I put logic for Fail and Obtained Marks.

G2=IF(COUNTIF(B2:F2,">=60")=5,SUM(B2:F2),"Fail")

2. Then i made array formula in column H to get the position

={SUMPRODUCT((IF(ISNUMBER($G$2:$G$7),$G$2:$G$7,0)>N(G2))/COUNTIF(G$2:G$7,G$2:G$7&""))+1}

Some improvement to write fail & position

={IF(COUNTIF(B3:F3,">=60")5,"Fail",SUMPRODUCT((IF(ISNUMBER($G$2:$G$7),$G$2:$G$7,0)>N(G3))/COUNTIF(G$2:G$7,G$2:G$7&""))+1)}

And more work to get total marks & position and Fail at the same time......

={IF(COUNTIF(B2:F2,">=60")5,"Fail",SUM(B2:F2)&"-"&SUMPRODUCT((IF(ISNUMBER($G$2:$G$7),$G$2:$G$7,0)>N(G2))/COUNTIF(G$2:G$7,G$2:G$7&""))+1)}

Now I wounder that is there a way to do all calculations in column H without using column G

By replacing (if there is any method) G2, G3, G4 etc. with Sum(B2:F2); Sum(B3:F3);Sum(B4:F4) etc. in below formula

={SUMPRODUCT((IF(ISNUMBER($G$2:$G$7),$G$2:$G$7,0)>N(G2))/COUNTIF(G$2:G$7,G$2:G$7&""))+1}.....................

View 9 Replies
View Related
Feb 27, 2010

I am using this to count how many times a particular number appears across numerous sheets, My sheets are in a Named Range MySheets....

=SUMPRODUCT(COUNTIF(INDIRECT("'"&MySheets&"'!A2:A30"),A2))

This works great.

What I now need to do is to find ALL matches and return B1 from those sheets..

GHIJKLM1Countif ResultFirst ResultSecond ResultThird ResultFourth ResultFifth ResultSixth Result25AppleBananaPearMangoOrange31Banana43BananaMangoOrange

I have played around and the closest I can get is with this...

=IF(COUNTIF(INDIRECT("'"&MySheets&"'!A2:A30"),$A2),INDIRECT("'"&MySheets&"'!B1"))

This as you may know only returns the result B1 from the first sheet within MySheets.

View 9 Replies
View Related
Jan 13, 2007

The attached spreadsheet has a "master" workesheet in which I enter customer info, salesperson info, and date. The totals spreadsheet automatically calculates number of sales, contact value.

I need to modify the following formulas to only calculate the data within a date range shown in 2 cells.

=COUNTIF(Master!A1:A176,PayPeriod!A4)

=SUMPRODUCT(--(Master!A1:A176=Totals!A4),(Master!K1:K176))

=E4SUMPRODUCT(--(Master!A1:A176=Totals!A4),(Master!K1:K176))

View 11 Replies
View Related
Nov 24, 2008

I'm trying to write this but it returns a 0 when I know there are 3 records that match this criteria: =SUMPRODUCT(('Invoice-Detail'!J2:J50="NewJob_Post.NET")*('Invoice-Detail'!H2:H50="KY_*")). I think the problem is in the wildcard character. I don't know if I should be using COUNTIF or SUMPRODUCT or something else?

View 3 Replies
View Related
Feb 21, 2010

I trying to convert the following formula (I, II, III) and add criteria of Name and Date to the count values of “c”

CURRENT FORMULA

I: “=COUNTIF(C2:C3100,"

View 9 Replies
View Related
Dec 19, 2012

I have a spreadsheet that contains a list of dates: What I need is a formula that will count the number of cells that hava a date more than 6 months old. I also would like the field automated so I don't have to change the date manually every day.

=COUNTIF(S5:S593,"<2012/06/18") This formula will give the correct read out, but I must change the date manually.

My attempts at adding a =today() command in place of the date result in 0 being the result (not correct)

This is what I have tried: =COUNTIF(S5:S593,"<"=TODAY()-"183")

View 8 Replies
View Related
May 27, 2006

my current formula is =COUNTIF('Input Page'!A2:A50000,"=Monday")

i'd like to change it to check what day is in the field and then only do the above formula if that day is within the past week.

so i need the "=Monday" section to be changed to read "(is equal to monday) and (is between today and today-6)" ...todays date will be taken from 'Input Page'!B2:B50000

View 11 Replies
View Related
Nov 5, 2008

See attached document, there are 11 cells in which will either contain Yes or No. Looking at the different combinations that there can be there can only ever be 9 out of the 11 cells being used or 10 out of 11 being used.

Also the last question (Row 25) could be filled N/A if this occurs I would like the formula not to count that. Is there a counting formula or IF formula which can be done to help me out?

View 12 Replies
View Related
Dec 9, 2009

I'm trying to write a SUMPRODUCT formula (cell H2 in the attachment) that gives different outputs according to the value of another cell (H1), but the output values are incorrect. I suppose it's because the "else" value given in the IF formula won't be recognized as a formula but as a text.

View 5 Replies
View Related
Jul 11, 2007

I'm currently using a series of SUMPRODUCT formulas to populate a summary page from a large data source. This works fine in the most part, however one part of the summary page calls for a number of different criteria to be counted within the same data range. I'm currently using a work around by having three seperate SUMPRODUCT formulas on hidden rows, and then totaling their answers to give me the result I want, however I wondered if there was a cleaner and better way to do this? An exampel of the formula I am currently working with is below:

=SUMPRODUCT(('Filtered Data'!$A$2:$A$10000="Stock-Out")*('Filtered Data'!$I$2:$I$10000="Open")*('Filtered Data'!$Q$2:$Q$10000="A"))

The final part of the formula is what is causing me the problem - I would like it to look for and count occurances of "A" , "B" , & "C"

View 9 Replies
View Related
Feb 11, 2014

i have a spreadsheet that acquires data from 42 other worksheet and in a row of cells it has yes or no at the bottom of that row i have =COUNTIF(A2:A34,"YES"). But it will not count the yes' because the cells that it is trying to count all have formulas in them like =tues!A34 or similar is there a different formula i can use to still count the yes' even in a cell containing a formula?

View 7 Replies
View Related
Mar 5, 2009

I already have a conditional format which is working OK. I would like to put a formula in the cell so it shows a % so currently it would be 100% as there is 3 cells below showing 3 greens.

Alternativily each colour is worth a value - Green = 1, Amber = 2, Red = 3. So Cell I3 would show 3.

View 2 Replies
View Related
Oct 31, 2009

I need to add more arguments to a countif formula, but I have maxed out the 1024 character limit.

Is there another way of writing this formula or is there a way I can add more arguments to this formula.

Formula is:

=countif(A2:A9999,"AH")+countif(A2:A9999,"ARHC")+countif...

I have a list of the arguments, can I do something like:

=countif(A2:A9999,B2:B50)

(with the list of arguments in columns B2 to B50)

View 13 Replies
View Related
Jul 24, 2008

is there any way to put 2 criteria into a countif() statment?

Say A1 to A100 are filled with information

I'd like to count if things are equal to 4 and 5

I know this isn't proper syntax:

=countif(A1:A100, "4" && "5")

I'm trying to get something like that to work.

View 9 Replies
View Related
Feb 11, 2012

I want to count the number of cells in column B that contain the start with the string US/IL. Here's the formula that I created, but it returns a value of 0 instead of 590.

Is there something I need to do differently when a cell value contains the / character in the string?

=SUM(COUNTIF(B5:B1830,"US/IL"))

Once I have the correct formula for the above, I want to write another formula on the row below that counts how many rows of this 590 value have a corresponding "Yes" value in Column M.

The first formula will sit in cell B1840

The second formula will sit in cell B1841

View 6 Replies
View Related
Jan 30, 2013

I am using the following formula to calculate the number of responses:

=COUNTIF([Cleanliness of Environment:],"None of the above")

However, I only want the number of cells which contain words other than "None of the above". The formula is counting empty cells. Is there a way to weed out the empty cells and receive a tally of only cells with words other than "None of the above" in them?

View 3 Replies
View Related
Apr 20, 2007

It's been awhile since I've used excel formulas so I'm very rusty but I need to count the number of times I see a particular item in a list as long as it has another criteria as well. Example List and Result are below: I want to count the number of AAA Rewards that Alex has....

List

#DateEmployeeAmountReward Type

14/17/07Alex$5.00AAA Reward

24/19/07Joe $10.00AAA Reward

34/19/07Alex $5.00 Store Certificate

44/20/07Alex $10.00 AAA Reward

Result

Employee # AAA Reward Amount # Store Certificates Amount

Alex

Brian

Joe

View 12 Replies
View Related
Jun 11, 2007

I want to count all the cells in a range that visibly contain no data, so either have no formula or are =""

I tried both of the following with no success

=COUNTIF(A1:A9,"""")

=COUNTIF(A1:A9,"""""")

View 9 Replies
View Related
Feb 27, 2008

The goal is to count up the number of rows in a database that have both properties:

1.) empty cell in Column B

2.) "XYZ" found somewhere in column D

View 9 Replies
View Related