Tracking Forums, Newsgroups, Maling Lists
Home Scripts Tutorials Tracker Forums
  Advanced Search
  HOME    TRACKER    Excel


Vlookup (search All Of Column A For The Highest Number In The Range)

I WANT it to search all of column A for the highest number in the range (which will change daily to a new high number above the highest currently), and return the value in column 4 (column D) that corresponds to that value from column A. This is what I have, but it is not working, it is giving me the number (1) in Cell A800 (which is the lowest valued number in my range. The numbers range in value from 1 to 762 with none repeating (they are sequential). The formula I have is :

View Complete Thread with Replies

Sponsored Links:

Related Forum Messages:
Formula To Count Highest Number Of Continuous Cells With Data In A Range And Their Sum
I have a range of 30 cells in a row. From that row there are groups of cells that have data that might be 1-7 cells populated in a row and in between these groups are blank cells in the row. I need to see what is the highest number of cells in a continuous row that contain data, what the mode is for continuous cell counts, and what is the average value for the data from the continuous cells. The average is a nice to have but not entirely necessary as most cell data will be fairly similar and I can get a close enough average just by knowing the average number of cells that contain data in a row. I have to do this calculation for about 1000 rows of individual data so its important a formula fit in one row.

Almost need a count function to count starting with each cell and then stopping at the first no no value it finds. Then it would show those counts and I could run a formula to pick the highest count and also show the mode of counts.

I will let the experts at it!, my weak mind could not think this one through. I thought something to do with MATCH for a while but no go from what I could do.

View Replies!   View Related
Concatenate In A Vlookup To Search For A Resource Number
what i am trying to do is use concatenate in a vlookup to search for a resource number and date, then return another column in the array.

the formula looks like:
but only results in NA.

if i search for the resource number only, i get the correct result.
also, the res# and date are concatenated in the table array. could this be related to the way excel is storing the dates (40241?) even though both concatenated fields look the same?
i have also tried adding a new coumn which has the res# and dates concatenated as the lookup value but still all NA.

View Replies!   View Related
Formula: Average Value Of Cells Left Of Highest N Values In Above Column Range
I need a cell formula that will (a) identify the highest N values in an above specified column range, (b) color the interior of those N cells (I suspect that this is not possible), and most importantly (c) return the average value of N corresponding cells, where the corresponding cells are located on the same rows as the identified N high value cells but in a specified column to the left (not necessarily adjacent)

Does anybody know what this formula would look like?


...| A | B | C | D | E | F |
1 |....| * |.........| 7 |...
2 |....................| 2 |...
3 |....| * |.........| 6 |...
4 |....................| 1 |...
5 |....| * |.........| 5 |...
6 |....................| ? |...

? = average of B1,B3,B5 where (N = 3) and (specified column to the left = B)

View Replies!   View Related
Vlookup: Search A Certain Range Of Cells
1. can i limit vlookup on sheet2 to search only a certain range of cells on a sheet1.

example, I want vlookup to look in sheet1, colum A - Y but only look between rows 1 and 100

2. If 1 can be done, and i happen to add a row in worksheet1 (making it 101 rows vice 100) will the vlookup code on sheet2 include that 101st row or do i have to redo the range manualy.

View Replies!   View Related
Vlookup: Search For Value In SECOND Column Of Table Array And Return Value From FIRST
I'm looking for a formula to search for a value in the SECOND (instead of first) column of a table array and return a value in the same row from FIRST (instead of the same or another) column in the table array. Formula would be searching for the unique production order number in the column B and return production line id from the column A.

A1 production line_id
B1 poduction_order_number

A2 L1
A3 L2
A4 L1

B2 505212
B3 504234
B4 505663

I was trying vlookup(504234;B2:A4;2;0) to make formula go search from right columns to the left but then excel is switching the search table to A2:B4 and gives #N/D!
One remark-there is no possibility to switch these 2 columns to simplify. I have to leave them as they are.

View Replies!   View Related
Search From Every Row Of Column In A Column And Return Row Number
how to find text from a row in column, where is a lot of text and return row number, of located text?

View Replies!   View Related
Column Range Search
If a column contains it contains apple and ipod then display manufacturer as Apple Corp in c2. How can i do this?

View Replies!   View Related
Find Column Number From Search Pass To Integer Cell Reference
I am building a Workbook which takes data from SheetA and inserts it into SheetB.
Part of the data is only entered when a positive value exists.

I then do an export from SheetB.

The problem is that I need to get the column number and pass it to the cell reference based on the field name in row 1.

Dim sFindstring As String
Dim rFindcell As range
Dim iR As Integer
Dim iC As Integer

sFindString = " Find this string in the cell"
'Using cells find the findstring
Set rFindCell = Cells.Find(What:=sFindString, After:=[A1], LookIn:=xlValues, LookAt:=xlPart, SearchOrder:=xlByRows, SearchDirection:=xlPrevious)

'OK so look here
iR = 3
'I am trying to pick up the column number
iC = rFindCell.Column

rFindCell throws an object or with block variable not set error. Is there some property that I need to set.

View Replies!   View Related
Find Highest Value With VLOOKUP
using vlookup I am trying o find the highest value>>>>


Column A Column B

111036 01/05/09
111036 08/08/09
111036 09/10/09 <<<<

Is vlookup the correct way to go,,, if not could someone point me in the correct direction

View Replies!   View Related
Create A User Defined Function To Search A Column Of Data For A Part Number
I want to create a user defined function to search a column of data for a part number.

If it exists I want to have a the UDf returna "fail" otherwise "pass"

Here is the code I was trying to use

Function firstpass(SN As String) As String
ws = Worksheets("Defects")
c = ""
With ws.Range("a1:a9999")
Set c = .Find(SN, LookIn:=xlValues, lookat:=xlWhole)
End With
If Not c Is Nothing Then
firstpass = "Pass"
firstpass = "Fail"
End If

End Function

This function only returns a "#value" and I don't quite know how to troubleshoot it.

View Replies!   View Related
Automatically Increment Column Number In Vlookup
I have the following formula. How can I change it so thst when copy/drag the column number automatically increments by 1

IF(ISNA(VLOOKUP($A2,'Purchase Order Pivot Table'!$5:$500,67,FALSE)),0,VLOOKUP($A2,'Purchase Order Pivot Table'!$5:$500,67,FALSE))

View Replies!   View Related
Search Column, Match And Insert Copied Range
I'm currently trying to insert the copy range of one worksheet to another. Let's say I have 3 worksheets, one main and two additional info sheet. I want to search column C in main worksheet for blank cell and use column F in the same row as the worksheet name which I want to copy from, then use column E from main worksheet as the keyword for the range I want to copy(range from column E to column Z). But when inserting, I want the keyword in main worksheet such as 'G' in the same row as blank cell to match the 'G' in copied worksheet. Because the 'G' in main worksheet is not in the same column for each row, I try to search the forum but can't find the inserting part. I also attach the example workbook.

View Replies!   View Related
ColumnA Column B ColumnC (Yes/No)
2121 345766
23423 6456546
4234 6456456
7567 64566456
76756 654645
67567 3344534
76575 34534534
756756 45345
7657 534545
756767 4534534
756756 435345

What I am trying to do is

Search the number written at ColumnB in ColumnA and if found write YES to column C

if not write No

View Replies!   View Related
Range Object/property: Calculates 2nd Column Based On 3rd Column's Number
I'm trying to write a code that calculates 2nd column based on 3rd column's number or vice versa based on the condition set on the 1st column. Below, there are two procedures. "SimpleCalc" and "SimpleCalc2". I first wrote SimpleCalc2, but it isn't working, so I worked around the error by writing SimpleCalc, which selects a cell and moves around by offset. I personally find it hard to read and error prone as I develop more logic around it.

I'm trying to develop more function based on this code, so I need to make it neat and flexible. what I'm doing wrong in SimpleCalc2? Or do you have any suggestion to improve the code "SimpleCalc"? I'm using Excel 2003.

Sub SimpleCalc()

Dim SimpleMethodRng, SimpleMethod As String, i As Integer


SimpleMethodRng = ActiveWorkbook.Worksheets("Dashboard").Range("N5:P12")

For i = 1 To 8

SimpleMethod = SimpleMethodRng(i, 1).........

View Replies!   View Related
Return The Column Number Of First Column In A User Inputted Range?
I'm creating a macro that creates a co-ocurrence matrix from variables that are adjacent to each other.

In order to proceed, I need to know how to return the column number of the first (leftmost) column in a range that the user selects.

View Replies!   View Related
Vlookup Where The Lookup Value Isn't In The First Column Of A Range/table
I would like to do a vlookup where the lookup value isn't in the first column of a range/table. Would I use index/match? For example, I have fields for vendor, part # and location in that order. I'd like to pull up location with a formula based on part #.

View Replies!   View Related
Formatting The Highest Number In A Row
I have a few rows in an excel sheet and I want to highlight the highest number(s) in each row.

I've been playing around with conditional formatting, and using the formula:
in the conditional formatting box and selecting a formatting type, I can automatically highlight the highest number in column C (row 23 to 55). However, this formula only seems to work when I'm selecting columns of data rather than rows. If I want to highlight the highest number in row 23, the formula I'm using is:
Which I think should highlight the highest number From C23 to M23, but it doesn't - nothing happens.

What am I doing wrong?

View Replies!   View Related
Highlight 2nd Highest Number
I'm using this CF to show me the largest number in a range;


I now want to also show the second largest number in the same range.

View Replies!   View Related
Lookup Second Highest Number
I have a table of information which is sorted in ascending order. I have created a vlookup to find the highest value as close to 1 as possible.

Say it returns the value 0.95.

i now have another cell which i need to find the second highest value from the column of data.

however i dont know how to do it. because the second vlookup function just returns the 0.95 all the time and not the second highest value..


Column A

So in the cell with the first Vlookup i get the value 0.95 returned.

I need then for the second cell to return the next highest value in this case 0.90.

Then third cell third highest

fourth cell fourth highest value etc.

View Replies!   View Related
Overwrite Highest Number
in cell A1 i have the balance. i would like to record the balance every time it reaches a new high in cell B1. how would this be possible please using excel 2007

View Replies!   View Related
Round Up To The Highest Number
this is a formular that i used to divide

=IF(Z6=TRUE,K6/MID(D6, FIND("1=",D6)+2,LEN(D6)-FIND("1=",D6)-1),K6)

the problem i have is that if i have 14 in cell k6 and 1=10 in d6 the answer i get is 1.40 what i need the formular to do is always round it up to the highest number
ie 2 not 1.4

example 1=10 20 answer 2
1=10 25 answer 3
1=4 11 answer 3
1=4 20 answer 5

View Replies!   View Related
Taking Next Highest Number
I have a dilemma. What I want to do is: If I input a date in a cell I want the adjacent cell to take the next highest number from a list on another worksheet. My example attached

View Replies!   View Related
If (Column A) Within Date Range Then Add Number In Column C
I'm still confused regarding a complex formula - rather n00b. Using Office 2007 with XP. Can't figure out with help or previous questions.

The following is what I would like this formula to accomplish. Picture included below.

Take all the values of column of C and add them together if and only if the corresponding date value in column A is during the month of January (and February, March, and so forth).

Event DateNameTotal Amount2/21/2009$4,5002/22/2009$04/3/2009$04/25/2009$9,0004/30/2009$8,3005/2/2009$9,0005/7/2009$5,5005/9/2009$9,0005/12/2009$3,000

View Replies!   View Related
Lowest/Highest Number Cells
I have a data listed from A1 to G1. What I want to do is

Check out all the numbers written in those cells, take the highest number among and write to the following cell (lets say A3)
Check out all the numbers written in those cells, take the lowest number among and write to the following cell (lets say A4)

View Replies!   View Related
Find Highest Number Based On Name
In sheet 1:
I have a list of customers and their current credit limit

In sheet 2:
i have a list of all payments received in the last 12 months.

my customers credit limits are set by multiplying their highest payment in the last 12 months x 1.25
(e.g. payment of $1000 x 1.25= limit of $1250)

what i want to do is:
1) look at the customers in sheet 1

