# Sum Formula To Add X Largest Numbers?

Aug 24, 2014

writing a formula to sum the six largest numbers from a row of numbers. I have used the array formula "=SUM(LARGE(E2:M2,{1,2,3,4,5,6}))" and it works for rows that have six or more numbers; however, not all of my rows always have six or more numbers. Rows that have less than six result in "#NUM!".

## Sum The Largest 5 Numbers On A Row?

Jun 13, 2014

I have been trying to sum the largest 5 numbers that are in a row

the number are in the columns stating c1, e1, g1,i1,k1,m1,o1 ect for about and other 15-20 columns, so there is a missing, so a lot of numbers

thing to note i am missing a cell between the cells i need to count/ sum ...

## Largest Sum Of Consecutive Numbers

Dec 9, 2013

with this Excel problem? I have a set of data of 300 some odd rows of numbers. I need to find 24 CONSECUTIVE values that add up to the HIGHEST sum? For instance,

2
2
0
0
4
2
0
0
1
8
5
2

## Sorting Numbers From Smallest To Largest?

May 10, 2013

There must be something I'm doing wrong, because I have a list of numbers and when I select Data --> Sort --> Column G, I am not given the option of sorting "From smallest to largest". Only from "A to Z" or viceversa.

## Largest Numbers Based On Criteria?

May 11, 2012

I wanted to present the 10 largest numbers from a list (P4:P104) only if they had the words Tauck or Collette in C4:C104

When I have that list I will also need to present the supplier name which is listed in A4:A104

I used this formula to get the 10 largest first

=SUMPRODUCT(--(Data!C4:C104="TAUCK")--(Data!C4:C104="COLLETTE"),LARGE(Data!P4:P104,ROW()-ROW(A\$6)))

## Locating Largest Numbers In Separate Sets

May 6, 2009

1 35
2 37
3 39
4 22
5 25
6 27
7 28
8 23
9 25

I have the above table. What I want excel to do is to grab the largest number in each set of numbers from the second column and return the corresponding number in the first column. So basically, excel would return a 3, 7, and 9 in cells C1, C2, and C3.

## Conditional Formating To Find Largest Numbers In A Selection

Mar 14, 2007

I am trying to create a macro that works with a range of cells and identify the five largest numbers in the range. The following are the steps.

1. I select a range of cells and run the marco.

2. The macro will identify the largest number in the selection and make the cell color red.

3. Then it will find the cell with next largest number and turn the cell orange...and so on till the 5th largest number.

## Find Three Largest Numbers From A Variable Starting Index Match Point

Sep 1, 2013

My data is set out in columns, where alternate columns provide day numbers for given years (we can call these type 1 columns), with adjacent columns containing values which correspond to those type 1 column day numbers (we can call these type 2 columns). There are about a hundred columns in total (50 of each type). I would like to get excel to return the three largest numbers within each type 2 column, but I want to exclude data within the type 2 column above the point which is adjacent to a specific (varying) day number in the type 1 column. The location of this point varies for all the type 1 columns, according to a third row of numbers (the look up start point), which are currently listed below the dataset in every type 1 column. So, for the type 1 column "year 1", I would want Excel to ignore the values 0 and 1, which are listed next to day numbers 78 and 79, and begin looking for the three largest values down the column starting from the value which is adjacent to 81 (which is a 2). In type 1 column "year 2", excel would start looking for the largest values from the cell adjacent to 78, so it would ignore the 18 at the top of the column,and would return 2 and 12. And so on.

Year1
Value
Year2
Value
Year3

[Code]...

look up startpoint

81
78
62
83

## Retrieving Column Header For Largest Or Second Largest Value In Row?

May 12, 2012

I have a table showing interest levels in training courses from a group of schools, eg:

English Maths Science
School1 3 4 2
School2 7 1 0
School3 3 2 5

I want to identify the column heading for the first, second and third most popular courses. ie for School1 the most popular course is Maths, second most popular is English and so on.

I have tried using the OFFSET function, which worked if I provided the cell location of the required value. I then looked at the ADDRESS function to provide the cell location: eg For School2 find the 2nd most popular course:

But I have got stuck with what I should enter for COLUMN(data?) as I do not know in which column the second largest value is.

I am sure Excel has the required functionality.

## Find The Largest Value Within A Formula

Nov 26, 2008

