Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 6
Default Is there an Excel formula to show the highest letter in a row?

I am trying to create a formula so that i can have one column which displays
the highest number or letter in any given row.
eg
1 - 2 - - 3
- - A B C -
- 1 - - - 2
etc.
Some cells are left blank (marked by dashes above). I would like a column
which displays the highest ranking (so 3 for the first row, C for the second
row and 2 for the third row) and automatically updates when new columns are
added.
Anyone know if this can be done?
  #2   Report Post  
Posted to microsoft.public.excel.misc
Max Max is offline
external usenet poster
 
Posts: 9,221
Default Is there an Excel formula to show the highest letter in a row?

Pl don't multipost.

I've responded to your post in .worksheet.functions :
----------
One play, along these thoughts
-use CODE to base convert source data in each row range to numbers
- use MAX to grab the highest number in the row range (rowR), excluding code
45 (real dashes)
- use MATCH(MAX(rowR),rowR,0) to get the relative position num where the MAX
is
- use INDEX(rowR,MATCH(...)) to return the desired item in rowR

Insert a new col A for the purpose. Data as posted is now assumed in B2:G2
down, where the dashes are assumed to be real dashes (code 45)

Place in A2, array-enter, ie confirm the formula by pressing
CTRL+SHIFT+ENTER (instead of just pressing ENTER):
=INDEX(B2:G2,MATCH(MAX(IF(CODE(B2:G2)<45,CODE(B2: G2))),IF(CODE(B2:G2)<45,CODE(B2:G2)),0))
Copy A2 down to return required results
--
Max
Singapore
http://savefile.com/projects/236895
Downloads:23,000 Files:370 Subscribers:66
xdemechanik
---
"DaniMa" wrote:
I am trying to create a formula so that i can have one column which displays
the highest number or letter in any given row.
eg
1 - 2 - - 3
- - A B C -
- 1 - - - 2
etc.
Some cells are left blank (marked by dashes above). I would like a column
which displays the highest ranking (so 3 for the first row, C for the second
row and 2 for the third row) and automatically updates when new columns are
added.
Anyone know if this can be done?

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
Is there an Excel formula to show the highest letter in a row? DaniMa Excel Discussion (Misc queries) 1 February 9th 09 09:26 AM
How do I get a graph to show the highest value at the bottom Chris Charts and Charting in Excel 1 September 19th 07 06:59 PM
How to show the drive letter in the path on the title bar? Jim Excel Discussion (Misc queries) 6 July 2nd 06 10:19 AM
Excel Formula - to calculate highest number from a set of numbers Emily Excel Worksheet Functions 1 June 27th 06 06:49 AM
Can I show server name instead of drive letter? bfant Excel Discussion (Misc queries) 9 February 17th 05 06:11 AM


All times are GMT +1. The time now is 05:38 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"