Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Extract char from multicells to build new in another

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
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 27,285
Default Extract char from multicells to build new in another

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

"Kat" wrote in message
...
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



  #3   Report Post  
Posted to microsoft.public.excel.programming
No Name
 
Posts: n/a
Default Extract char from multicells to build new in another

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

"Kat" wrote in message
...
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



.

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
FIND 1 char in cell of any 3 char =True Nastech Excel Discussion (Misc queries) 5 April 26th 08 02:17 PM
extract center char oldLearner57 Excel Discussion (Misc queries) 1 November 14th 07 05:02 PM
8500 cells with phone number(7 char.), wishing to add area code (10 char.) [email protected] Excel Discussion (Misc queries) 6 March 10th 06 05:13 PM
Expand curly bracket symbol over multicells Hal Plimpton Excel Discussion (Misc queries) 4 December 20th 05 03:07 AM
How to build build a macro that automatically imports PedroPeso Excel Programming 1 December 26th 03 08:14 PM


All times are GMT +1. The time now is 02:46 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"