Ashish
This works great, thanks for your support and insight. This is just what I was looking for. Regards Dave From: excel-macros@googlegroups.com [mailto:excel-macros@googlegroups.com] On Behalf Of ashish koul Sent: Friday, February 18, 2011 9:43 PM To: excel-macros@googlegroups.com Subject: Re: $$Excel-Macros$$ Special Suffix Identification try this On Sat, Feb 19, 2011 at 12:42 AM, Pehrson, Dave <dpehr...@walbro.com> wrote: Thanks for your quick response, you're getting close, the following is an example of what I'm trying to achieve. Column A is the original data, and Column A together with Column B is the desired result. 188-512 76-544 84-737-JP JP AT-2-CH CH CAA-166 FPC-7 FW-34-CH CH HD-12B-TH TH LMT-495781 MA-101 MAU/EX-3173 MB-16B MBU-10A STB-2-CH CH WG-9A-JP JP WHG-104 WHG-57 WJ-115-TH TH WT-458 WTE-12-CH CH WYL-240B-TH TH WYLA-1-TH TH Thanks for your support From: excel-macros@googlegroups.com [mailto:excel-macros@googlegroups.com] On Behalf Of ashish koul Sent: Friday, February 18, 2011 11:46 AM To: excel-macros@googlegroups.com Subject: Re: $$Excel-Macros$$ Special Suffix Identification See if it helps On Fri, Feb 18, 2011 at 11:14 PM, Diamond Dave <dpehr...@walbro.com> wrote: I have a series of numbers with the number of characters being variable and either Alfa or numeric, and sometimes characters are separated with a "-", and some ending with -CH, -JP, -MX, -TH, -CC, - AF. What I want to do is in the next column, enter a suffix matching the list from above. Example: original number: wyl-927-TH would read TH, wyl-987 would be blank, WMF-123-MX would show MX Any help in sorting out this problem would be appreciated. if there is a formual that could be incorporated into a macro or just a stand alone macro either will work for me. Thanks Diamond Dave -- ------------------------------------------------------------------------ ---------- Some important links for excel users: 1. Follow us on TWITTER for tips tricks and links : http://twitter.com/exceldailytip 2. Join our LinkedIN group @ http://www.linkedin.com/groups?gid=1871310 3. Excel tutorials at http://www.excel-macros.blogspot.com <http://www.excel-macros.blogspot.com/> 4. Learn VBA Macros at http://www.quickvba.blogspot.com <http://www.quickvba.blogspot.com/> 5. Excel Tips and Tricks at http://exceldailytip.blogspot.com <http://exceldailytip.blogspot.com/> To post to this group, send email to excel-macros@googlegroups.com <><><><><><><><><><><><><><><><><><><><><><> Like our page on facebook , Just follow below link http://www.facebook.com/discussexcel -- Regards Ashish Koul akoul.blogspot.com <http://akoul.blogspot.com/> akoul.wordpress.com <http://akoul.wordpress.com/> My Linkedin Profile <http://in.linkedin.com/pub/ashish-koul/10/400/830> P Before printing, think about the environment. -- ------------------------------------------------------------------------ ---------- Some important links for excel users: 1. Follow us on TWITTER for tips tricks and links : http://twitter.com/exceldailytip 2. Join our LinkedIN group @ http://www.linkedin.com/groups?gid=1871310 3. Excel tutorials at http://www.excel-macros.blogspot.com 4. Learn VBA Macros at http://www.quickvba.blogspot.com 5. Excel Tips and Tricks at http://exceldailytip.blogspot.com To post to this group, send email to excel-macros@googlegroups.com <><><><><><><><><><><><><><><><><><><><><><> Like our page on facebook , Just follow below link http://www.facebook.com/discussexcel -- ------------------------------------------------------------------------ ---------- Some important links for excel users: 1. Follow us on TWITTER for tips tricks and links : http://twitter.com/exceldailytip 2. Join our LinkedIN group @ http://www.linkedin.com/groups?gid=1871310 3. Excel tutorials at http://www.excel-macros.blogspot.com 4. Learn VBA Macros at http://www.quickvba.blogspot.com 5. Excel Tips and Tricks at http://exceldailytip.blogspot.com To post to this group, send email to excel-macros@googlegroups.com <><><><><><><><><><><><><><><><><><><><><><> Like our page on facebook , Just follow below link http://www.facebook.com/discussexcel -- Regards Ashish Koul akoul.blogspot.com <http://akoul.blogspot.com/> akoul.wordpress.com <http://akoul.wordpress.com/> My Linkedin Profile <http://in.linkedin.com/pub/ashish-koul/10/400/830> P Before printing, think about the environment. -- ------------------------------------------------------------------------ ---------- Some important links for excel users: 1. Follow us on TWITTER for tips tricks and links : http://twitter.com/exceldailytip 2. Join our LinkedIN group @ http://www.linkedin.com/groups?gid=1871310 3. Excel tutorials at http://www.excel-macros.blogspot.com 4. Learn VBA Macros at http://www.quickvba.blogspot.com 5. Excel Tips and Tricks at http://exceldailytip.blogspot.com To post to this group, send email to excel-macros@googlegroups.com <><><><><><><><><><><><><><><><><><><><><><> Like our page on facebook , Just follow below link http://www.facebook.com/discussexcel -- ---------------------------------------------------------------------------------- Some important links for excel users: 1. Follow us on TWITTER for tips tricks and links : http://twitter.com/exceldailytip 2. Join our LinkedIN group @ http://www.linkedin.com/groups?gid=1871310 3. Excel tutorials at http://www.excel-macros.blogspot.com 4. Learn VBA Macros at http://www.quickvba.blogspot.com 5. Excel Tips and Tricks at http://exceldailytip.blogspot.com To post to this group, send email to excel-macros@googlegroups.com <><><><><><><><><><><><><><><><><><><><><><> Like our page on facebook , Just follow below link http://www.facebook.com/discussexcel