Convert SUMPRODUCT Formula To Use SUMIFS Or COUNTIFS

May 1, 2012

I have a large metrics spreadsheet that has thousands of formulas using SUMPRODUCT. We are using Excel 2007/2010 now and I wondered if there was a way to convert these type of formulas to use the SUMIFS or COUNTIFS. I can do simple ones with 1 or 2 criteria where its AND, but then there is a combined OR and AND like this one has I cannot get them to work right, am I stuck with using SUMPRODUCT? My hope was to speed up the overall calculation speed. Note: The data spreadsheet 'Sheet2' contains 64555 rows, I write these formulas using VBA so that the range is finite to the actual data range is why you see 64555.

=SUMPRODUCT(--('Sheet2'!$J$3:$J$64555=$A6),--(('Sheet2'!$I$3:$I$64555="HOC")+('Sheet2'!$I$3:$I$64555="MGN")))

View 2 Replies


ADVERTISEMENT

How To Convert From COUNTIFS To SUMPRODUCT Function

Feb 25, 2014

convert this equation into sumproduct function..??

=COUNTIFS($I3,">="&$AC$3,$I3,"<="&$AC$4)

View 6 Replies View Related

Convert SUMIFS Formula In 2003

Oct 9, 2009

How would I convert the following formula into Excel 2003?

=SUMIFS($Q$7:$Q$5000,$O$7:$O$5000,"Cat",$P$7:$P$5000,"Dog")

View 2 Replies View Related

Convert SUMIFS Formula For 2003

Dec 30, 2009

Need convert the following formula so that it would work in Excel 2003: =SUMIFS($BB$4:$BB$500,$E$4:$E$500,"Abbeywood First",$L$4:$L$500,"Autumn"). I could play around with it for hours and get nowhere, so I'll just turn to the experts.

View 5 Replies View Related

Multiple Criterieas Using Sumifs And Countifs Not Working

Oct 10, 2009

I am unable to get the correct results using Sumifs and Countifs function. Below is an example:

If I use the formula as =IF(ISERROR(SUMIFS(F2:F8,B2:B8,"Africa",C2:C8,"External",D2:D8,"NoneExt",E2:E8,"2B",E2:E8,"SY")/F9),"N/A",SUMIFS(F2:F8,B2:B8,"Africa",C2:C8,"External",D2:D8,"NoneExt",E2:E8,"2B",E2:E8,"SY")/F9)

I get the result as 0 but the result i want is 19.67% (1234 /6275). Since i have multiple criterias which might not be available at times in the data, i get the value as 0.

BCDEF2CountryMain Conseq.Other conseq.Product Type Amount 3AustriaInternalNoneInt2B $ 278 4AustriaExternalNoneExt3C $ 900 5AustriaExternal-8A $ 2,388 6NorwayInternal-MV $ 567 7AfricaExternal-SY $ 1,234 8AfricaInternalNoneIntJN $ 908 9TOTAL $ 6,275

Similarly i have used a formula using Countifs; =IF(iserror(countifs(E2:E8,B2:B8,"Austria",C2:C8,"External",D2:D8,"NoneExt",E2:E8,"=3C")+counifs(E2:E8,B2:B8,"Austria",C2:C8,"External",D2:D8,"NoneExt",E2:E8,"=2B")/F9),"N/A",countifs(E2:E8,B2:B8,"Austria",C2:C8,"External",D2:D8,"NoneExt",E2:E8,"=3C")+counifs(E2:E8,B2:B8,"Austria",C2:C8,"External",D2:D8,"NoneExt",E2:E8,"=2B")/F9)

And even the above formula does not work with the criterias given. What i require is, if the country is "Austria", "External", and "NoneExt" then count those lines which has product Type as "3C", 2B". So the result for the above should be 1.

Request you to kindly let me know the correct way or the right formula to extract data for the above criterias.

View 9 Replies View Related

Convert Sumproduct Formula For Use In Powerpivot?

Aug 25, 2014

I'm looking for a formula for use in powerpivot, that can convert the following formula (I do not wanna use any VBA, only generate a caluculated column in powerpivot, based on a formula)

[Code] .....

The formula checks for 3 different values, and returns a status code for each. If no match is found it returns "no match".

The formula looks for the criteria (1234 or 1857201 or 1857206) in column2 (item) and writes a status code in column3 (output). At the same time it also checks for simular order numbers (column1). So the same status code is present for all order-number rows. (If a match in column2 / item is found)