2) check sheet 2 to see if they have made a payment

3) return their highest payment (if any) in sheet 1 Col. C

4) i can work out the rest

View Replies!   View Related
Extract The Highest Number In A Row To Another Cell
I have a list of names in one column and in the next column I have a list of numbers. The names and numbers go together. In anohter cell I would like to extract the highest number and the name related to it. The list changes often.

I would like to be able to put a heading saying that "name" (in anohter cell) made the highest score and the name is entered into a cell automatically.

View Replies!   View Related
Subtract The Lower Number From The Highest
I have name and a number in this

format: cell a1 Jones---56. In cell b1 I have another name i.e.,
Johnson---45. How can I subtract 45 from 56, take 60% of the difference
and in cell c3 show the following; Johnson---6. All numbers are to
rounded down to 0. The final result would look like this;
a1 Jones----56, b1 Johnson----45, c1 Johnson----6. I have other cells
with the same type of info in them. Example; a2 Smith----34, b2
Jones----78, c3 would show Smith----26.(rounded down) I always want to
subtract the lower number from the highest and take 60% of the

View Replies!   View Related
Highest Number In Row Then Info 23 Lines Down
I am attempting to pull the Highest number out of a row of cells. Then grab the info 23 lines below. What I have is a spreadsheet that pulls from other spreadsheets and tracks all of my sales for the year. This is divided up into tabs for each day of the week. I am a formula to find the highest sales for Tuesdays {LARGE(Tuesday!B8:BB8,1)} then in the cell below it I need it to show the date that days sales happened on. That date is listed 23 lines lower. I have tried using {HLOOKUP((MAX(Tuesday!B8:B88)),Tuesday!B8:B88,23)}. This kinda works. It pulls from the 23rd line but only from the first column. Not the column that has the highest sales. I have searched for a solution but I must not be typing in my question correctly.

