Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Mirsten Choiple
 
Posts: n/a
Default Excel to create codes using the 321 system

I want to use Excel to create codes using the 321 system.

B1 contains a book title. (eg French Lieutenant's Woman, The).

A1 to have the first three letters of the first word, the first two letters
of the second word and the first letter of the third word. (eg FreLiW).



If somone could help me find a formula that will do this, I'd be very
grateful indeed.



DL



  #2   Report Post  
JE McGimpsey
 
Posts: n/a
Default

One way:

=LEFT(TRIM(A1),3) & MID(Trim(A1), FIND(" ",TRIM(A1))+1,2) &
MID(TRIM(A1), FIND("^", SUBSTITUTE(TRIM(A1)," ", "^", 2))+1,1)

Note there's no error checking - if the cell contains less than three
words, it will return an error.


In article ,
"Mirsten Choiple" wrote:

I want to use Excel to create codes using the 321 system.

B1 contains a book title. (eg French Lieutenant's Woman, The).

A1 to have the first three letters of the first word, the first two letters
of the second word and the first letter of the third word. (eg FreLiW).



If somone could help me find a formula that will do this, I'd be very
grateful indeed.

  #3   Report Post  
Mirsten Choiple
 
Posts: n/a
Default

Many thanks for your help.

In the case of a title with only two words (eg Madam Bovary).

The desired result would be (eg MadBo).

Is that a possibility?

DL



"JE McGimpsey" wrote in message
...
One way:

=LEFT(TRIM(A1),3) & MID(Trim(A1), FIND(" ",TRIM(A1))+1,2) &
MID(TRIM(A1), FIND("^", SUBSTITUTE(TRIM(A1)," ", "^", 2))+1,1)

Note there's no error checking - if the cell contains less than three
words, it will return an error.


In article ,
"Mirsten Choiple" wrote:

I want to use Excel to create codes using the 321 system.

B1 contains a book title. (eg French Lieutenant's Woman, The).

A1 to have the first three letters of the first word, the first two
letters
of the second word and the first letter of the third word. (eg FreLiW).



If somone could help me find a formula that will do this, I'd be very
grateful indeed.



  #4   Report Post  
JE McGimpsey
 
Posts: n/a
Default

One way:

=LEFT(TRIM(A1),3)&IF(ISERR(FIND(" ",TRIM(A1))), "",
MID(TRIM(A1),FIND(" ", TRIM(A1))+1,2) &
IF((LEN(TRIM(A1))-LEN(SUBSTITUTE(A1," ","")))1, MID(TRIM(A1),
FIND("^",SUBSTITUTE(TRIM(A1)," ","^",2))+1,1),""))



In article ,
"Mirsten Choiple" wrote:

Many thanks for your help.

In the case of a title with only two words (eg Madam Bovary).

The desired result would be (eg MadBo).

Is that a possibility?



"JE McGimpsey" wrote in message
...
One way:

=LEFT(TRIM(A1),3) & MID(Trim(A1), FIND(" ",TRIM(A1))+1,2) &
MID(TRIM(A1), FIND("^", SUBSTITUTE(TRIM(A1)," ", "^", 2))+1,1)

  #5   Report Post  
Mirsten Choiple
 
Posts: n/a
Default

Ten thousand thanks; it works beautifully.

DL



"JE McGimpsey" wrote in message
...
One way:

=LEFT(TRIM(A1),3)&IF(ISERR(FIND(" ",TRIM(A1))), "",
MID(TRIM(A1),FIND(" ", TRIM(A1))+1,2) &
IF((LEN(TRIM(A1))-LEN(SUBSTITUTE(A1," ","")))1, MID(TRIM(A1),
FIND("^",SUBSTITUTE(TRIM(A1)," ","^",2))+1,1),""))



In article ,
"Mirsten Choiple" wrote:

Many thanks for your help.

In the case of a title with only two words (eg Madam Bovary).

The desired result would be (eg MadBo).

Is that a possibility?



"JE McGimpsey" wrote in message
...
One way:

=LEFT(TRIM(A1),3) & MID(Trim(A1), FIND(" ",TRIM(A1))+1,2) &
MID(TRIM(A1), FIND("^", SUBSTITUTE(TRIM(A1)," ", "^", 2))+1,1)





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

JE McGimpsey wrote...
One way:

=LEFT(TRIM(A1),3)&IF(ISERR(FIND(" ",TRIM(A1))), "",
MID(TRIM(A1),FIND(" ", TRIM(A1))+1,2) &
IF((LEN(TRIM(A1))-LEN(SUBSTITUTE(A1," ","")))1, MID(TRIM(A1),
FIND("^",SUBSTITUTE(TRIM(A1)," ","^",2))+1,1),""))

....

And another (a little redundancy goes a long way, or should that be a
short way),

=TRIM(LEFT(TRIM(A1),3)&MID(TRIM(A1),FIND(" ",TRIM(A1)&" ")+1,2)
&MID(TRIM(A1),FIND(" ",SUBSTITUTE(TRIM(A1)," ","",1)&" ")+2,1))

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
How do I create a grading system in Office Excel? Miss Dunkley New Users to Excel 1 January 29th 05 03:28 PM
create a data entry form template in Excel 2003? david.bottomley@haltoncollege Excel Discussion (Misc queries) 0 January 19th 05 10:59 AM
Create invoices from excel workbook KJH Excel Worksheet Functions 5 December 22nd 04 03:21 PM
How do I create a geographic map in Excel 2003? cain Excel Worksheet Functions 1 December 6th 04 11:29 PM
Is there a way to create a standard OHLC bar chart in Excel? [email protected] Charts and Charting in Excel 3 December 2nd 04 10:49 PM


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