#1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
weller
 
Posts: n/a
Default Excel Function


I want to create a function that will have a letter out of a word in one
cell or a letter out of anouther word in a different cell.

Example:
Cell 1 Dallas D
Cell 2 Austin A

How do I do this?


--
weller
------------------------------------------------------------------------
weller's Profile: http://www.hightechtalks.com/m373
View this thread: http://www.hightechtalks.com/t2295787

  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
SteveG
 
Posts: n/a
Default Excel Function


Not 100% sure this is what you need from your explanation but

Say in cell C6 is the word Dallas and in C7 is Austin. In cell D6
type:

=C6&" "&LEFT(C6,1)

This will result in D6 reading Dallas D. You can then copy and paste
to cell D7 which will result in D7 reading Austin A. If all you want
is the cell to look for and return the first character in the word in
C6 or C7 then in D6 or D7

=LEFT(C6,1) - or - =LEFT(C7,1)

Cheers,

Steve


--
SteveG
------------------------------------------------------------------------
SteveG's Profile: http://www.excelforum.com/member.php...fo&userid=7571
View this thread: http://www.excelforum.com/showthread...hreadid=488720

  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
weller
 
Posts: n/a
Default Excel Function


How can I get it to read either the D or the A and not both.


--
weller
------------------------------------------------------------------------
weller's Profile: http://www.hightechtalks.com/m373
View this thread: http://www.hightechtalks.com/t2295787

  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
SteveG
 
Posts: n/a
Default Excel Function


=IF(LEFT(C6,1)="D",C6&" "&LEFT(C6,1),"")

This would return the text in column C6 followed by it's first letter
only if the first letter is D. So if C6 was Dallas then it would
read:

Dallas D

Otherwise it would keep the cell blank.

If all you want is the D then:

=IF(LEFT(C6,1)="D","D","")

Change the D in parenthesis to whatever letter you want the formula to
look for.



Cheers,

Steve


--
SteveG
------------------------------------------------------------------------
SteveG's Profile: http://www.excelforum.com/member.php...fo&userid=7571
View this thread: http://www.excelforum.com/showthread...hreadid=488720

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
calling a new function Excel gives me #NAME? Mark Dvorkin Excel Worksheet Functions 4 July 10th 05 01:29 AM
Excel 2003 Slow Function Argument Window [email protected] Excel Discussion (Misc queries) 2 June 28th 05 06:53 PM
Excel option to store trendline's coefficients in cells for use Miguel Saldana Charts and Charting in Excel 9 June 20th 05 08:45 PM
Simplify Vlookup function in Excel Budman Excel Worksheet Functions 7 March 27th 05 04:17 PM
I cant use englisch function names in a swedich version of excel PE Excel Discussion (Misc queries) 2 December 7th 04 01:00 AM


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