View Replies!   View Related
Return Highest Number With Date
column a has dates & column d has values - what is formula to find highest number in values and return it's date (using =large(Dxx:Dxxx, 1) to find highest number

View Replies!   View Related
Return Based On Highest Number In Row
Formula: ......

I am looking for the value in column G, a formula that will search B-F and return the Group with the highest percentage for each zip.

View Replies!   View Related
Rounding Up A Cell Value To Next Highest Whole Number
I have a whole number value in cell F18. In cell F24 I want to enter a formula that allows me to divide the value in cell F18 by 4 and if the result is not a whole number, round it up to the next whole number.

View Replies!   View Related
LIST Funtion: Find The Highest Number ?
I have several worksheets where I input data, and I would like a 'stats' page as worksheet 1. Work sheet one is a list of names in cells A4:A28. column B,C,D,E,F, and G contain the results using Countif. How would I now get excel to look down a column, for example B, to find the highest number in that column and then use the name from that line but in column A.

View Replies!   View Related
Highest Number From File Names In Folder
I need a macro which checks for next available number from list of filenames in a folder. Then it returns that value to one predefined cell in a new document (here Untitled.xls). For example:

c: est

has the following files:
Untitled.xls - read only

Next available filename should be "abc-09-005" and macro returns that value to predefined cell in a new document (Untitled.xls). There should be NO saving at this point whatsoever. Macro simply picks the next value from a filelist. As you've noticed the value has some constants too. New document doesn't know the last picked value before macro is active (predefined cell should be empty at startup).

