Averaging Numbers If They Match A Criteria

Feb 16, 2010

I am running Excel 2003. I have two columns of numbers (column A and column B)
column A has 1s and 0s. column B has latencies (ie. 100-500ms). When column A has a 0, i would like to know the latency of the following row in column B. from this i would like to average all of these latencies that are found. for example.

column A has 1,1,0,1,1.
column B has 100, 200, 300, 400, 500.
so since A3 is 0, then i want the latency of the following row in column B which is B4 or 400. and then average these findings.

View 3 Replies


ADVERTISEMENT

Generating Average From Group Of Numbers In List That Match Two Criteria?

Jan 29, 2013

So we had a month long, company paid (woohoo!) "weight watchers" challenge. On 1 worksheet ("Stats"), I have the Name of every Employee (A Column), then their Start Weight (B Column), End Weight (C Column), Department (D Column) and finally Location (E Column).

I know how sensative some people can be about their weight, so I locked the page and created another worksheet named "UI", which will display the "Average End Weight" for each department. So Human Resources would be the department in cell A2 on the UI sheet, with City 1 being the Column Header in cell B1. There are 8 cities (offices) and 23 departments.

So, for cell B2, I want to scan through the "Stats" worksheet and locate all of the cells in the department and location columns that read "Human Resources" and "City 1" respectively. Then grab the "End Weight" for every row that meets these 2 criteria, add them up, and divide by the number of "End Weights" that were grabbed.

My solution would be to make a separate column for each department (and then each city, so essentially 8 columns to represent all the cities for each department), use a nested (maybe 4) IF statements to then list only the end weight if that particular row meets the criteria, then at the bottom of each separate column, add all the shown numbers up and divide, then draw the information from THAT number into the "Average" cell on the UI worksheet. But it isn't very dynamic and if i want to use this sheet next year, there will be more employee info to be added and it would be a mess..further more, it would be...what...23 Departments x 8 Cities x 155 employees = ~28,500 added cells.

View 7 Replies View Related

Averaging A Set Of Numbers

Jun 25, 2009

I need to average out a set of numbers but the amount of numbers inputed will vary, these number can also be either positive numbers or negative numbers but will never be 0.

How do i do this and I would like this in formula terms?

Say cells a3,b3,c3 were the numbers that I want averaged but there is not always a number inputted in each of these cells. I want the answer to show up in cell a4

View 9 Replies View Related

Trick On Averaging Numbers

Mar 21, 2009

I am looking for the correct way to average a group of numbers.

I know the formula but it doeskin work correct.

I am trying to average this numbers below.

Now when I do this I use this formula

=AVERAGE(G1:G17)

and get this result
-33.079

Now the only problem is, with baseball lines +100 and -100 are both the same and there is never and two or one digit lines like
-4
or -88

its always at min -101 or +101

127
163
146
-119
-124
-139
119
-133
-113
-137
-130
-142
-101
-104
114
111
-111

View 12 Replies View Related

Averaging Numbers But Not Including Zero

Sep 11, 2009

I have a row of cells containing numbers, some of which are 0, how can i get an average where it averages all cells except the 0, as at the moment it is distorting my results.

View 3 Replies View Related

Averaging Only The X Highest Numbers In A Row

Jun 7, 2006

Is there a way to average only the X highest number of scores in a row?

What about if there is an additional condition, i.e., if the column
heading says "Quiz", for instance, instead of "Test"?

View 9 Replies View Related

Averaging Smallest, Non-zero Numbers In A Row

Nov 24, 2006

I'm struggling to get the syntax right for this formula. I've been trying variations on the following formula but can't get it right:

=AVERAGE(SMALL(IF(AP8:AZ80,AP8:AZ8),1)))


Columns AP:AZ:

1.8921.7621.6501.1741.2261.2991.3020.0000.0001.1461.333
Any column in this range could have a zero value.

What I need: The average of the 8 lowest non-zero numbers in range AP:AZ

View 9 Replies View Related

Averaging Numbers From Similar Names

Oct 14, 2009

