Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
DiscussionsAccessExcelInfoPathOutlookPowerPointPublisherWord
DirectoryUser Groups
Related Topics
Outlook ExpressInternet ExplorerWindowsMS Server ProductsMore Topics ...

MS Office Forum / Excel / Worksheet Functions / November 2006

Tip: Looking for answers? Try searching our database.

Creating a Vendor ID from Vendor Name...

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Donald King - 06 Nov 2006 17:12 GMT
I have a column which contains Vendor names in a spreadsheet with Vendor
data.  I created a formula that takes the first 3 char. of the Vendor Name,
then looks for a space then takes the next 3 char. after the space and
concatenates the 2 together to create a Vendor ID.  Here's the formula:
=LEFT(C2,3)&TRIM(MID(C2,FIND(" ",C2&" "),4)).  So, for a vendor name that
contains ADMIRAL CRAFT EQUIP., my Vendor ID = ADMCRA.  Problem:  A lot of the
Vendor Names contain just one word such as AD-SENSATION or T.W.C., etc.  My
formula for these 2 produces AD- and T.W repectively.

Anyone have an idea how to modify my formula to test if the Vendor Name just
contains one string of char. with no space inbetween and then just take the
first 6 char. or if a space do my concatenation?

Tks,
Don
Dave F - 06 Nov 2006 17:26 GMT
Try something like =IF(ISERROR(FIND(A1,"
"),LEFT(A1,6),LEFT(A1,3)&TRIM(MID(A1,FIND(" ",A1&" "),4)))

Dave

Signature

Brevity is the soul of wit.

> I have a column which contains Vendor names in a spreadsheet with Vendor
> data.  I created a formula that takes the first 3 char. of the Vendor Name,
[quoted text clipped - 11 lines]
> Tks,
> Don
Teethless mama - 06 Nov 2006 18:22 GMT
Try this:
=CONCATENATE(LEFT(A1,3),MID(A1,FIND(" ",A1,1)+1,3))

> I have a column which contains Vendor names in a spreadsheet with Vendor
> data.  I created a formula that takes the first 3 char. of the Vendor Name,
[quoted text clipped - 11 lines]
> Tks,
> Don
Bob Phillips - 06 Nov 2006 18:40 GMT
=LEFT(C2,3)&MID(C2,IF(FIND(" ",C2&" ")>LEN(C2),4,FIND(" ",C2)+1),3)

Signature

HTH

Bob Phillips

(replace somewhere in email address with gmail if mailing direct)

> I have a column which contains Vendor names in a spreadsheet with Vendor
> data.  I created a formula that takes the first 3 char. of the Vendor Name,
[quoted text clipped - 11 lines]
> Tks,
> Don
Donald King - 06 Nov 2006 22:01 GMT
Hi all,
 Thanks for all the help.  I tried the suggestions from Dave and Teethless
but on cells with just one word the fuction returns a #value.  Bob's works
just fine.

Tks,
Don

> I have a column which contains Vendor names in a spreadsheet with Vendor
> data.  I created a formula that takes the first 3 char. of the Vendor Name,
[quoted text clipped - 11 lines]
> Tks,
> Don
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.