I need to find the largest value within a range that is less than the result of a formula from another set of values.

Something like this:

=MAX(E98:E115) that is <=(P63+((1.5*(P63-P61))))

## If Formula: Pick Out Which Is The Largest Figure Of Column A,B,C,D For Each Row

Oct 14, 2008

See attached. This is a report that I have to do every month. I cant work out a formula for it. What I need is a formula that will pick out which is the largest Figure of column A,B,C,D for each row and put the corresponding header in column G. i have manually put these in. Would anyone know a formula i could use for this.

## Formula For Calculating Largest Square To Fit In A Quadrilateral

Feb 23, 2010

I know this ain't going to be easy if at all do-able, but would anyone know if there can be a formula/s made to calculate the largest size "square" shape (e.g. all 4 corners at 90 deg.) that would fit in to a known size Quadrilateral?

Value A,B,C,D and Z are all known values as are the diagonal lengths between corners

I failed dismally in Geometry at High school, but how was I to know that 35 yrs later I would need to know this stuff!!

Please see diagram for an idea of what I'm trying to achieve.

## Named Formula To Return The Nth Largest Value From Range

May 19, 2009

I have a named range which refers to: =MATCH(LARGE(\$G\$5:\$G\$68,ROW(G5)-4),G\$5:G\$68,0)+4. It is supposed to find the largest figure in the adjacent column, list its row in cell H5, then the second largest for cell H6 and so on until the end of the data. The data in column G is dynamic and some cells will contain "0" with certain sections of data thus why I need a formula and cannot just use sort each time.

My problem is that when I use the formula as a named range I get "#N/A" and when I evaluate the formula I will get the answer but in array brackets (e.g.{17}) before the final step turns it to "#N/A". The formula will work fine if inputted directly into the cell but as the same formula will be used over three columns and numerous rows I would much prefer to use a named range.

## Formula For Largest Percentage Related To Reference Number

May 15, 2014

I have data one sheet which is

Date Ref No Type %complete
Monday 1 Erect 75
Monday 2 Erect 50
Tuesday 1 Erect 95
Wednesday 1 Erect 100

On the next tab I am consolidating all the reference numbers and want to capture the latest % complete

I have been trying =Max(if ref no=1 and type = Erect, % complete),1

But when I try it for reference number 2, it just says 100% aswell, when that should be 50%.

## (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

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(...)

## Index Matching: Formula To Give "name" Associated With The Largest Number In A List

Nov 10, 2009

INDEX(\$D\$19:\$D\$22,MATCH((LARGE(\$E\$19:\$E\$22,1)),\$E\$19:\$E\$22,0))

I use this formula to give me a "name" associated with the largest number in a list. But I can't get it to work when I use it on a win/loss number such as

## Use The Results Of A Formula As Column/row Numbers In Another Formula

Oct 1, 2009

I have two cells. The first cell has the formula:

=CONCATENATE("D",TEXT(MATCH(\$B\$6,'Zip Ranges'!\$D\$1:\$D\$157,0)+1,"0"))

which results in a col and row number (such as D65).

The second cell has the following formula:

=INDEX('Zip Ranges'!\$A:\$B,MATCH(\$B\$6,'Zip Ranges'!D1:\$D\$157,0),2)
^^
I wish to replace the 'D1" in the Match function with the results of the first cell's formula.

I assume Indirect would work, but I don't know how to code the formula to use it.

## Sum X Largest

May 9, 2007

I have 3 columns. The first has names of students, the second names of their schools, and the third the student's scores. I need to add together the top 4 scores from each school and return them in a table. I have tried combining LARGE and SUMIF but to no avail. Also tried a Pivot table but I cannot get just the top four scores to add.

## Determine Largest Value

Mar 26, 2009

I'm working with box quantities and would like to get a formula that would take the box quantity and return the largest value based on some parameters. Here are my parameters:

Box Quantity

- 375 pieces

Break down options

2 - 187.5 pieces
3 - 125 pieces
4 - 93.75 pieces
5 - 75 pieces

Obviously options 2 and 4 are no good as I can only work with even break downs. This leaves me with either 3 or 4 and because I want the largest, I would choose number 3. What I need is help on a formula that will take the value of the box quantity and return the largest whole number. I think for the time being I would like to leave the break down between 2 and 5 as well.

