Nested Formula (Sumif / Countif) - Sorting Table

Mar 6, 2013

It's actually a sumif/countif that works fine if i sort my table, which i don't want to do.

Here's the original formula:

Code:
(SUMIF(H4:H35,"1",G4:G35)/COUNTIF(H4:H35,"1")*1+SUMIF(H4:H35,"2",G4:G35)
/COUNTIF(H4:H35,"2")*2+SUMIF(H4:H35,"3",G4:G35)
/COUNTIF(H4:H35,"3")*3+SUMIF(H4:H35,"4",G4:G35)
/COUNTIF(H4:H35,"4")*4)/10

I'm trying to apply the formula using some other filters, like if(C4:C35=O5 & I4:I35=M5).

I tried creating a SUMPRODUCT out of it but it was just as bad:

Code:
=(SUMPRODUCT((C4:C35=$O$5)*(I4:I35=$M$5)*(H4:H35=1)*(G4:G35))
/SUMPRODUCT((C4:C35=$O$5)*(H4:H35=1)*(I4:I35=$M$5)*1)*1+...

And also this with sum(if)

Code:
=(SUM(IF(C4:C35=$O$5,IF(I4:I35=$M$5,IF(H4:H35=1,G4:G35))))
/COUNT(IF(C4:C35=$O$5,IF(I4:I35=$M$5,IF(H4:H35=1,G4:G35)))))*1+...

Is there a shorter formula that I'm not seeing ? I'm also confronted with the need of adding an "ISERROR" in the formula because not all ranges have the 1-4 numbers in column H.

View 9 Replies


ADVERTISEMENT

Consolidating Lists And Nested SumIf(AND / Countif(AND Statements

Jun 10, 2014

I am trying to produce a report of supplier transactions sorted by area code. I have a spreadsheet of data consisting of Supplier Code, Supplier Name, Transaction Amount and Area Code.

I want to be able to firstly seperate the transactions by area, then also consolidate the data so it shows one row per supplier with total amount spent on that supplier and a transaction count on that supplier. I know how to sumif the transaction total and countif the transaction count.

However I have problems consolidating the suppliers in to one row per unique supplier and I also have problems nesting an AND statement in to the sumif/countif statements. I need additional criteria in the forumula to only count transactions in a specified area code.

I've attached an example spreadsheet to make it alot clearer. See results sheet in this workbook.

View 3 Replies View Related

Nested SUM & COUNTIF Formula With #DIV/0! Error

Mar 16, 2008

I have a student grade worksheet with this formula and it returns # DIV/0 which I need to solve the problem. I have tried many different ways and none seem to work. Con someone assist with this problem. Here is the formula:

= SUM(R13,R55,R97,R139,R181)/(COUNTIF(R13,">0")+(COUNTIF(R55,">0")+(COUNTIF(R97,">0")+(COUNTIF(R139,">0")+(COUNTIF(R181,">0"))))))

View 9 Replies View Related

(FORMULA) Return Largest Time With Nested Countif And Text

Dec 4, 2013

I'm logging failed password attempts and need to find the latest time logged for a single user (when user has failed 5 times).

So the 5th attempt, I need that time

So the usual - Application.UserName in the next free cell in a range and time stamp in the next cell.

What I've tried is:

Say log range is A1:B500 and
A=Username, B=Time stamp

In column C I've nested the two together
(this has more code but not required to get this working)

In C1
Code:
=A1&" "&"live"&" "&B1

So this will bring back "Username live 23:12:12". Now, say there is 5 of these (all with different times)

How do I find the latest time for that user?

Code:
IF(COUNTIF("USERNAME LIVE"&"*")=5,[find the latest time in that list",""

Just to wind you up some more, other users name will be logged and muddled up so it's literally -

"Excel - if a user has failed 5 times then give me the time of the 5th attempt"

I've tried a mixture of COUNTIF, MAX, LARGE, TIMEVALUE(...)

View 4 Replies View Related

COUNTIF And SUMIF Formula

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

Nested SUMIF Statement Or Multiple SUMIF

Sep 17, 2009

I need to perform 2 SUMIF's on 2 columns of data to return a result and I'm not quite sure the best way of doing this. I'll give an example below.

I have 2 columns of data, both numeric and the SUMIF needs to say if H1:H100="10" and also if J1:J100="907". I can perform one or the other but not both.

View 6 Replies View Related

Nested SUMIF

Sep 16, 2008

I've tried various ways of nesting the SUMIF function within itself but just get error messages. Is a nested SUMIF possible? What's the format?

View 9 Replies View Related

Sorting Table With Array Formula?

Mar 17, 2014

I'm trying to sort a table as displayed in the image below. The table consisting of items in column A, here fruits, and a column E where totals over three month is displayed.

I have entered an array formula in column H where the total of each fruit is summed and then sorted in descending order. My problem is that whenever two fruits have equal value (here, apple and pear), Excel will not manage the display of both fruits, it will just display the first twice. The formula in column I is a simple SUMIFS.

It doesn't matter if Apple or Pear is displayed first, but I need both items to be displayed in column H.

excel1.png

View 5 Replies View Related

Nested Countif?

Mar 16, 2007

I searched on this and didn't find what I was looking for. I want to count entries that have critieria I specify in two different ranges. Is countif the way to do this?

View 9 Replies View Related

Countif Nested Conditions

Aug 28, 2007

I just need it to be able to test two seperate conditions on two seperate columns but i cant work out how its done

for example, i have two columns on a sheet, one called type and one area, both are text, i need to count how many items of one type are in a particular area. so if i have two columns "area" and "type" i want a total count of how many rows contain area="north" and type="b"

View 13 Replies View Related

Vlookup With Nested IF's Or CountIF's

Oct 8, 2009

Hi guys, hopefully you can shed some light onto this small problem I am having.

The current formula I'm trying to use is:

=IF(VLOOKUP(A4,EPG1!D4:AN26,6,FALSE),COUNTIF(PASS,""))+IF(VLOOKUP(A4,EPG1!D4:AN26,6,FALSE),COUNTIF(F AIL,""))

This isn't producing the desired results.

What I am trying to do in words is this:

IF... in this array it equals A4 then look at coloum 6 and then Countif col 6 says Pass and then add another if it says Fail....

View 7 Replies View Related

More Than 7 Nested IF's And Countif Formulas

Apr 13, 2007

I'm working on a formula that will determine the lowest number in a range.

The complication is that the range varies based on how many rows match a certain criteria.

The formula I have created works correctly, however, I need to have the range go up to 10, and because of the limit of 7 nested IF's, I have to stop at 6.

=IF(A2=A1,"",IF(COUNTIF($A:$A,A2)=1,G2,IF(COUNTIF($A:$A,A2)=2,MIN(G2:G3),IF(COUNTIF($A:$A,A2)=3,MIN(G2:G4),IF(COUNTIF($A:$A,A2)=4,MI N(G2:G5),IF(COUNTIF($A:$A,A2)=5,MIN(G2:G6),IF(COUNTIF($A:$A,A2)=6,MIN(G2:G7),"")))))))

After a result is returned from this formula, I have to do the almost exact same formula, based on the min value from these results.

View 9 Replies View Related

Nested Countif Not Working: Track Metrics For A QC Department

Nov 26, 2008

I am trying to track metrics for a QC dept. Right now my sheet has 35 lines of data and a header row, for 36 lines total. This is my funtion that isn't quite right:

View 2 Replies View Related

SUMIF And COUNTIF

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

Sumif And Countif By Month?

Dec 1, 2008

I play poker, and I have a live session log in an excel spreadsheet, like so:

View 2 Replies View Related

How Do I Set Up A Countif Or Sumif That Is Multiconditional

Jun 20, 2006

I often try to set up a countif or a sum if that is conditional on two or
more conditions. For instance - I have Radio stations listed in one column,
flight dates in another column, number of contacts for each flight in another
column and appointments created from those contacts and finally, revenue
generated form those appointments. One example would be to sumif column one
equals the radio station and column two equaled the flight date then give me
the revenue.

View 9 Replies View Related

Countif, Sumif Or Sum Product

Jan 25, 2010

I have a table with 3 columns,

Project Person Hours

A B 1
A C 2
A B 3

So on project A persion B has worked 4 hours. I seem to be able to use sumproduct for counting how many times the person is in the project but I cannot seem to add on the final hours part.

View 2 Replies View Related

SUMIF/COUNTIF = Average

Mar 13, 2008

I have a report that has thirteen tabs. Tab one is Jan; two, Feb; three, Mar, etc. The last tab is where I'm consolidating all the data into a report.

In Row 2 of Jan-Dec are the days of the week.
In Row 30 I have the data.

I am figuring the average of each day of the week for each month as well as a total average year-to-date.

Here is my formula for Jan and Feb:
=SUMIF(JAN!$2:$2,"MON",JAN!$30:$30)/COUNTIF(JAN!$2:$2,"MON")
=SUMIF(FEB!$2:$2,"MON",FEB!$30:$30)/COUNTIF(FEB!$2:$2,"MON")

Works great after the month is over - but now I'm in March and the formula is adding all data form row 30 that falls under MON and dividing my all MONs even if it does not have data.

How do I nest in the COUNTIF statement to only count MON IF there is data in row 30.

View 9 Replies View Related

SUMIF/COUNTIF With 2 Criteria

Sep 24, 2009

I am trying to extract some data from a large spreadsheet and having problems...

Column C contains text descriptions, e.g 'Description One', 'Description Two', 'Description Three'

Column O contains a date.

I need to count the number of items that have a date prior to 1st April 2007 and have certain text contained in the full text string value in column C e.g. 'One'

View 9 Replies View Related

Count, Countif, Sumif

Jul 13, 2006

I've got a table that contains a lot of text that i need to summarse in another table. Its really just two columns the first contains a group name and the second a result. What I need to work out is the number of times the result occurs for each group. But every work sheet function I've entered fails.

View 5 Replies View Related

Sumif And Data Sorting.

Apr 3, 2007

I have 3 worksheets in the same workbbook named Payment Distribution, Invoice Detail, and Corporate Phones respectively. Payment distribution has 3 columns (Corp, Dept, Cost). This worksheet is protected against changes. Invoice Detail has 2 columns (Deptartment, Charges). This worksheet is a workable worksheet.
Corporate PHones has 4 columns, (Phone #, Dept, Name, charges) with mulitple listings per row.

SUMif is used in the Invoice Detail worksheet for the department numbers and the subtotal of those charges for department numbers. The Payment Distribution worksheet contains a reference to a cell in Invoice detail for that department.

If I add a new department listing to Invoice detail and then sort the department numbers numerically, how can I get the forumla for SUMif to maintain the same no matter how I sort the data? It is causing issues if I sort the departments numerically if I add the new department to the bottom of the list.

View 3 Replies View Related

COUNTIF Or SUMIF: Changing Amount

Oct 29, 2008

I have a data range with 3 columns - A -employee number, B -charging number, and C -charge amount. "A" shows multiple times and must be associated with value from "B". I am looking for totals of "C" for any combination of "A" and "B".
Ex.

A B C
1 101 6
1 201 7
1 101 4
2 301 6
2 101 1
2 201 4
3 201 5
3 401 7 etc.


I am looking for totals (from column C) for A and totals for A with defined B. e. g.:

1 for all 101
1 for all 201
1 total
2 for 201 etc..

View 2 Replies View Related

Ignore Blanks Using =SUMIF/COUNTIF

Jun 2, 2009

I've come across a problem using the =SUMIF/COUNTIF function in excel. It incorrectly calculates blank cells as zeros.

=SUMIF(D4:D54,"Solar",T4:T54)/COUNTIF(D4:D54,"Solar")

The correct output should be 100%, but shows as 66.67% because of the blank cells in the column. How do I correct this?

View 10 Replies View Related

Weighted Averages Using SUMIF And COUNTIF

Jul 6, 2009

DATA: D1:D11 contains either blank cells or a dollar figure from a payroll check.
E1:E11 contains either blank cells or the date of the check.

Current Situation: Using the following formula I obtain a weighted average of the pay checks, not including the largest. =(SUM(D1:D11)-MAX(D1:D11))/(COUNT(D1:D11)-1)

Problem:
I desire to calculate the weighted average based on the checks issued only prior to a certain date. I have used SUMIF() in other parts of the workbook successfully but needing to withold the largest value has presented me with a problem I can not find a solution to. =SUMIF((E1:E11,">="&TargetDate,D1:D11)-MAXIF(E1:E11,">="&TargetDate,D1:D11))/COUNTIF(E1:E11,">="&TargetDate,D1:D11)

View 4 Replies View Related

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 View Related

SUMIF/COUNTIF- Several Numbers That Are Contained In Non-adjacent Cells

Jan 9, 2008

I have several numbers that are contained in non-adjacent cells. I need to create a cell that will evaluate the cells individually to make sure that they are within a certain range. Once that is done, I want the remaining numbers that are within the range to be averaged. How the heck can I accomplish this task? SUMIF and COUNTIF will not allow me to use non-adjacent cell ranges.

View 9 Replies View Related

Formula- To Pull Cell Values Similar To A SUMIF Function (SUMIF(range,criteria,sum_range))

Oct 25, 2007

I am trying to pull cell values similar to a SUMIF function (SUMIF(range,criteria,sum_range)). For example, in A1 I use a data list created from data elsewhere on the spreadsheet. In the data I created elsewhere, there are 2 columns being used. The 1st column is the information that is being used to create the list and the second column contains specific values (number or text). In the dropdown menu I select an available value (text or number) . When I have selected that value I would like cell A2 to show what the cell directly to the right of it shows from the data I have elsewhere in the spreadsheet as mentioned. I have tried the SUMIF function however it seems to exclude certain values (number or text) and I am not sure what else to use.

View 9 Replies View Related

Nested If Statement For My Table

Apr 17, 2008

I am trying to write a nested if statement for my excel table. I calculated the betas of the stock portfolio. I would like to create an if statement that would do something like this:

if beta is less than 1 -- Below Average Risk
if beta is greater than 1 but less than 1.25 -- Average Risk
if beta is greater than 1.25 but less than 1.75 --Medium Risk
if beta is greater than 1.75 -- High Risk...

View 9 Replies View Related

VBA / Using Nested Loops To Expand Summarized Table?

Oct 14, 2013

As far as I can tell there needs to be a nested loop with some kind of variable inside a variable, but to be honest it's well beyond my current skill level... I have the file hosted on my Google Docs below.

[URL]

Company

Item
Quantity
Costs

Tesco
Cheese
4
50

Tesco
Milk
5
50

[code]....

View 3 Replies View Related

Concatenate Formula Nested Within IF Formula Is Not Producing Expected Results

Aug 24, 2014

I am trying to use a combination of Concatenate and IF formula to produce an email.

My input.

D4: First Name:
D5: Middle Name:
D6: Last Name:

D8: Organization:

Once all these are filled, I want the formula to produce a result like

FirstName.M.LastName@Organization.com

I have used the following formula.

[Code] .....

Problem is if there is a middle name the formula works fine, but in case where there is no middle name, it produces the following result.

FirstName..LastName@Organization.com

How do I remove the additional (.) in cases where there is no middle name.

Attached File : Email Generator.xlsx‎

View 3 Replies View Related







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