#1   Report Post  
George W. Barrowcliff
 
Posts: n/a
Default First Lower Case

I need to select from a text string starting at the first (if any) lower
case character.

MysteryFunction(ABCDeFgh)=5

Any suggestions?

TIA


  #2   Report Post  
N Harkawat
 
Posts: n/a
Default

Assuming that your text is on cell A1 then this formula will give you the
position of the a lower case alphabet

=MATCH(1,(--(CODE(MID(A1,ROW(INDIRECT("1:"&LEN(A1))),1))96)), 0)

Array entered (ctrl+shift+enter)




"George W. Barrowcliff" wrote in message
...
I need to select from a text string starting at the first (if any) lower
case character.

MysteryFunction(ABCDeFgh)=5

Any suggestions?

TIA




  #3   Report Post  
Harlan Grove
 
Posts: n/a
Default

N Harkawat wrote...
Assuming that your text is on cell A1 then this formula will give you

the
position of the a lower case alphabet

=MATCH(1,(--(CODE(MID(A1,ROW(INDIRECT("1:"&LEN(A1))),1))96)), 0)

Array entered (ctrl+shift+enter)

....

This makes the STRONG assumption that A1 would never include any
characters with decimal ASCII codes 122.

If you define the name LCC referring to "abcdefghijklmnopqrstuvwxyz",
you could use the array formula

=MIN(FIND(MID(LCC,ROW(INDIRECT("1:"&LEN(LCC))),1), A1&LCC))

Or, if you define the name LCA referring to

=MID(LCC,ROW(INDIRECT("1:"&LEN(LCC))),1)

you could use the array formula

=MIN(FIND(LCA,A1&LCA))

This has the flexibility of accomodating other languages with more (or
fewer, e.g., Hawaiian) letters in their alphabets.

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
Conversion SVC Excel Worksheet Functions 9 February 28th 05 02:29 PM
Amount or Numbers in Words ron New Users to Excel 6 December 24th 04 07:32 PM
Is there a formula to spell out a number in excel? Sha-nay-nay Excel Worksheet Functions 2 December 18th 04 09:25 PM
Convert Numeric into Text Monty Excel Worksheet Functions 0 December 18th 04 09:25 PM
Identifying the Active Fill Color Steve Conary Excel Discussion (Misc queries) 3 December 9th 04 04:45 AM


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