Extract char from multicells to build new in another

  • Thread starter Thread starter Kat
  • Start date Start date
K

Kat

In column A, i need to build a new char string where the
first three char come from column B, then a dash is
added, and the first 16 char from column C. I couldn't
get the recorder to do this for me.

Example

Column A | Column B | Column C
App-Mushrooms, Stuffed | Appetizer | Mushrooms, Stuffed
Portabello
 
In A1:
=left(B1,3) & "-" & left(c1,16)

or in VBA

sStr = left(Range("B1"),3) & "-" & left(Range("c1"),16)
Range("A1").Value = sStr
 
Thank you Tom! We used the formula & it worked.
-----Original Message-----
In A1:
=left(B1,3) & "-" & left(c1,16)

or in VBA

sStr = left(Range("B1"),3) & "-" & left(Range("c1"),16)
Range("A1").Value = sStr

--
Regards,
Tom Ogilvy




.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top