See the excample in regular excel here: [URL] ....

View 1 Replies View Related

Convert Sumproduct Formula To Macro

Oct 31, 2006

The attached has a sumproduct formula that is slow down the calculation of my workbook. (I know there is also an array formula-that's another thread). I'd like to use a macro to fire on the worksheet change so I don't have the heavy recalc burden. The formula is in worksheet "Database" in column H. So far:

Private Sub Worksheet_Change(ByVal Target As Range)
If Target.Cells.Count > 1 Or IsEmpty(Target) Then Exit Sub
If Not Intersect(Target, Range(Range("rReason").Offset(1, 0), Range("rReason"). _
Offset(UsedRange.Rows.Count + 1, 0))) Is Nothing Then
Target.Offset(0, 1) = Application.VLookup(Target, ValList.Range("ReasonLkUp"), 2, False)
'This formula below needs a VBA equivalent
' Target.Offset(0, 2).FormulaR1C1 = "=IF(RC[-1]>0,SUMPRODUCT(-(R7C7:R35000C7<0)*0.5,--(R7C3:R35000C3=RC[-5]))+SUMPRODUCT(--(R7C7:RC7>0),--(R7C3:RC3=RC[-5]),R7C7:RC7),0)"
End If
If Not Intersect(Target, Range(Range("rSurname").Offset(1, 0), Range("rSurname"). _
Offset(UsedRange.Rows.Count + 1, 0))) Is Nothing Then
Target.Offset(0, 1) = ActiveCell.Offset(0, -2) & " " & ActiveCell.Offset(0, -1)
End If
End Sub

View 5 Replies View Related

Attempting To Use Countifs / Sumproduct Where The Data Contains Dates

Jun 13, 2014

I"m attempting to generate a report to show the number of occurrences for a particular product within a calendar month.

Data is stored on the first sheet, output is populated on a separate sheet. Seems simple enough, but getting the "month" out of the date, whilst referring to another sheet seems to be the sticking point.

2014/03/24 14:34:17
Product1
2014/03/24 13:45:51
Product2

[Code]....

View 7 Replies View Related

Complex COUNTIFS / SUMPRODUCT Validating Dates Using 2 Ranges

Oct 4, 2013

I am trying to find out how many projects might be active as of a certain date.

I have a tab in excel that contains project data. For each project there is a "Start Date" and there might be an "End Date"

My question is, how do I count all the rows where the start date is Less than a given date and the end date is after a given date? The wrinkle is... if the end date is empty then obviously it should be counted as well (assuming the start date is still before the given date).

Here are the approaches I've used thus far:

=SUMPRODUCT(1*( AND(OR(RawMetrics!P:P > A2, RawMetrics!P:P = ""), RawMetrics!$O:$O < A2 )))
=COUNTIFS(RawMetrics!P:P,">"&Sheet1!A2,RawMetrics!O:O,"

View 4 Replies View Related

Sumifs Or Sumproduct Or Array Pull Result From Range Of Columns

Oct 3, 2013

I'm trying to pull thesum of huge number of columns in this case the range of pulling the data is B2:E7 based on two criteria (B8 and B9) The result is on B11

Sheet1

*
A
B
C

[Code].....

View 5 Replies View Related

Convert Sumifs In 2007 To Something In 2003

Sep 3, 2009

Here is what I have

=_xlfn.SUMIFS('COMMISSIONABLE INTERNAL SALES'!$N:$N,'COMMISSIONABLE INTERNAL SALES'!$A:$A,$A$1,'COMMISSIONABLE INTERNAL SALES'!$O:$O,I$1,'COMMISSIONABLE INTERNAL SALES'!$D:$D,$A2)

I need it converted to something usable in 2003

View 9 Replies View Related

Excel 2010 :: Converting From SUMIFS To SUMPRODUCT In Order To Make View Filtered Results

Jan 2, 2014

I'm using Excel 2010. I have a spread sheet with sales data covering 3 years and multiple customers. I was able to create formulas such as this to calculate the figures for the entire sheet (all customers) by year.

=SUMIFS(J2:J12904,E2:E12904,">12/31/11",E2:E12904,"<1/1/13").

I believe that in order to use filters that show this date for a specific customer I need to convert this to a SUMPRODUCT formula, I've tried this multiple times and had no luck.

View 13 Replies View Related

Convert Sumif To Sumproduct

Dec 8, 2010

I need to convert the following formula to a Sumproduct so the link will not be broken when I close the linked workbook:

=SUMIF('Z:WUTDaily Report[2010 Monthly Rpt - CPM - Thru November only.xls]2010 Expense'!$E$231:$E$332,"M&R Parts D",'Z:WUTDaily Report[2010 Monthly Rpt - CPM - Thru November only.xls]2010 Expense'!AE231:AE332)

View 4 Replies View Related

Convert Sumproduct To DSUM

Jul 17, 2007

What would be the correct syntax to convert this sumproduct formula to a dsum formula
I can't seem to find any examples that match my exact need

=SUMPRODUCT((Data!$A$2:$A$15998=$B$3)*(Data!$C$2:$C$15998=$A14)*(Data!$E$2:$E$15998=B$10)*(Data!$D$2:$D$15998))

View 7 Replies View Related

Why Countifs Formula Returning Zero

Jul 1, 2014

I have a Countifs formula that is returning a zero "0",

=COUNTIFS($B$4:$U$4,$A29,$B$10:$U$10,B$18), and it should return a 1.

The manual calculation is turned on and I have tried the F9 and no change in the value returned.

View 2 Replies View Related

Will VLookup Work With CountIfs Formula

Jun 23, 2014

I'm trying to count the rows of a worksheet based on the location selection. Heres what I'm using:

[Code]....

Before I add the Vlookup, I get a number of 50. I should get at least 40+, but after adding the

[Code] .....

I get "0."

I'm wondering if I need to use VLookup differently in this case ????

View 14 Replies View Related

Combine Countifs And Offset Formula

Mar 3, 2014

I have a problem with a cumulative countif and offset formula that I am unable to solve. See the attached spreadsheet for an example of the dataset I get out from our systems.

I want the formula to be fully automatic, so when I change the month in column K2, it will automatically count all the different outlets in column B based on criteria in column L3 and downwards. The dataset will be updated monthly obviously.

I believe that it could be solved with the usage of a countifs + offset formula or something similar.

The main idea of the spreadsheet is to track the movement of customers between different chains. It is thus important that customers that show up in January will not be counted again in February or March, thus creating an unique countif list based on a given month.

Number of outlets example.xlsx‎

View 12 Replies View Related

Converting Countifs To 2003 Formula

Oct 6, 2008

I am having trouble converting the following Countifs formula developed in 2007 to work in 2003 Excel.

Basically, I want to count the frequency of "N" in 'Data_Q2 2008'!$S$2:$S$9806, where 'Data_Q2 2008'!$B$2:$B$9806 = 'Metric Upload'!C2.

'Data_Q2 2008'!$B$2:$B$9806 is a list of physicians. 'Metric Upload'!C2 is a pick list for selecting the physican that is in the larger data set using Data Validation.

View 14 Replies View Related

Add Another Variable Into Existing SUM (COUNTIFS) Formula

Jul 23, 2013

I currently have 6 formula (see below) that I want to add another variable for. The formulae add together letters in B1:B15 cross referenced against numbers in A1:A15. The first formula adds together the A's and O's in B1:B15 and cross references them with with cells beginning with 5 or 6 in the same row, A1:A15 down.

=SUM(COUNTIFS(B$1:B$15,"A",A$1:A$15,{"5";"6"}&"*")+COUNTIFS(B$1:B$15,"O",A$1:A$15,{"5";"6"}&"*"))
=SUM(COUNTIFS(B$1:B$15,"B",A$1:A$15,{"5";"6"}&"*"))
=SUM(COUNTIFS(B$1:B$15,{"A";"O"},A$1:A$15,"4*"))=SUM(COUNTIFS(B$1:B$15,"B",A$1:A$15,"4*"))
=SUM(COUNTIFS(B$1:B$15,"A",A$1:A$15,{"1";"2";"3"}&"*")+COUNTIFS(B$1:B$15,"O",A$1:A$15,{"1";"2";"3"}&"*"))
=SUM(COUNTIFS(B$1:B$15,"B",A$1:A$15,{"1";"2";"3"}&"*"))

I want to cross reference each of these with a Gender variable (denoted as M or F, for male & female) in the C1:C15 range. Using the last formula as an example should tell me how many M's or F's in the range C1:C15 had B and began with either 1,2 or 3.

View 1 Replies View Related

Unique Values Using COUNTIFS Formula

Dec 3, 2013

I have a query from an access DB that I pull into an excel sheet automatically every 15mins. Column G contains a list of 6 digit customer reference numbers and column C contains a list of the users that have modified records for that customer.

I use a summary sheet to count the number of customers a user has modified records for in that day. The trouble I am having is counting unique records using the COUNTIFS function. In my database if a user changes a record and hits save 10 times that will create 10 records. I only want to count this as 1. I am using the following formula but it doesn't seem to like the 2nd range and criteria in the countifs bit.

=SUM(IF(COUNTIFS('Daily Loss Data'!G2:G1500,'Daily Loss Data'!G2:G1500,'Daily Loss Data'!C2:C1500,"John Smith*")
=0, "", 1/COUNTIFS('Daily Loss Data'!G2:G1500,'Daily Loss Data'!G2:G1500,'Daily Loss Data'!C2:C1500,"John Smith*")))

Daily Loss Data Sheet Notes: Column C = user, Column G = Customer Ref.

I am using an IF statement because my range changes after each query refresh so contains zero's that I obviously do not want to count.

View 1 Replies View Related

Increment Row And Column While Using Countifs Formula?

Jun 21, 2014

Have table with five columns and five rows. The columns(C4:H4) hold Systems, Systems is a defined range, and rows (B5:B9) hold staffer names, Staffer is a defined range. Cell A5 holds period, by quarters, ie, Q1-Q4.

At present am using =COUNTIFS(Staffer,$B$5,System,C4,Q,$A$5). This works fine but as you can see I must change the Staffer starting reference $B$5, with each new row.

formula that changes column and row automatically as I drag down and across.

View 6 Replies View Related

Add Total $ Value Formula Into Existing SUMIFS Formula?

Apr 3, 2014

In my attached spreadsheet example below, in the Rollup Data sheet, I have a formula (Cell: C17) that will give me the actual cost totals that has been invoiced on WBS Element (DWRRI-BW096-231) for a total of $35,004.81.

What I need the formula do is run a redundant check procedure on my new WBS Element (DWRRI-BW096-231) actual cost total formula in the Rollup Data sheet (Cell: C17) against/vs. what the SAP system provides in the raw SAP Excel export contained in the PTD-Actual Cost sheet for the WBS Element (DWRRI-BW096-231) actual cost total of $35,004.81 (Cell: F9) that's highlighted in the yellow row.

In the Rollup Data sheet (Cell: C18), I need this formula to perform a similar function the as the previous formula above it (Cell: C17), but it this formulas function (Cell: C18) would have a separate operation that would only look for and return the single/sole WBS Element (DWRRI-BW096-231) actual cost total contained in the PTD-Actual Cost sheet (Cell: F9).

In the Rollup Data sheet I could then compare my two WBS Element (DWRRI-BW096-231) actual costs totals, the first from the automated addition of all the individual matching WBS Element actual costs into an actual cost total (Cell: C17), the second (new formula I'm requesting) from the matching and return function of the single/sole WBS Element actual cost total (Cell: C18).

So, if the two separate WBS Element actual cost totals (Cells: C17 vs. C18) both equal $35,004.81, the formula in C17 is a success and has correctly identified and added all the actual costs contained in the PTD-Actual Cost sheet, but if the two separate WBS Element actual cost totals (Cells: C17 vs. C18) both do not equal $35,004.81, the formula in C17 failed for some reason and has not correctly identified and added all the required actual costs contained in the PTD-Actual Cost sheet.

How to Add Total $ Value Formula into an Existing SUMIFS Formula.xlsx

View 2 Replies View Related

CountIfs Formula Where One Criteria Is String Within Cell

May 10, 2014

I know this should be straightforward, but just can't "hack the logic", whether using "Countifs" oor "SumProduct" formulae.

Attached file 140509 String Criteria.xlsx file has database of three fields (Date, Route number and Part number)

I need the formula that totals number of rows meeting three criteria:
(a) A specific date from Col A
(b) A specific number from Col B
And the part I can't sort out:
(c) Any cell containing a "string" in Col C (so needs to count the "core" even if it has a prefix or suffix).

E.g. How many rows have "Date x" in Col A, "Route Y" in Col B and a cell containing "123" in Col C?

View 2 Replies View Related

Countifs Formula Not Working When Referenced To Another Worksheet?

Mar 17, 2014

I have attached a sample workbook which shows what I am trying to extract from sheet "Service Reminders 2014". In worksheet "Results" cells b11:e11 I am trying to extract the amount of vehicles with within age ranges provided that have a magic number attached which is pretty easy everything >0 is a proper magic number and also the amount of vehicles in each age range that have "Booked" associated within the range of "Service Reminders" Y2:AH5000, The formula works fine until I add the final criteria and then it give me a #VALUE!

View 14 Replies View Related

Converting CountIFS Formula To Excel 97-2003

Jan 22, 2014

I have attendance tables that has column Y showing the shift to be worked and column Z showing any absentees. I used the following formula to count the number of people off per period.

{=SUM(COUNTIFS($Y$5:$Y$29,AM,$Z$5:$Z$29,$W82),(COUNTIFS($Y$36:$Y$60,AM,$Z$36:$Z$60,$W82)))}

in the above formula AM relates to a list of morning shifts.

The problem I have now encountered is that the system at work is still using excel 97 - 2003 which does not recognise Countifs.

way to adapt the formula to be compatible with Excel 97.

View 7 Replies View Related

Counting Data Using Countif / Countifs Formula?

Apr 18, 2014

Using COUNTIF/COUNTIFS how to counting data with 3 mode ;

name
property
checking

[Code]....

I want to count with criteria based on adjacent value "name" column related with "checking" column

1) counting data "name" with "yes" criteria?
2) counting data "name" with "yes" & "no" criteria?
3) counting data "name" with blank "" criteria?
4) counting data "property" with criteria contains "name" and "yes" criteria