## Lookup Next Largest Value

Nov 14, 2006

If TRUE or omitted, an exact or approximate match is returned. If an exact match is not found, the next largest value that is less than lookup_value is returned. But this is not correct as the value I am seeking falls with a range of Min/Max Values therefore the return should be the Next Largest Value

I have values I would like to lookup against a table Min Max values
Col A Min Value 700,000
Col B Max Value 799,999.99

The value being sought is 745,000

But currently returning 700,000

Current formula is
=VLOOKUP(G2,tblMaxValues,2,TRUE)
Where G2 is 745,000
tblMaxValues is a list of values for comparison
,2, is the column to be returned

## Sum Nth Largest Values

Dec 30, 2006

I need a formula that would return the sum of the largest 3 numerical values out of a range of values, i.e. ignoring the lowest values in the range.

## Sum Of X Largest Values

Jul 11, 2007

I have a row with 30 cells and each cell has a different value. i want to count the highest 15 cells of those 30, so the sum of the total only counts the largest 15 digits.

## Return Value Corresponding To Nth Largest Value

Apr 17, 2008

=LARGEST(overview!\$AB5:\$AL5;11)

I'm using this formula to look up a certain value in "overview" sheet, is there a way to not show the result in this cell but show as result the cell in the same column in row 3?

## Find Largest Value In A Column

Jun 15, 2013

I am trying to write a macro in order to find the largest value in a column in one worksheet, and copy and paste that value into a different workbook. I have found a code similar to what I am looking for and tweaked it, but it needs a few more adjustments. The code below opens the file I want it to, and pastes data into the correct workbook and worksheet, but I would like it to be able to paste in the next empty cell in Row 3, instead of just in the cell "C3". Also i would like for the program to find the largest numeric value in column C, instead of using an if last row statement, as this current program does not always give me the output I am looking for.

VB:

Dim wsMaster As Worksheet, wbDATA As Workbook
Dim NextRow As Long, LastRow As Long

Set wsMaster = ThisWorkbook.Sheets("Contract Metrics")
NextRow = wsMaster.Range("A" & Rows.Count).End(xlUp).Row + 1

[Code] .....

## Largest And Smallest Sequences

Jan 12, 2009

I am using excel 2007 and I need help with the following if anyone would be kind enough. I have a dynamic array that consists of stream of 1's and 0's. I want to be able to find the largest sequence of 1's and the smallest sequence of 1's. So at a point in time the array mite be 111110001101111000 and I want to be able to dertermine the longest contiguous sequence of 1's. But as I say the array is dynamic and so I need to do that after each input.

## Find The Largest Difference

Apr 24, 2009

I have a pivot table that shows values grouped as ranges in the row, Gender as the columns and an average % value in the data.

In a cell outside of the pivot I would like to be able to produce the name of the range that has the largest difference between male and female.

## Select Largest Value For Each Date

May 4, 2009

I have my data arranged in 4 columns as shown below (sample data). I need the Excel to find the largest value for each date and write them somewhere along with those dates. For example, the Excel should write in the 5th column (E) below two dates and values based on the sample data I listed below -

4/1/2007 - 0.044
4/2/2007 - 0.055

I have about 17-18 values for each date between 4/1/2007 and 10/31/2007.

Sample Data
========================================
A B C D
--------- ---------- ---- -----
Date SITE POCConcentration
4/1/2007 11001002510.039
4/1/2007 11001004110.042
4/1/2007 11001004310.039
4/1/2007 24009001110.042
4/1/2007 24017001010.044
4/2/2007 11001002510.051
4/2/2007 11001004110.048
4/2/2007 11001004310.052
4/2/2007 24009001110.053
4/2/2007 24017001010.055
4/2/2007 24021003710.055

## Highlight Largest Value In Column

Jan 6, 2010

I need the largest value in a column to automatically highlight and the old high value to return to normal.

## Largest Group Of Non Zeros

Mar 13, 2006

I have two sets of numbers..... In column B I have measured values. In column
A I have the times for which these valus occur. I need to determine whether
the measured values in B exceeded the max limit for more then a given time
(ie do not exceed a value of five for more then 15mins)

## Find Largest Submatrix

Nov 29, 2008

i have a matrix of 1's and 0's. How can i use excel / which functions can i use to give me the biggest submatrix with just 1's in?