View Replies!   View Related
Finding Highest Number And Printing Anothers Cell Value
Cells L5 - L65 have percentages. B5 - B65 Have the associates names. I want to write something in another cell that looks for the highest percentage and then prints the name as the highest.

View Replies!   View Related
Indirect Address/match: Pull The Highest Number
I am trying to do season stats for my roller derby league. I have a great spreadsheet going but the one thing I want to do, I can't seem to do. I am attaching a "test" file. very simple and small but shows what I need to do.

I have different sections and I am trying to pull the highest number out of that section. For this example, it is under the green Jams Skated: Jams at Jammer. The number on the right is the highest number of jams skated while the number on the left should be the name of the skater who has this number. Okay, no problems there. My problem occurs when I try to move these same formulas to another sheet. in this case, sheet 2. It pulls all kinds of strange things.

View Replies!   View Related
Column Number From Range Name
I have named ranges in my excel sheet.I wish to however find out the column number from each of the names and use it as a variable for later calculations.How do I do this?

View Replies!   View Related
Highest Value In A Column Using Set Criteria
I am tying to find a way that I can get the highest value in a column of data depending on a set criteria, I have used the following =MAX(IF($C2:$C$109=$C2,IF(CJ$1=K$1,IF($D2:$D$109=$D2,K$2:K$109,0)))) and it works for the first row, I can drag it across ok, but if I drag it down it just populates the same value as the cell the formula started in even though the IF logical test has changed??

Can you please Help fix or offer alternative.