I have tried looking for similar questions in the forum and couldn't find them. If you know of any, please let me know. My problem is that in one column I have peoples names that are repeated. I need to average numbers that are in the same row as their name. So for example:

NameDateworkPagesRevisions Revisions/PageRH9/16/09Sandy land39320.82Bryce9/18/09Price mixed use1111030.93Bryan F.9/21/09Letter (rates)6325.33Bryan F.9/21/09Bountiful Nursery64871.36Randy9/22/09SJ Subdivision58220.38RH9/25/09Park City office Condos76881.16Bryce9/25/09Evanston Motel62210.34

this list is continually added upon monthly. So for Bryce I would be able to pull 111 and 62 and have an average of 87.5 from the pages column. But if I were to add another row farther down with his name, it would change the average.

I was thinking that a repeated vlookup would work if it stopped when there was a blank in the cell, but I am unsure on how to do this. If you have any questions, let me know. I was hoping to have it in a formula in a cell above the table.

View 9 Replies View Related

Averaging Multiple Columns / Rows If Two Criteria Are Met

Apr 30, 2014

I have a dataset consisting of concentrations of parameters (alpha and beta) at different locations over multiple years. I've included an example dataset here.

I need to calculate an average and standard deviation for each parameter that spans multiple locations and years (but not all locations and years).

Example 1: Calculate the average and standard deviation of alpha values from years 2009 to 2012 at locations A and C.

Answer should be: Average of {0.84, 0.47, 0.27, 0.14, 0.36, 0.65, 0.66, 0.85} is 0.53. Standard deviation of {0.84, 0.47, 0.27, 0.14, 0.36, 0.65, 0.66, 0.85} is 0.26.

The real dataset is large, including 7 different parameters and more than 30 locations. I need to perform these calculations for many parameters, so am looking for a formula (or array formula) that will do this in as little cells as possible. Can this be done by formula or will I need a macro?

Location
Parameter
2008
2009
2010
2011
2012
2013

LocA
alpha
0.24
0.84
0.47
0.27
0.14
0.33

LocA
beta
4
9
9
8
2
9

LocB
alpha
0.24
0.33
0.85
0.54
0.56
0.65

LocB
beta
8
7
6
7
2
9

LocC
alpha
0.24
0.36
0.65
0.66
0.85
0.92

View 3 Replies View Related

Formula For Averaging Array Given Multiple Criteria

May 19, 2014

I am looking for a formula that averages the numbers in an array if they match the row and column text-based criteria. Based on another thread, I found and edited the following formula. However, it is giving me incorrect numbers.

[=AVERAGE(IF(($A$3:$A$275=$P6)*($B$2:$M$2=Q$4),$B$3:$M$275))]

I have attached a sample workbook that includes the broken formula.

Average Formula Error.xlsx‎

View 4 Replies View Related

Averaging Middle 10 Numbers Of A 12 Number List

Aug 1, 2014

How I could get an average of a 12 number list while at the same time removing the highest and lowest numbers. They aren't in any order either.

1087.2
1041.35
1040.35
1049.65
800.45
734.15
835.7
1157.15
1145
1098.5
788.6
1265.85

View 6 Replies View Related

Compare Two Cells In A Row With Criteria. Count Rows That Match Criteria

Sep 22, 2009

Here is what I have. 4 Worksheets. The first worksheet is a summary page. I have 350 personnel that are broken down into three different groups. So each group has it's own sheet. Here is what I need to accomplish. Results need to be posted on the summary sheet.

I need to compare cells B2 & D3 for each row on a worksheet and display the number of times they match on a worksheet. For example how many times does EP & EP match on a certain row. I need to compare cells B2 & D3 for each row on a worksheeet and display the number of times they don't match on a worksheet. For example how many times does EP & MP occur. I've attached an example for reference

View 5 Replies View Related

Provide Filter With A List Of Criteria But When It Doesn't Match All Of The Criteria?

Apr 1, 2014

Is there a way to provide filter with a list of criteria but when it doesnt match all of the criteria it still uses the filter on the criteria that it does match?

E.g i have this code