View 9 Replies View Related

Sumifs Formula Returning Zero

Sep 21, 2009

=AVERAGEIFS($D$106:$D$2825,$D$106:$D$2825,">"&$I117,$D$106:$D$2825,"<"&$J117)

Returns = 0

But on a copy of the same worksheet, the same formula returns the correct value. Is there something wrong with my formula cotext?

View 6 Replies View Related

Adding Formula To SUMIFS

Jul 18, 2014

I have a number of cells, with a rule as follows, but within each cell the company name and month vary, over 836 cells, so I cannot do a find and replace so wanted to know if there was a way of adding the following part to the rest of the formula within the 836 cells in one go, rather than tediously going through each cell and copying/pasting.

The part I would like to add to the various cells - 'Master Quote Sheet'!$H$18:$H$6021, "Won"

Existing formula (the varying parts within the different cells are the "02.2014" and "Company Name"
=SUMIFS('Master Quote Sheet'!$J$18:$J$6021, 'Master Quote Sheet'!$E$18:$E$6021, "Direct", 'Master Quote Sheet'!$A$18:$A$6021, ".02.2014", 'Master Quote Sheet'!$D$18:$D$6021, "Company Name")

View 14 Replies View Related

COUNTIFS Formula Identifies Alphanumeric And Date Criteria

Mar 15, 2013

The attached file Countifs issue.xlsx shows my attempt to construct a "CountIfs" formula that finds the one record out of ten that matches the following criteria:

a) Col A has 10 IDs. 3 of them are between 40 - 49, and another 2 are alphanumeric. This formula SHOULD identify these 5:

=COUNTIFS(A2:A11,">39",A2:A11,"<50",A2:A11,"4AB",A2:A11,"40C")

Doesn't work, It finds the 3 numerics but returns "0" when the two alpha-numerics are added.

b) Col B has a list of dates. 5 of the 10 are this month. This formula SHOULD identify them:

=COUNTIFS(B2:B11,(EOMONTH(NOW(),-1)+1),B2:B11,(EOMONTH(TODAY(),0)))

Doesn't work. It returns a value of "0".

c) Col C shows the Status for each record. 5 are "A" and 5 are "B". The following formula DOES find all the "B"s

=COUNTIF(C2:C11,"B")

But obviously I need the full formula to find the one record out of the ten that meets all the criteria.

in (a) and (b) and enable me to combine all three sections.

View 4 Replies View Related

Populate Some Results Using Countifs Formula With Multiple Criteria?

Feb 16, 2014

I am trying to populate some results using countifs formula with multiple criteria. below is the formula am using and the last two criterias are dates

=COUNTIFS('Unproccessed CIT'!$B$5:$B$411,Summary!$A$4:$A$35,'Unproccessed CIT'!$G$11:$G$417,"<>"&"closed",'Unproccessed CIT'!$A$5:$A$38,">="&$C$2,'Unproccessed CIT'!$A$5:$A$38,"<="&Summary!$E$2)

Results:
#VALUE!

View 3 Replies View Related







Copyrights 2005-15 www.BigResource.com, All rights reserved