Solved

Excel Formula Help

Posted on 2011-09-06
6
247 Views
Last Modified: 2012-05-12
Need some experts to assist.  Not getting this one figured out.  Need an excel formula to capture the Team name.  This first case it is SD, second is Dal.  
Nate Kaeding, SD K
David Buehler, Dal K  P

These are listed in a column A.  I tried a number of different options but getting hungup on some teams have two letters and some have three.

Can someone assist?
Thanks,
Bob
0
Comment
Question by:RobertStamm
  • 3
  • 3
6 Comments
 
LVL 50

Expert Comment

by:Ingeborg Hawighorst
ID: 36492538
Hello,

can you give a bigger data sample? Are the names always only first and last? Could there be more than two elements to a name, like middle initial? Is the Team name always followed by a K?

cheers, teylyn
0
 
LVL 50

Expert Comment

by:Ingeborg Hawighorst
ID: 36492546
Maybe like this:

=TRIM(MID(A1,FIND(",",A1)+2,3))

cheers, teylyn
0
 

Author Comment

by:RobertStamm
ID: 36492586
This was close to what I had written.  My problem is that with two letter team names it is leaving a space after the second letter.  If you copy and paste values of result you get "SD ".  I need this to be "SD".  I have tried Trim, Clean with no luck.  Thoughts?
0
Free Tool: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

 
LVL 50

Accepted Solution

by:
Ingeborg Hawighorst earned 500 total points
ID: 36492679
Maybe the space just looks like a space, but really it is not? It could be the character 160, the non-breaking space. This is often found in text copied or imported from different sources, like databases or the web. To cover all bases, try

=SUBSTITUTE(TRIM(MID(A1,FIND(",",A1)+2,3)),CHAR(160),"")

cheers, teylyn
0
 

Author Comment

by:RobertStamm
ID: 36492753
Great.  Thanks for your help.

Bob
0
 

Author Closing Comment

by:RobertStamm
ID: 36492755
Thanks!
0

Featured Post

Networking for the Cloud Era

Join Microsoft and Riverbed for a discussion and demonstration of enhancements to SteelConnect:
-One-click orchestration and cloud connectivity in Azure environments
-Tight integration of SD-WAN and WAN optimization capabilities
-Scalability and resiliency equal to a data center

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

INDEX and MATCH can be used to great effect to replace HLOOKUP and VLOOKUP as it does not have the limitation of needing the data to be sorted so that the reference value is in the first column or row. It also has the ability to perform a bi-directi…
When you see single cell contains number and text, and you have to get any date out of it seems like cracking our heads.
This Micro Tutorial will demonstrate how to use longer labels with horizontal bar charts instead of the vertical column chart.
Excel styles will make formatting consistent and let you apply and change formatting faster. In this tutorial, you'll learn how to use Excel's built-in styles, how to modify styles, and how to create your own. You'll also learn how to use your custo…

839 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question