#1   Report Post  
Tracy A
 
Posts: n/a
Default searching

I have two columns. I want to search the first column for the largest number
and return the value in the next cell.

Then I would like to search the first column for the second largest number
and return the value in the next cell.

I would like to do this without sorting the data!!

Is this possible?

  #2   Report Post  
Tom Ogilvy
 
Posts: n/a
Default

For the cell below
=Offset(A1,Match(Large(A:A,1),A:A,0),0)

=Offset(A1,Match(Large(A:A,2),A:A,0),0)

for the cell to the Right
=Offset(A1,Match(Large(A:A,1),A:A,0)-1,1)

=Offset(A1,Match(Large(A:A,2),A:A,0)-1,1)

If the first and second numbers are equal, then this will give the wrong
answer.

--
Regards,
Tom Ogilvy

"Tracy A" <Tracy wrote in message
...
I have two columns. I want to search the first column for the largest

number
and return the value in the next cell.

Then I would like to search the first column for the second largest number
and return the value in the next cell.

I would like to do this without sorting the data!!

Is this possible?



  #3   Report Post  
Domenic
 
Posts: n/a
Default

To take ties into consideration, assuming that Column A contains your
numbers and you want to return the corresponding value in Column B,
try...

C1, copied down:

=INDEX($B$1:$B$100,MATCH(LARGE($A$1:$A$100-ROW($A$1:$A$100)/10^10,ROWS($C
$1:C1)),$A$1:$A$100-ROW($A$1:$A$100)/10^10,0))

....confirmed with CONTROL+SHIFT+ENTER, not just ENTER.

Hope this helps!

In article ,
"Tracy A" <Tracy wrote:

I have two columns. I want to search the first column for the largest number
and return the value in the next cell.

Then I would like to search the first column for the second largest number
and return the value in the next cell.

I would like to do this without sorting the data!!

Is this possible?

Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
searching for specific criteria and then doing an action based on Bill Excel Discussion (Misc queries) 1 July 20th 05 03:55 AM
Searching and Retrieving data from a Worksheet Larry Snyder Excel Worksheet Functions 1 March 1st 05 09:41 PM
Formula for Searching & matching two values in excel Chris Excel Discussion (Misc queries) 1 January 7th 05 04:34 PM
Column searching problem mikeyts New Users to Excel 2 December 18th 04 09:35 PM
Searching text in a cell range ShareerIslamabadiMunda Excel Worksheet Functions 7 December 16th 04 09:55 PM


All times are GMT +1. The time now is 09:34 AM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"