Finding The Maximum Value Of All Those Meeting A Certain Criteria

May 7, 2005

Range A2:C10 contains the login and logout times of various ID's.
Each ID could log in and out a number of times a day.
How could we find the first time a specific ID logged in and the last time that same ID logged out?

For each of the ID's in range A2:A10, enter two Array Formulas.
To find the first login time (Column B) enter the following formula:
To find the last logout time (Column C) enter the following formula:

ID______Login Time______Logout Time
1 ______02:40___________03:10
2 ______00:15___________03:20
1 ______06:20___________09:30
3 ______09:14___________11:05
4 ______11:00___________19:30
2 ______04:05___________06:55
3 ______12:08___________17:17
1 ______10:00___________16:20
2 ______08:12___________12:33

ID______First Login Time______Last Logout Time
1 ______2:40__________________16:20
2 ______0:15__________________12:33
3 ______9:14__________________17:17
4 ______11:00_________________19:30

View 9 Replies


Formula: Maximum Meeting Criteria

Nov 24, 2006

Need formula to match C1 to Sheet2 E:E and return the corresponding value from F:F into C2.

View 6 Replies View Related

Finding The Nth Greatest Value Meeting Criteria

Jan 1, 1970

I can get the result. It shows #num! in cell F2

View 14 Replies View Related

Finding Each Time Maximum Value?

Jan 26, 2014

I need a formula in order to find each time the maximum value.

View 3 Replies View Related

Finding 2nd Maximum In An Array

Nov 12, 2008

Very simple problem. I need the second highest value in an array. Max gives me highest. Min gives me lowest. I need a kind of a MAX2 function.

View 3 Replies View Related

A Macro To Finding Maximum Value

May 16, 2009

i have a table same this in 5000 rows and 10 columns that are years from 1998 to 2007. ISO2 is two digit names of countries.

ISO2 D1998 D1999 D2000 D2001 D2002 D2003 D2004 D2005 D2006 D2007
CL 135 147 180 192 48 629 494 137 135 359
CL 132 145 177 190 45 623 491 134 132 356
CL 129 141 174 186 42 617 488 131 129 353
EC 126 139 171 184 39 611 485 128 126 350
EC 123 135 168 180 36 605 482 125 123 347
EC 120 133 165 178 33 599 479 122 120 344
KH 117 129 162 174 30 593 476 119 117 341
KH 114 127 159 172 27 587 473 116 114 338
KH 111 123 156 168 24 581 470 113 111 335
PH 108 121 153 166 21 575 467 110 108 332
PH 105 117 150 162 18 569 464 107 105 329
PH 102 115 147 160 15 563 461 104 102 326
PH 99 111 144 156 12 557 458 101 99 323
VE 96 109 141 154 9 551 455 98 96 320

i want a macro to advance filter column A and make a unique list of it and then find the maximum value of each country in column A in 10 years. for example final table for country "CL" must be same this

ISO2 D1998 D1999 D2000 D2001 D2002 D2003 D2004 D2005 D2006 D2007
CL 135 147 180 192 629 629 494 137 135 359

View 3 Replies View Related

Finding Equivalent Of Maximum Value In Another Sheet

Jan 26, 2010

