# Combine SUMPRODUCT, SUMIF, COUNTIF Within Date Range

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
ADVERTISEMENT
Jan 27, 2008

Im Trying to use a formula of countif or sumproduct

so the formula will read the range of cells from A2:A30 to see if the word Hydro is in any of those cells, then if the date range from Cell B2:B30 is from range =>Dec-01-2007 to =<Dec-31-2007, then it will count 1.

[Code] ........

But this formula doest count.

I've tried using a multiple if count if with arrays and sumproduct. I really want it to count the ammount of time the work hydro is used during the month on december .

View 3 Replies
View Related
Mar 26, 2007

Why won't this SUMPRODUCT work?

SUMPRODUCT(Sheet2!D1:D2000=OPEN,Sheet2!F1:F2000)

I have a range (D1:D2000) that contains a 'Status' value.

OPEN is a named range that refers to eight possible Status values: Assigned, New, Hold, Re-test, In Progress, Failed, Ready for Push, Coded

The formula should sum the values in F1:F2000 for any row containing one of the eight statuses in D1:D2000.

View 9 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
Jun 4, 2009

I am very comfortable with SUMIF, but need to search a range any any cell containing words or phrase "20%" then need to sum those corresponding cells only.

I.e., something like: SUMIF(A1:A10,..."20%",C1:C10) .... only sum all C cells where an A cell contains any combination of words with "20%" in them.

View 2 Replies
View Related
Dec 8, 2006

I am trying to take a large spreadsheet with 2000+ rows of data each with its on unique date associated with each row (its a dump of invoices that need to get paid). I need to count how many invoices are each of the seperate 52 weeks of the last year using I believe a Countif function. My problem is I cannot seem to get the criteria written correctly. For example I want to count out of the 2000+ rows of data, how many invoice dates fall between say, Jan 1 and Jan 7. I would think it would be as easy as using the Countif function and then writing the criteria as a forumula to count invoices that have a date that is greater than or equal to Jan 1 BUT less than or equal to Jan 7. It is that precise formula that is giving me much frustration.

I have a similar Sumif forumula problem as I need to total the $ of the invoices but I think if I get the criteria to work for Countif it will work for Sumif.

View 6 Replies
View Related
Feb 3, 2009

I am trying to sum figures within a specific date range in the following formulae.

=SUMPRODUCT(--(Bookings!G$7:G$576=B17),--(AND(Bookings!A$7:A$576>=$C$12,Bookings!A$7:A$576<$C$12+7)),Bookings!J$7:J$576)

Currently I get an error and I am certain it is in this part;

(AND(Bookings!A$7:A$576>=$C$12,Bookings!A$7:A$576<$C$12+7))

This is trying to look for dates that are greater than or equal to the one in $C$12 AND less than 7 days later.

View 4 Replies
View Related
Nov 21, 2006

A B C

Date Product qtys

October 4, 2006ADSD403 9

October 5, 2006ADSD403 9

October 15, 2006ADSD403 4

How many skids (Located in column c) of product code (located in Column B) are received between October 4-October 13.

View 9 Replies
View Related
Apr 9, 2013

I have the following formula and it works.

=SUM(IF(AND((Transfers!B6="Labour"),(Transfers!C6="In")),Transfers!G6,""))

Basically the sheet 'transfers' has a column named type and one named in/out, the current formula I have does a logical test on both of these and then if they are both true takes the cost of it from a column named cost. This works fine for single rows. However on another sheet I am trying to use the above formula but there will sometimes be more than one entry for the same date on the sheet 'transfers' and all the same dates that meet the logical test's conditions need to display the sum of the cost on this other sheet.

View 1 Replies
View Related
Apr 28, 2014

I am trying to get a SUMIF formula to work where the following: - RANGE = Column N:N (These are all a list of dates) CRITERIA = Cell C20:D20 (These are the dates i want to look at) SUM_RANGE = Column P:P

Basically, I want to SUM all the numbers on Column P where the date in Column N falls between and including the dates in Cell C20 and D20

In attachement, I want to show in the YELLOW cells the SUM of Column P where the Date in Column N is between the Dates in column C and D.

