Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 3,101
Default find highest number then select next cell

Hi
I want excel to find the highest number in a column, Which i have done, but
i want it to display the name in the column to its left instead of the
highest number
--
thanks
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 30
Default find highest number then select next cell

try this sub assuming your data is in D3 to D13


Public Sub test()
Range("a1").Activate
Dim value As Single
value = WorksheetFunction.Max(Range("d3:d13"))

Cells.Find(what:=value).Activate
ActiveCell.Offset(0, -1) = ActiveCell

End Sub

perhaps better solutions may be forthcoming

Mike wrote in message
...
Hi
I want excel to find the highest number in a column, Which i have done,

but
i want it to display the name in the column to its left instead of the
highest number
--
thanks



  #3   Report Post  
Posted to microsoft.public.excel.programming
Max Max is offline
external usenet poster
 
Posts: 9,221
Default find highest number then select next cell

Assuming the col with the numbers is col B,
with the names in col A, one col to the left

Put in say, C1:
=OFFSET($B$1,MATCH(MAX(B:B),B:B,0)-1,-1)

C1 will return the name with the highest number in col B

(It's also assumed that there won't be duplicate
highest numbers in col B)

Adapt to suit

--
Rgds
Max
xl 97
---
GMT+8, 1° 22' N 103° 45' E
xdemechanik <atyahoo<dotcom
----
Mike wrote in message
...
Hi
I want excel to find the highest number in a column, Which i have done,

but
i want it to display the name in the column to its left instead of the
highest number
--
thanks



  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 634
Default find highest number then select next cell

If if if if if you can be sure there is only ONE value equal to the max,
then with your values in Col B and required data in Col A

=INDEX(A1:A30,MATCH(MAX(B1:B30),B1:B30,0))

If more than one match possible then take a look at Aladin's post he-

http://tinyurl.com/64mz3

--
Regards
Ken....................... Microsoft MVP - Excel
Sys Spec - Win XP Pro / XL 97/00/02/03

----------------------------------------------------------------------------
It's easier to beg forgiveness than ask permission :-)
----------------------------------------------------------------------------

"Mike" wrote in message
...
I want to find the highest number in a column and display the name in the
column to the left of the highest number

--
thanks Mike




--
Regards
Ken....................... Microsoft MVP - Excel
Sys Spec - Win XP Pro / XL 97/00/02/03

----------------------------------------------------------------------------
It's easier to beg forgiveness than ask permission :-)
----------------------------------------------------------------------------

"Mike" wrote in message
...
Hi
I want excel to find the highest number in a column, Which i have done,

but
i want it to display the name in the column to its left instead of the
highest number
--
thanks



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
Find closest match and return next highest number in range x6v87qe Excel Discussion (Misc queries) 4 June 18th 08 01:58 PM
How to find out the 3 highest occurrence of number from a list? Eric Excel Discussion (Misc queries) 5 August 15th 07 04:40 PM
An add-in that allows you to find the highest prime in a number [email protected] Excel Discussion (Misc queries) 1 April 12th 06 01:06 AM
How do I find highest number in a row and change color? pamstolen Excel Worksheet Functions 3 January 18th 05 12:35 AM
find highest number display the complete row Paul Excel Programming 1 October 10th 04 01:21 AM


All times are GMT +1. The time now is 02:12 AM.

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

About Us

"It's about Microsoft Excel"