Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.newusers
external usenet poster
 
Posts: 8
Default highest value between rows

hi..

Datas a

A B C D E
1 AA08 AA07 AA09 AA30
2

I want to display the highest value(AA30) in E1. Any formula for this?
Thanks.


  #2   Report Post  
Posted to microsoft.public.excel.newusers
external usenet poster
 
Posts: 19
Default highest value between rows

Hi there,

You might want to concider using the vlookup formula combined with the max
in this one.

=VLOOKUP(MAX(range, range_including_answer_col, col_ref,0))

Put this formula in cell AA30

Hope it helps you
--

Thank you and Regards

Garreth Lombard


"formula" wrote:

hi..

Datas a

A B C D E
1 AA08 AA07 AA09 AA30
2

I want to display the highest value(AA30) in E1. Any formula for this?
Thanks.


  #3   Report Post  
Posted to microsoft.public.excel.newusers
external usenet poster
 
Posts: 2,203
Default highest value between rows

??? Garreth, you lost me. Maybe I'm missing something and you could explain
with sample entries in the VLOOKUP()?

"Garreth Lombard" wrote:

Hi there,

You might want to concider using the vlookup formula combined with the max
in this one.

=VLOOKUP(MAX(range, range_including_answer_col, col_ref,0))

Put this formula in cell AA30

Hope it helps you
--

Thank you and Regards

Garreth Lombard


"formula" wrote:

hi..

Datas a

A B C D E
1 AA08 AA07 AA09 AA30
2

I want to display the highest value(AA30) in E1. Any formula for this?
Thanks.


  #4   Report Post  
Posted to microsoft.public.excel.newusers
external usenet poster
 
Posts: 15,768
Default highest value between rows

It depends on what the numeric portion of the string is.

This array formula** will work on your posted sample data.

=INDEX(A1:D1,MATCH(TRUE,COUNTIF(A1:D1,""&A1:D1)=0 ,0))

** array formulas need to be entered using the key combination of
CTRL,SHIFT,ENTER (not just ENTER). Hold down both the CTRL key and the SHIFT
key then hit ENTER.

However, if this was your data:

AA100
AA08
AA07
AA30

The formula would still evaluate AA30 as being the "max" value in the range.
If you want to see how Excel evaluates this just sort the data in ascending
order and you'll get:

AA07
AA08
AA100
AA30

If you only want to evaluate the numeric portion of the string like this:

7
8
30
100

Then it get's kind of complicated!

--
Biff
Microsoft Excel MVP


"formula" wrote in message
...
hi..

Datas a

A B C D E
1 AA08 AA07 AA09 AA30
2

I want to display the highest value(AA30) in E1. Any formula for this?
Thanks.




  #5   Report Post  
Posted to microsoft.public.excel.newusers
external usenet poster
 
Posts: 1,522
Default highest value between rows

One macro solution

Sub maxnumberintextcells()
myrow = 11 ' change to your row
fc = 1 'column A
lc = Cells(myrow, Columns.Count).End(xlToLeft).Column

MMax = 0
For i = fc To lc
For j = 1 To Len(Cells(myrow, i))
If IsNumeric(Mid(Cells(myrow, i), j)) Then
x = Mid(Cells(myrow, i), j, 9999)
Exit For
End If
Next j
If x MMax Then MMax = x
Next i
MsgBox MMax
End Sub

--
Don Guillett
Microsoft MVP Excel
SalesAid Software

"formula" wrote in message
...
hi..

Datas a

A B C D E
1 AA08 AA07 AA09 AA30
2

I want to display the highest value(AA30) in E1. Any formula for this?
Thanks.





  #6   Report Post  
Posted to microsoft.public.excel.newusers
external usenet poster
 
Posts: 8
Default highest value between rows


i forgot something.. let's say datas a

A B C D E F G
1 AA08 AA18 AB03 AA30 AB15 AC01
2



It's determining highest alpha numeric values.

Value to be displayed in G1 must be the highest alpha numeric which is AC01.

Pls advise.

Thanks.



  #7   Report Post  
Posted to microsoft.public.excel.newusers
external usenet poster
 
Posts: 8
Default highest value between rows

i forgot something.. let's say datas a

A B C D E F G
1 AA08 AA18 AB03 AA30 AB15 AC01
2



It's determining highest alpha numeric values. there are only four
characters per value as "AA01".


Value to be displayed in G1 must be the highest alpha numeric which is AC01.
Pls advise.

Thanks.


"T. Valko" wrote:

It depends on what the numeric portion of the string is.

This array formula** will work on your posted sample data.

=INDEX(A1:D1,MATCH(TRUE,COUNTIF(A1:D1,""&A1:D1)=0 ,0))

** array formulas need to be entered using the key combination of
CTRL,SHIFT,ENTER (not just ENTER). Hold down both the CTRL key and the SHIFT
key then hit ENTER.

However, if this was your data:

AA100
AA08
AA07
AA30

The formula would still evaluate AA30 as being the "max" value in the range.
If you want to see how Excel evaluates this just sort the data in ascending
order and you'll get:

AA07
AA08
AA100
AA30

If you only want to evaluate the numeric portion of the string like this:

7
8
30
100

Then it get's kind of complicated!

--
Biff
Microsoft Excel MVP


"formula" wrote in message
...
hi..

Datas a

A B C D E
1 AA08 AA07 AA09 AA30
2

I want to display the highest value(AA30) in E1. Any formula for this?
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
Sorting 4 rows of data and changing the text of the highest value. AbeAbeAbe Excel Discussion (Misc queries) 2 February 17th 07 05:54 PM
COUNT how many ROWS ago out of 10 days that the highest high in 10 days was made rhhince Excel Worksheet Functions 1 January 14th 07 09:56 PM
Display the Highest, Second Highest, Third Highest and so on... gkb Excel Discussion (Misc queries) 7 December 1st 06 10:45 PM
2 rows, highest No in row 1, then highest number in row 2 relating to that column, possible duplicates John Excel Worksheet Functions 3 August 11th 06 04:34 AM
Find lowest and highest value from a set of rows Paul A via OfficeKB.com Excel Discussion (Misc queries) 5 July 16th 05 03:54 PM


All times are GMT +1. The time now is 05:23 PM.

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"