Sumproduct - Count More Than One Criteria By Date
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
ADVERTISEMENT
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
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
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
Jun 11, 2009
I have a worksheet that contains investment security purchases, including purchase date, purchase amount and maturity date, each in its own row. I need to develop a formula that will sum the purchase amount based upon the term in days (maturity date - purchase date) of the investment. The respective rows do not contain the term in days so the formula will need to calculate the days to determine the aggregating criteria described below.
One cell should contain the aggregate security purchase amount whose term is 1-90 days and another cell should contain the aggregate security purchase amount whose term is over 90 days. It seems that SUMPRODUCT with a condition is the best way to handle this; however, I cannot get the correct syntax of this formula.
View 8 Replies
View Related
Aug 19, 2012
The part in green will count the number of entries for the name Johnson & Freedman LLC perfectly fine. However when i add the last part in red i receive a #Value! error.
Col. W is formatted as General and has a data validation for the user only to choose Pass or Fail.
Not sure why it isn't working.
Code:
=SUMPRODUCT(--( 'SCRA'!B26:B29>=Sheet3!C2),--('SCRA'!B26:B29
View 8 Replies
View Related
Jul 24, 2014
I have a date range that I'm trying to get a total count on. The criteria is any date in COLUMN I that is not "approved" in COLUMN L and the date is less than the current date which I have in cell U5.
[Code] ......
View 12 Replies
View Related
Aug 13, 2014
Count value in date and status criteria as in attached file.
UNIQUE VALUE COUNT .xlsx
View 9 Replies
View Related
Jul 2, 2014
The "TRAINING" sheet has a formula in column "R" which checks and counts clients in the "DATA" sheet.
Inside the formula it looks for a date in Column "O" of the "DATA" sheet equal to or greater than 01/01/2014.
I would like use the date (Month) as the criteria shown in Column E of the "Training" sheet, still using Column "O" of the "DATA" sheet so that the result returns the count of only those within that month's date.
View 3 Replies
View Related
Dec 2, 2008
using various keywords, and I haven't been able to find a solution that works. It would seem SUMPRODUCT is what I need to use, but thru all the combinations I've tried, I still can't get the syntax right. The problem is: I have dates in col A, and the word "Holiday" in col D. I need to create a formula that counts the number of instances of the word "Holiday" in col D, only where the date in col A is =DATE(2008,1,1))*(A11:A45
View 9 Replies
View Related
Aug 17, 2008
I have an excel file with 1000 of records for eg.
Date INITIALS CATEGORYACATEGORYB
31-Dec-07MTSVIN
01-Jan-08MSSVDI
04-Jan-08MORSKH
31-Jan-08MPSVHI
02-Feb-08MPRSIN
03-Feb-08MPVSIN
02-Jan-08MSRSIN
03-Mar-08MSKSKI
i want to count the datas
1) SELECTING IN THE SPECIFIED DATE RANGE (e.g from 1st jan to 31st Jan)
2) SELECTING MULTIPLE CRITERIA IN B COLUMN (MP & MS)
3) SELECTING MULTIPLE CRITERIA IN C COLUMN (SV & RS)
4) SELECTING MULTIPLE CRITERIA IN D COLUMN (IN & HI)
My colleagues tried countifs in excel 2007 but i have 2003. i want to specify all the four criteria in a single function to achieve my result (IN EACH MULTIPLE CRITERIA)
View 6 Replies
View Related
Oct 23, 2009
My setup is - excel 2003 sp3 / windows xp
On one sheet (Data) I have a list of action items, each with owner; target date; classification and in some cases revised target date. I'm trying to report on these fields and provide a status, by owner and classification, of how many are overdue; due this month; due next month; due beyond 2mths.
Using a SUM array formula on another sheet I can count the number that are overdue based on date; owner; classification; and target date, but can't find a solution if there is a revised target date. Any guidance you can give would be greatly received.
=SUM((Data!$L$3:$L$27=D$18)*(Data!$P$3:$P$27=$C23)*(Data!$N$3:$N$27
View 9 Replies
View Related
Jun 23, 2008
I want to count no of "yes" in Range Column B only if corresponding values in column A is less than 10/06/2008
Please see the attached file for refrence
View 5 Replies
View Related
Aug 6, 2013
We have a few residential care homes across UK. I have a workbook where I store all our residents fees which I update daily. There are 2 worksheets on one I store list of residents on the other one I have a daily breakdown.
What I'd like to do is to use worksheet "daily" to sum fees from "all residents" with criteria like:
- carehome ("daily" row 2),
- fee ("daily" F:K,N:S,V:AA etc)
- date ("daily" C7:C1073).
While fees are on worksheet "all residents" where:
- column A has carehome name on it
- column M to AG has fees on it
- row M3:AG3 has dates on it
For example id like to count in cell F7 how many residents in Branch Court "Bc" were in residency on 12 March 2012 with £520 fee looking on worksheet "all residents" with criteria fee, carehome,date)
Each time one of the council backdates fees or changes a resident to lets say a private one I have to manually change all the numbers which takes time.
res.xlsx
View 7 Replies
View Related
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
View Related
Feb 9, 2006
I should be able to do this by now but I keep getting an #NA error. I am
trying to use this sumproduct formula
=SUMPRODUCT(($I$7:$I$2585=921),--($L$7:$L$2585="Fb")--(AS7:AS2585)) where I
am looking up store #"921" and Attribute "fb and sum where these two criteria
meet. The column I want to sum is AS7:As285. What am I doing wrong.
View 9 Replies
View Related
Jan 24, 2007
In Column A1:A20, these are included 5 types of data (red, orange, yellow, green, blue); in column B1:B20, these are included the total salary amount, and in column C1:C:20, these are included "Sole" , "Joint" or "Partnership", so if column A is included red/yellow/green (excluding orange and blue) and column C is included Sole/joint/Partenship, and total salary is between 6000 and 9000, then calculate the total salary of all the customers. How can I use sumproduct function to fix it?
View 8 Replies
View Related
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
Jun 3, 2014
I am trying to match 3 values, and return a matching 4th from a chart. It will first look at one value and see if it falls between values (the LOAD value in cell B1..it will look to see if it falls between the "low limit" and "high limit" in columns A10 to A135 and C10 to C135, respectively. Then it will look for a match for the values in cell A2, and in cell A3. the return value will index to the corresponding value in column G10 to G135. I have written a formula to do this in cell D2....but it will only ever return the value in cell G10.
See the attached excel file : nozzle tester.xlsx
View 2 Replies
View Related
Jan 21, 2014
I am looking around any way wherein I can sumproduct the values as given in attached sheet, basically I wanted to know the total MRP value of Sale and Stock
View 3 Replies
View Related
Jun 20, 2014
I'm working on a spreadsheet at work and I'm trying to sum only the values in a column that meet criteria in the column next to it. For example, in the attached spreadsheet, I would like to have a totals line at the bottom of the spreadsheet for all three Facilities and the total next to them. I know I could do a pivot table but I know this approach would be more aesthetic and easier for my supervisor.
View 3 Replies
View Related
Jul 15, 2014
Looking to troubleshoot using a name range in a multiple criteria sumproduct formula.
For instance, this formulas works fine:
[Code]......
But, when I try to substitute the two-alpha codes as a defined name range ("keys"), it errors as "N/A":
[Code].....
An example workbook is attached : Example Workbook.xlsx
View 4 Replies
View Related
Jul 17, 2009
I am stuck - I have a large amount of data for a group of physicians I work for. I am trying to set up a monthly trend report to be able to run quickly after I plug in the data. I want to use some sort of lookup to look up two things - 1) the physician's specialty and 2) the month.
Can anyone look at the attached example and tell me how to do this? I have started a SUMPRODUCT formula, but am stuck on how to tell it to find only that month's data.
View 10 Replies
View Related
Mar 10, 2013
ID, Name, Point, Session
1111, Viking, 5, 1
2222, John, 6, 1
1111, Viking, 10, 2
What's the formula to get the Point cell value with criteria ID = "1111" and "Session = 2" ? In this case, it will return me the value of Point = 10
View 7 Replies
View Related
Oct 26, 2009
I have the following sumproduct formula that's providing solid results but I would like to add a 3rd column of criteria. I'v tired with little succes.
The following formula <=SUMPRODUCT(('IW 38 DUMP for Planning'!$A$1:$A$10000="2A")*('IW 38 DUMP for Planning'!$E1:$E10000={"PAA","RS","RSNR","S","SAM","SAMT","SAO","SAT","SOR","WKS"}))> totals all of the work in plant area "2A", in this case 52 records. I would like it to filter further with values in $H1:$H1000 matching criteria "CONTRACT", "MACH" OR "HTSMET".
The data is easy to find with pivot tables but I would like to take that manual step out of the reporting being doen from these records.
View 3 Replies
View Related
Jan 9, 2012
I am trying to get this sumproduct to work that will exclude two criteria:
1) If there is an error in the sum range (Y5:Y1000)
2) If right(H5,5)= D5& "Total"
This is the formula I have, but I'm not sure how to get the first criteria to work well, or how to get two exclusion criteria to work.
SUMPRODUCT(--($H$5:$H$1000=$D5&" Total"),--(ISERROR($Y$5:$Y$1000)),$Y$5:$Y$1000,$Q$5:$Q$1000)
View 9 Replies
View Related
Feb 22, 2012
I was wondering if I could use a range of cells as my criteria as opposed to inserting quotation marks with each criteria. For example in the syntax below can I do something like this? Report!$C$3:$C$5000=B45:B51?
=SUMPRODUCT((Report!$A$3:$A$5000="XXX")*(Report!$C$3:$C$5000=???)*(Report!$E$3:$E$5000))
View 1 Replies
View Related