Also is it possible (say the above worked) to add to the formula so that it returns a value from another cell in the same row that it found the highest value? e.g. =MAX(IF($C2:$C$109=$C2,IF(CJ$1=K$1,IF($D2:$D$109=$D2,K$2:K$109,0)))) say this returned the value and it was found in K52 it would return me the value in B52

View Replies!   View Related
Identify Highest Value In A Column
is there a way to highlight the highest value in a column.

=MAX(A1:A50) will write the highest value in whatever field the formula is written in, but is there a way for the number itself to be highlighted in its given location within the colum.For example, if A 21 contains the highest value in column A, can that cell be highlighted?

View Replies!   View Related
How Can I Check A 4 Column Range For A Particular Number
I would like to check a 4 column range to see if a particular number has been added to a range of number.

this is the formula that I wrote but it does not test beyond the 2nd column.


Does anyone have an different way of check for this?

View Replies!   View Related
Sum Highest Numbers In A Range ...
I am looking for a formula that will add the 8 highest values in a range of up to 20 cells. The range may have fewer than 8 values in some cases in which case the sum of all those values will be returned.

Thus a row with these values will yield the following output (bold denotes highest 8 values):

8, 28, 45, 13, 17, 19, 21, 30, 47, 8, 15

47+45+30+28+21+19+17+15= 222

View Replies!   View Related
Formula To Look Up The Highest Value From A Range
i want my formula to look up the highest value from a range (the =max column), then return a name in the leftmost column. What it actually is, is a player of the month for fantasy football. Each week the player gets a score, then each month, a total of four weekly scores. i want to look up who scored the most and return the player name to me. see the attachment.

View Replies!   View Related
Find Highest Value From Range
I have a large spreadsheet of data that contains 3 columns: Columns are Name, Revision, # of items. I want to find the # of items for the highest revision for each name. List looks like this:

Smith, 1, 30
Smith, 2, 36
Smith, 3, 18
Johnson, 1, 125
Johnson, 2, 130
Lopez, 1, 8
Lopez, 2, 12
Lopez, 3, 15

I'm only interested in the data for the latest Revision. There's over 500 names. A lookup or pivot could be possible?

View Replies!   View Related
Indexing Top X Highest Of A Range
In the attached sheet, I'm trying to get excel to return the top 5 values in an array, based on the preceding cell. This example is for a Football League, in which the QBs, RBs and WRs all have different salaries. The objective is to return the salaries of the top 5 paid people in each. Don't need to return the name, just the salary amount, so that an average can then be taken to figure future salaries.

View Replies!   View Related
Highlight Highest Value In Range
Is it possible to highlight the highest value within a given range in that particular cell ? Example: I have a range of value from cells A1 to A10. The highest value is in cell A3. Can I make cell A3 highlighted in colour red?

View Replies!   View Related
Vba Copy 10 Highest Values In A Column
Starting at C6 and running down the C column there is a numerical list of values which have been generated from a PivotTable. I'd like some code that will scan down the C column and copy the highest 10 values in that column and the contents of the cell in the corresponding A column starting at F5 and finishing at F15 (a top ten list).

A sample workbook with desired output is included.

View Replies!   View Related
Use "live Search" In Column Range Any Control Toolbox Or Form
Can i use for this "live search" in column range any control toolbox or form?
only what i want is during writting name it will be shows the results in any textbox or so.

Control box or form can not be programmed so, that after each character check the range and return the results.

View Replies!   View Related
Adding The Highest 4 Numbers In A Range
I am trying to add the highest 4 or

View Replies!   View Related
Convert Column Number To Letter From A Range Objec
Is there an easy way (without writing my own conversion function) to get the column letter from a range object, as opposed to the column number?

View Replies!   View Related
From A Value Select A Range Then Find The Specify The Highest Figure
I am trying to work out how to select a range from a formula.

One formula works out when a specific number in a list of rows is reached, and returns the number of values it counted before it reached the number.


With the figure returned from that can I then select the range from the first row, to the number of rows counted. And with that selection find the highest number within that range, specifying the highest number as the result?

View Replies!   View Related
Sum A Selection Of The Highest Numbers In A Range Of Data
I need to know how I can create a formula which will sum a selection of the highest numbers in a range of data. So for example, if I have a row of 10 cells each containing dfferent numbers, and I want to take the 7 highest values from there and get the sum of these values, how do I go about this?

I've tried using the LARGE command but can only get an individual figure.

View Replies!   View Related
Copyright © 2005-08, All rights reserved