#1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 1
Default compare string

Hi,
I want to find the min string within several strings. For example, the
string group include "2008wk32", "2008wk12", "2008wk01". I need find the min
string as "2008wk01".
I tried to use if(ABAC, AB, AC), but I need use this for many time to
compare all strings, is there any simple methods?
Thanks,
D.L
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Max Max is offline
external usenet poster
 
Posts: 9,221
Default compare string

One try ..

Assuming the strings are within B1:E1
In say, A2, array-entered, ie press CTRL+SHIFT+ENTER to confirm:
=INDEX(B1:E1,MATCH(TRUE,(MIN(RIGHT(B1:E1,2)+0)=RIG HT(B1:E1,2)+0),0))

Range B1:E1 is assumed fully populated, with the rightmost 2 char numeric.
Adapt to suit.
--
Max
Singapore
http://savefile.com/projects/236895
Downloads:19,500 Files:362 Subscribers:62
xdemechanik
---
"HugeHard" wrote:
I want to find the min string within several strings. For example, the
string group include "2008wk32", "2008wk12", "2008wk01". I need find the min
string as "2008wk01".
I tried to use if(ABAC, AB, AC), but I need use this for many time to
compare all strings, is there any simple methods?
Thanks,
D.L

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 / SEARCH text compare cell to string in 3rd cell nastech Excel Discussion (Misc queries) 0 October 29th 07 02:51 AM
Compare text string of a cell in Column A VS another cell in Colum Tan New Users to Excel 2 August 1st 07 09:45 AM
Compare text string of a cell in Column A VS another cell in Colum Tan Excel Discussion (Misc queries) 1 August 1st 07 09:03 AM
Compare text string of a cell in Column A VS another cell in Colum Tan Excel Worksheet Functions 1 August 1st 07 09:01 AM
How do I compare string values in one column to another column? Nick N. Excel Worksheet Functions 1 April 29th 06 02:56 AM


All times are GMT +1. The time now is 04:59 PM.

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"