View 3 Replies
View Related
Jan 8, 2014

I am working on a report for work with the following formula:

=SUMIF(A5:G8,AND(between 1-1-13 and 1-31-13,"soft cost"),G5:G8)

my formula is "IF A5:G8 IS BETWEEN JANUARY 1st 2013 AND JANUARY 31st 2013 AND ALSO IF IT IS A SOFT COST THEN GIVE ME THE SUM OF THAT ROW"

Pretty much column A contains different dates and column C indicates whether a cost is a "hard cost" or a "soft cost". If the date is within the month of January AND if it is a soft cost, I need the dollar amount in column G summed-up (must meet both criteria - January and soft cost).

View 4 Replies
View Related
Dec 22, 2013

I am trying to use a date range as a criteria in a SUMIF function. Below are the data and formula I am using.

Forecast

6

4

15

8

Week

1/12/2014

1/19/2014

1/26/2014

2/2/2014

Formula =SUMIF(G2:J2,">L1",G1:J1)

G1:J2 - raw data shown above. L1 = 2/2/2014. Desired result = 8. Result obtained with formula above = 0 how to make this work?

View 3 Replies
View Related
Sep 11, 2009

I am trying to sum multiple columns of data by a sumif based on a criteria in column C, the columns are weekly dated, and I wish to match columns by offset this initial column with a start date and end date and sum columns in between, I have been getting close but only returns one columns values?

SUMIF(FilterCol,$C17&I$9,(StartCol:EndCol))

FilterCol is column for criteria match

Start Col is name range - OFFSET(FilterCol,0,'Summary totals line groups'!$G$4,1,1) - End col similar, (G4 is a match date to find column ref)

View 9 Replies
View Related
Jul 23, 2014

I have a start date column and column for status. Status is either "in-progress" or "complete". I want to count the number of "complete" items that fall within a specific date range. I have tried countif but I can only seem to get a count of all items that fall between the date range. I do not want a pivot table for this.

View 3 Replies
View Related
Jan 13, 2010

I have 2 columns, one containing a piece of data and one containing dates. I want to count how many times the data is in the first column, based on a specific date range in the 2nd column. I have attached a sample SSF with a better explanation inside it.

View 3 Replies
View Related
Sep 24, 2009

how can i use countif or sumproduct or sumif ..etc to calculate how many occurrence in a specify date and time .

View 10 Replies
View Related
Nov 9, 2011

I am trying to put together a formula to allow me to count the number of occurances dates within a month in a column.

So far I have tried