I have to sets of data, each in a sheet with the first column as identical for both sheets. Sheet2 contains two series of 6 rows, each for a specific first column (""B Code").

Now I want to find the values of "TCT-C" column in sheet1 (for each range of 6 rows that the "B Code" is match) which corresponds to the row number that "TCT" in sheet2 is maximum (again for 6 rows). The point is, I need to shift to another series of 6 rows in sheet2 once the "B Code" does not match.

View 9 Replies View Related

Finding Maximum Value While Excluding Some Values

Feb 2, 2006

I have a row of data with the cells I want to find a MAX for are separated from each other:

a1=300 d1=500 g1=800 j1=10,000

I want to find the MAX value for a1,d1,g1,j1, but exclude any value over 1000. So instead of =MAX(a1,d1,g1,j1) returning 10,000, =???(???) will return the next highest max of 800.

View 14 Replies View Related

Finding The Cell Address Of Maximum Value

Feb 12, 2007

I have a range of overtime data. I want to list the maximum occurrence of first 10 overtime data ( Like 3200,2950.2300....etc) Thereafter from the results obtained I need to know the cell address of the employee corresponding to the results obtained, i.e XYZ, ABC.....

Employee Name OT Amount
1. XYZ 3200.00
23. ABC 2950.00
35. WER 2300.00

View 10 Replies View Related

Finding The Minimum Value In A Column That Comes After The Maximum Value

Dec 11, 2008

Say I have 2 columns that in basic form look like this:

Column A Column B
Jan 1
Feb 0
Mar 7
Apr 4
May 15
Jun 2
Jul 5
Aug 4

First I want to look up the max value in this column. This is easy =max(b1:b8)
Then I want to know the minimum value that occurs after the maximum value. Thus the answer would be 2.

View 3 Replies View Related

Finding Maximum In A Variable Range?

Aug 6, 2013

I am now working on an excel spreadsheet which will automatically update every day so that one row will be added on the top of the sheet everyday.i.e.

A1 Date Price
A2 (New row added,date) (New row added,price)
A3 16/1/2013 5.5
A4 15/1/2013 5.6
A5 14/1/2013 5.45
... ...

Assuming that I am looking for maximum value of the column "Price", since max() cannot be applied to variable range, is there other method I could useto look for the most updated maximum value of column "price"?

View 9 Replies View Related

Finding Maximum Number For A Range

Jul 6, 2009

selecting a range under a condition. I'd like to write a macro to find the maximum value for a certain ID. The number of ID rows (left column) is unknown so can't say range("A1:A5"). Then have the ID and max number shifted to another column. Maybe use 'rows.count' ?


4009 5
4009 9
4009 8
4009 4
4005 7
4005 3
4005 9
3008 10
3008 11

View 9 Replies View Related

Finding Maximum Value (but Exclude Blank Cells)

Mar 21, 2014

I am writing a formula for finding a maximum out of three average values. The cells that will be populated with data are A1 to A5; B1 to B5; C1 to C5. The final cell where I want to write the formula needs to show the maximum of the three averages (average of data in each row).

The difficulty is that sometimes only the A and B rows are populated (and sometime only A row is populated) and if B and/or C are blank, the formula fails and shows "#DIV/0!".

How can I write so that if C is blank, then evaluate only A and B data. And If both B and C are blank, then just display the average of row A.

View 3 Replies View Related

Finding The Maximum Value In A Column Based On A Condition

Nov 7, 2008

This should be simple to do but I can't figure it out. I have a database that lists operating room numbers in one column and the length of the surgeries performed in those rooms in another column.

I need a formula that will give me the longest OR time for a given room. For example the room numbers are in column A and the OR times are in Column B. I've tried something like

View 6 Replies View Related

Finding The Maximum Occurrence Of Text Over Non-consecutive Cells

Jun 15, 2009

Im trying to figure out how to show the highest occurrence of text in 10 cells which are not next to each other. Some of the cells will also be blank And the other thing is if there is a draw e.g. 5 2Z and 5 1Z I'd like it to show that, either with a word e.g. "DRAW" or anything really other than just putting whichever of the 2 "notes" in it feels like

Attached is a spreadsheet (all other data deleted) that shows what I am wanting to do I have typed the results I am after directly in to the cells in columns BE & BF BE will need some kind of countif, but when I try that is says I have too many arguments! I have to leave the columns in between blank in this case as they have other info in them, which is really annoying as if those 10 cells were contiguous then the formula

View 3 Replies View Related

Finding The Maximum Number Before A List Turns Negative

May 21, 2009

i have the volume of a reservoir in column A for lets say, 2 years, with monthly data (so 24 numbers in my list)

I also have some variables that feed into this list such as rainfall (fixed), and population (i.e water use, which i can manually change)

if i increase the population too much, the volume of the reservoir will at certain times of the year, fall into negative digits.

what i'm looking for, is a cell which works out the maximum value (in whole numbers) for my population, without any of the numbers in the reservoir volume list falling below zero.

View 9 Replies View Related

Sumproduct Meeting Two Criteria?

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

How To Add Cells Meeting A Criteria

Nov 12, 2012

I'm doing an assignment. This would be very simple w/ filters but I have to do it thru formulas.

I have a bunch of rows w/ various hotels. Row 14 is Rolling Meadows, Row 15 is Lakeview Apartments etc.

Near the top I have to add the number of times Rolling Meadows is mentioned, in the cell below Lakeview apartments, etc.

I tried a sumif formula but that doesnt work. How would you do this? This is what I wrote, I got 0

=SUMIF(B14:B26,"Rolling Meadows")

That's part 1. In part 2 I have to calculate the number of units in that building that are occupied.

View 9 Replies View Related

Return Value After Meeting Criteria

Mar 26, 2013

we would like to get results from a formula that looks at several cells and provides the cost for a product.


If we choose
Cell A3=Transport (from drop down list)
Cell A4=Entrance Facility (from drop down list)
Cell A5=Bandwidth (from another drop down list)
returns the cost for this product in cell A6

We would also like to restrict the lists to the different catergories: if transport is selected you only have the option of 2 of 5 facility types that will work with transport products. Do I need to separate my lists?

View 1 Replies View Related

Sum Data Meeting 2 Criteria

Oct 6, 2006

I need to get the sum of a column where two conditions have to be met. I have tried doing something like: Sum(Sum(AND(V1:V1500="BEBLT", H1:H1500=17) +-Sum(AND(V514:V1512= "NVLIV", H514:H1512=17)))

In a nutshell I want to find the difference between the sum of a column whose criteria is 17 and BEBLT and the sum of another column whose criteria is 17 and NVLIV. This has been extremely frustrating since I am using SQL commands to pull the info from the workbook. Typically I would use

"Select SUM(Z) from Sheet1$ WHERE (H1:H1500=17 AND V1:V1500);"

Unfortunately for me my SQL command brings back an error so I must resort to finding the total in excel and then using the command to bring it into my VBA.

View 4 Replies View Related

Sum Numbers Meeting Criteria

May 27, 2007

I'm trying to use the SUmif with Offset, but the width argument of offset doesn't
seem to work within the SumIf function. I have 14 columns

A Employee
B department
C-N jan through dec salaries per employee per month

41 rows

1 titles
2-41 names of employees

now in May I want to know the salaries per department for the month may only, but also cummulative from jan up to may. Getting may per department works fine, but getting the cummulative doesn't seem to be working

=SumIf(B2:B40;"account";offset(C2;;4)) gives me the sum of department
Account in the month of May
=SumIf(B2:B40;"account";offset(C2;;;;4)) starting point zero (= january) plus 4
columns width, just gives me January.

I've tried several options, but every time he only sums 1 column. Without the SumIf it works fine but for the whole company, not per department ofcourse.

View 4 Replies View Related

Sum Column Meeting Criteria`

Jun 9, 2007

how a SUMPRODUCT function can resolve this. In this sample I want to have 1120-32188 & 1120-32188W be treated the same for the Total sum qty. In this case =10.
This will compute but how do I include items in column A that have 'W' suffixes for computing Total Qty? Formula: =IF(A2=A1,"",SUMPRODUCT(($A$2:$A$100=A2)*($C$2:$C$100)))

View 4 Replies View Related

Sum Cells Meeting Criteria

Aug 9, 2007

I have an Excel sheet with 3 worksheets. On the first sheet I want to enter a formula that will check the third sheet. On the third sheet I need to compare all the entries in column N with a value in Cell B2 of the front sheet. If these match then I need the formula to add up the relevant values in column N. (column N has a 4 letter code, I am only interested in comparing the first letter, as such the value in cell B2 is H*, then in column U it has numbers of minutes, I want a total of the minutes of all those entries with a code that begins with H)

View 4 Replies View Related

SUM Of Data Meeting Many Criteria

Mar 27, 2008

What I have is 4 columns of data broken down as follows Column A = Date Range B = Name C = City D = Amount of People.

What I want to achieve is to be able to go through my list of data and for all rows that match specifically matches A,B,C it will total column D and output to a cell. I also need for it to reflect the name somehow .. so in attached example A2-C2 matches A8-C8 so I would need the output of D8 + A8 (which should be 54) but I need for this to some how reflect a name combination City + Name. So I would know that abc & California have 54 people and that def and New York have 56.

I have attached a basic spread sheet of data; keeping in mind that in the complete data there could be hundreds of combinations for data to be matched.

View 8 Replies View Related

Excel 2010 :: Finding Data With Tied Maximum Scores

Nov 14, 2012

i have product group,product name and the statistics. I'll use an example of students with score. I have these set of data:

1 Student Name Score Sum
2 Student1 Anna 48 80=Sumif(A:A,A2,C:C)
3 Student1 Anna 32 80
4 Student2 Tom 30 80
5 Student2 Tom 30 80
6 Student2 Tom 20 80
7 Student3 June 55 60
8 Student3 June 1 60
9 Student3 June 4 60

Now we have 2 students with tied highest scores with 80 Scores. Naturally i want the rank to be as follow: Top1 Anna since she has the highest score "48", and Top2 Tom, and Top3 June.

The problem is, the score data can vary and Top3 can probably have the highest score and he still didnt make the highest score collectively. And there will also going to be other situations as well because im working on a very large data set, and not these 3 students.

the max score is tied, and since im making another column with sum scores, the data is going to be redundant, and hopefully theres a formula to ignore this.

View 2 Replies View Related

Sum Of Week-to-date If Meeting Criteria

Nov 6, 2009

On the attached file, I would like the values from the Transactions worksheet to show up in the appropriate cells in the XYZ Expenses worksheet. The catch is, I would like the XYZ Expenses worksheet to only show the values from the past week. Past week could be literally, but I'm guessing that might not be possible and it would have to use the past week from the most recent transaction date - which would be fine. So if it worked right, XYZ Expenses > F7 would show -$80, which would be from Transactions H3+H6 (and not -$130, from Transactions H3+H6+H9).

View 3 Replies View Related

How To Count Column Meeting A Criteria

Jul 25, 2012

A column W5:W9999 contains attendance from either of 0, 1, ........31 of employees.

How to count no of employees meeting certain criteria like:

Total no. of emp with values >0.
Total no. of emp with values >0 but < 16.

View 9 Replies View Related

VBA - Sum A Range Once Meeting Multipule Criteria

May 11, 2008

I have been having problems all morning and have not been able to solve it!

I am sure this is very simple....

What I would like to do is assign the result of a sum to a variable. This part is easy what I cannot fathom or find any help with is the multipule criteria bit!

Here is the detail.
Column A - Employee Number
Column C - Area
Column F - Type
Column D - Amount paid.

I would like to sum the amount paid based on the 3 criteria, Employee Number, area & type and assign this to a variable to be used later in a sub I'm playing with.

View 9 Replies View Related

Display Data Meeting Criteria

Apr 21, 2009

I want to write a sub that captures the existing lists in the attached file in two arrays then create two new arrays of customer names and amounts spent for customers who spent at least $500. After these arrays have been filled, I want to transfer their contents to the columns D and E.

View 3 Replies View Related

Copy Values Meeting A Criteria

Sep 28, 2006

im trying to set my workbook up so that it is updating itself daily. Currently it has about 4000 rows of invoices from multiple departments. What I want is a formula that when an invoice reaches 31 days that it goes to a separate worksheet. I don't want it deleted, I just want it to be moved in to a worksheet called 'WatchList'.

Any body know how this can be done. What Ive done right now only puts the row in the same row from the main sheet. So if row 2000 reaches 31, it shows up on row 2000 in 'WatchList'. Im wondering how I can move row 2000 to the top and whatever other row to the top once it reaches 31.

View 4 Replies View Related

Copyrights 2005-15, All rights reserved