ActiveSheet.Range("$A$7:$N$31997").AutoFilter Field:=1, Criteria1:=Array( _
"A", "B", "D", "E", "H", "I", "R"), Operator:=xlFilterValues

However sometimes for example B will be missing, or H or B H I will be missing etc... is there a way to provide all of the criteria and it will not error if the criteria is not all there?

View 1 Replies View Related

Match (text) Numbers To Numbers From One Cell To Another

Oct 12, 2006

I need the " solutions cells " to match to the " source cells " and return a " yes " or " no ". in cells d4:d10. Ex: #1 cell C4=01234598, it will conduct a search & match of cell A5 which contains the number 123, since cell C4 contains all 3 numbers from cell A5, then the formula would result in a " Yes ". The match has to contain all 3 numbers from the solution cells to the source cells.

Ex: #2 cell C7=67891234, it will conduct a search & match of cell A8 =901. Since cell C7 only contains the 9&1 from cell A8, it would return a " No " because cell C7 did not contain all 3 numbers from cell A8. I'm not sure if the IF, Match, Index or Count formula is the right one to use, they all seem to partially work, but still don't complete this problem.

View 4 Replies View Related

Match 2 Criteria With 2 Criteria To Pick Up A Value?

Dec 12, 2013

I have a list of data that has (Col A) item, (Col B) lot# and (Col C) quantity. In Columns DEF I have the same but column E (Lot#) is blank. Is there a formula I can use that would match Item and Quantity (A and C) with (D and F) and then drop the Lot # form column B into column E if there is a match?

Item
lot
Amt
Items
Lot #s
Yds

10429.50.0
N49950
2.5
0201.019FLAME.0
T37530
9

[code]....

View 5 Replies View Related

Match 2 Criteria..?

Mar 4, 2009

Col B is a range B2:B200 Col C is a range C2:C200 Col D is a range D2:D11, Col B contains any number from 1-10 Col C contains any number from 1-100 Col D will contain the sum of the occurences when the value in C equals 98 or 100. For instance if in Col B the number 9 occurs 17 times and the corresponding cell in col C is 98 or 100 for 6 of those times then in D10 I would hope to see the value 6. Thus far my hopes have been dashed to pieces against an insurmountable wall of error codes!

View 3 Replies View Related

Match 3 Criteria

Mar 11, 2009

Match 3 criteria. I'm a relative newbie to coding having a bit of difficulty with the following formula:

View 4 Replies View Related

Match Either Of Two Criteria (not Both)

Dec 19, 2012

Let's say I have the following situation:

Column A has values 1-15, each repeated many times. I want a match function to return all the row numbers for which column A is a 3 or a 4. (It's within an index function (which is with a standard deviation function), so not sure how I could match twice and not break my higher level nested functions).

View 7 Replies View Related

How To Match Right Numbers?

Mar 22, 2014

I have to pull all correct numbers from second sheet into first sheet at right column. I've tried to write a formula to solve the problem, the answer is not correct. The main purpose of the formula is compare the value from TASK sheet into first column in DB sheet and if find matches to continue matching with next cells on the row. The advanced level is to write all correct matches into 1 cell, delimited by comma.

View 6 Replies View Related

Match The UPC Numbers

Dec 26, 2006

I have 4 columns A,B,C, and D im trying to make an inventory list of items that I have on my website...
A has a list of lets say 20 numbers well just say 1-20
B is the quantity my website shows available
C is the list of items my supplier has which is what I want to have lets say 1-30
D is the quantity available of C

Basically I run a website and sell **'s so column A, and C are UPC # and I have 1000's of them...what I want is a formula to make the UPC numbers (C) to match what is in (A) so I know what I need to add...but also I want to keep D in the same row with C so I can add and decrease B

View 9 Replies View Related

Add Numbers On Match?

Nov 20, 2013

Is it possible to Add the number based on the first 3 elements of the string.

ABC-123
1
ABC-1444
1
XYZ-3213
1
PQR-435
1

[code]....

View 3 Replies View Related

SUMPRODUCT To Match Criteria

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

How To Use The INDEX And MATCH Against Two Criteria

Jul 8, 2014

Screenshot1.JPG

Screenshot2.JPG

So basically, I have these two sets of data in 2 separate tabs. I need the 2 sets of data circled in green that match to bring up data circled in red.

How would I go about doing this?

View 2 Replies View Related

Return A Value If 2 Other Criteria Match

Jan 11, 2009

Rather than attempt to describe my problem here and risk cofusing people on what I want to achieve I have put a diagram together. I think this is the best way to illustrate my problem.

Diagram is available here
[url]
There is also a copy of the document available here for any body willing to take a look.
[url]
Please bare in mind I need this doc to be compatible with the 2003 version of Excel.

View 14 Replies View Related

Use Multiple MATCH Criteria?

Jan 19, 2010

I have been trying for the last 2 hours to write a formula that does the following;
If a number appears in this table (on another worksheet named VAT Codes) then return VAT but if it appears in this table (on another worksheet named VAT Codes) then return NO VAT. The following formula returns VAT but N/A when it should say NO VAT; =IF(F3="","",IF(MATCH(F3,'VAT Codes'!$I$7:$I$19,FALSE),"VAT",IF(MATCH(F3,'VAT Codes'!$K$7:$K$143,FALSE),"NO VAT","")))

View 4 Replies View Related

Match Certain Criteria To Product?

Dec 21, 2012

I tried to use SUMIFS and VLOOKUPS to resolve the problem, but it didn't work out too well.

View 7 Replies View Related

Match 3 Criteria / Count Once

Dec 4, 2012

I'm looking for another twisted forumla / array. Here's what I'm trying to do?

When the value in data!G$2:G$51000 = Yes
AND
The value in data!J$2:J$51000 is Unique (counted once if more than 1 total matches)
AND
The value in data!H$2:H$51000 is

View 3 Replies View Related

Match Tow Criteria With Total

Jun 4, 2013

I am trying to create a summary sheet in excel and i am in need of a formula which gives me a summary in Sheet 2.

i.e. Match column A2:A19 with F2:F19 and give me the total in Sheet 02 with date and reason.

Sheet 01

In no
In Date
In Sector
STA
ATA
Out
OutDate
Out Sector
STD
ATD
Total
Reason

[Code] .......

Expected result in Sheet 02

Flt No
Date
Reason
AB318
AB300
AB030
AB420
AB484

[Code] .....

View 9 Replies View Related

Get Address With Match Criteria

Dec 21, 2009

what is the cell address whith column criteria MATCH to:
column1 = "A"
column2 = "B"
column3 = "C"

AND...

with header criteria MATCH = "ZZZ"

View 9 Replies View Related

INDEX & MATCH 3 Criteria

Mar 12, 2009

I have a userform that collects production data from several production lines each running up to 4 shifts every day. This populates a table for performance related calculations to be applied.

Each day I must produce a report for each line and shift showing the performance stats I have calculated. the format of the report has been defined for me and I'm not allowed to change it at the moment.

I wrote a line of code to be applied to each cell I wanted to show the data in excel 2007 but this doesn't work in 2002 which is the version in our office and I'm hitting my head against a brick wall.

Essentially the report will either use Now() or get the user to enter a date, then I need to search for the unique reference that meets the date, the line and the shift and return several values in the report from the row in my "daily data" table.

Here is the code I have so far - it returns a "VALUE" error...

=INDEX('Daily Data'!A6000:AA6000,,19,MATCH($B$2&"Line "&$A$6&B6,'Daily Data'!$F6000:$F6000&'Daily Data'!$H6000:$H6000&'Daily Data'!$I6000:$I6000,0))

(although it doesn't show ot here I have entered it as an array formula)

The previous code I tried (again entered as an array) returns a "NUM" error

=INDEX('Daily Data'!A:AA,,19,MATCH($B$2&"Line "&$A$6&B6,'Daily Data'!$F:$F&'Daily Data'!$H:$H&'Daily Data'!$I:$I,0))

B2 is date (dd/mm/yyy)
A6 is line number (numeric)
B6 is shift (alpha)

View 3 Replies View Related







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