=COUNTIF(F4:F500,DATE(2011,10,9)) but it only lets me search for the 9th of October (when I want to count all dates specified in october.

Is there any other way I can search (count) a range for dates in October 2011 only?

View 2 Replies
View Related
Nov 28, 2012

I have been having problems with a function trying to count data within 2 date ranges.

When inserting the 2 dates required into collum B2 (week beginning) + B3 (week ending) it does not

View 8 Replies
View Related
Jul 17, 2013

I have this:

=INDEX(SUMPRODUCT((D:D>=DATE(2013,6,6))*(D:D

View 1 Replies
View Related
Mar 24, 2014

I have a column of hours spent working on a particular task, but I only want to add the hours that fall within a two week reporting period.

Is it correct to use the SUMIF formula? If so how do I write the formula to include the date range desired? Would it go under 'criteria'?

View 2 Replies
View Related
Apr 2, 2014

I am trying to do a sumif off all dates that fall into a specific year. I know I can do it by either adding a column in either of the sources to get the translated data but I was wondering if I can get this to work by it recognizing the format within the formula only.

View 4 Replies
View Related
Jun 27, 2014

I'm currently using the below formula to calculate the values within a certain date range.

=SUMIFS(C2:C100,B2:B100,">=2014-06-27",B2:B100,"

View 5 Replies
View Related
Sep 11, 2003

I have a workbook which contains 1 spreadsheet that contains data entry for approximately 20 employees. The workbook then contains a separate sheet for each employee to display the detailed information

Column A stores the dates from Jan1 to Dec 31

Row 1 contains the employees names.

The data entered consists of approximatle 4 different 1-letter codes as to what transaction occurred that particular day.

What I would like to do now is be able to count the number of cells that contain a code for 2 different time periods. I would like for it to count 2 weeks ago and separately count 2 weeks in the future.

In trying to get this last calculation, I've added a column for WEEKNUM next to the date (column B) and used somethign along the lines of

=CountIF(C2:c366,Weeknum(Now()-2)) and also tried +2. Neither have worked.

View 9 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
Jan 23, 2009

I am trying to use SUMIF as part of an IF statement, What I am trying to do is, for example, if a column has two values M and P, then SUMIF only those rows that have a corresponding M, and not calculate the P's.

View 9 Replies
View Related
Nov 29, 2012

I'm trying to put these two formulas together:

=SUM(SUMIF(STATUS,{"Pending","New","Issued"},PREMIUM))

=SUBTOTAL(9,PREMIUM)

I tried

=SUBTOTAL(9,(SUM(SUMIF(STATUS,{"Pending","New","Issued"},PREMIUM))))

and it did not work.

I also tried

=SUMPRODUCT(SUBTOTAL(9,(OFFSET(PREMIUM,ROW(PREMIUM)-7,,1))*(STATUS={"Pending","New","Issued"}))

this also did not work. I do not fully understand the SUMPRODUCT function. I found this formula online and substituted the values. It worked for the other spreadsheet which did not include a SUM on the SUMIF formula

(i.e. SUMIF(STATUS,"=Pending",PREMIUM)

View 6 Replies
View Related
Jan 21, 2014

I have a file with two work sheet, in 1 sheet have monthly allowance to staff in 2nd sheet I need the data in a schedule format. Please see the attached file, my formula not working here properly.

View 6 Replies
View Related
Feb 13, 2014

I have a report I am attempting to populate with data from a pivot table in another worksheet. Column A holds all the reference numbers (primary key), column B contains various start dates, and I want column C to contain all the payments made since the start date for each reference number.

The source data is a pivot table with Row = Reference number, column = transaction date, values = transaction amounts. This is an extremely large table, as I'm processing data from almost 1,200 cases, which each have around 20 payments spread over the last year, on completely random days. What I would like to do is build a formula in my report which looks up the records for the reference number from column A, and then adds up all the payments which have been made after the date in column B (and ignore any payments in the table which are before that date).

And to make things more complicated:

if an error is generated, it needs to return as 0, not #N/AThe report has the dates in UK format dd/mm/yyyy, but the pivot table has the dates in SQL format: yyyy-mm-ddThe pivot table is connected to a SQL database via ODBC and has to refresh every time it is opened.

=IF(ISERROR(VLOOKUP(A2,'Transactions'!$A$2:$B$1194,2,FALSE)),0,VLOOKUP(A2,'Transactions'!$A$2:$B$1194,2,FALSE))

View 5 Replies
View Related
Mar 12, 2009

I want to calculate the average perofrmance % of 8 lines, the data isn't in one set of rows and some lines may not have values so I'm trying to account for this in my summary.

The code I'm struggling with is this...

=SUMIF(C5,C10,C15,C20,C25,C30,C35,C40,">0")/COUNTIF(C5,C10,C15,C20,C25,C30,C35,C40,">0")

View 9 Replies
View Related
Oct 21, 2008

ColAColBColC

1 FA4,000.00 10%

2 CB1,500.00 15%

3 FA7,500.00 15%

4 AA700.00 5%

5 JG250.00 5%

6 FA1,200.00 5%

7 AA900.00 5%

8 CB175.00 15%

9 FA2,000.00 2%

At the foot of the spreadsheet I would like to show the total of the calculation

Col B * Col C, if Col A shows a value of "FA"

Having veiwed similar posts, I believe SUMPRODUCT may be the correct formula, but I cannot seem to achieve the result I am looking for.

So in the example the desired result is 1,625 B1 * C1 + B3 * C3 + B6 * C6 + B9 * C9

View 9 Replies
View Related