Technology Get the latest on technology, electronics and software…

Excel Help

Thread Tools
 
Old Dec 29, 2009 | 12:06 PM
  #1  
GIBSON6594's Avatar
Thread Starter
My Garage
 
Joined: Nov 2004
Posts: 13,386
Likes: 11
From: NY
Excel Help

Hey guys,

I have a Column of number ranges that I want to add a prefix to.

Current:
543543-54353543
545435-54354354
213313-32312121
Ect.
Ect.
Ect.


I want it to look like:

ABCDE543543-ABCDE54353543
ABCDE545435-ABCDE54354354
ABCDE213313-ABCDE32312121
Ect.
Ect.
Ect.

The prefix is constant. Any easy way to do this?

Thanks
Reply
Old Dec 29, 2009 | 12:08 PM
  #2  
svtmike's Avatar
Team Owner
20 Year Member
Liked
Loved
Community Favorite
 
Joined: Oct 2003
Posts: 37,701
Likes: 3,897
From: Chicago
I'd make a second column concatenating the prefix and the first column (I think the formula is CONCAT() ), then copy and paste special --> values from the new column on top of the first. Then delete the new column.
Reply
Old Dec 29, 2009 | 12:09 PM
  #3  
stogie1020's Avatar
Needs more Lemon Pledge
 
Joined: Mar 2005
Posts: 52,768
Likes: 2,000
From: Phoenix, AZ
Yeah.
Reply
Old Dec 29, 2009 | 12:59 PM
  #4  
rza49311's Avatar
Drifting
iTrader: (1)
 
Joined: Feb 2006
Posts: 3,072
Likes: 8
From: Southern VA
make a second column with the prefix(ie. abcd) then use this.

Kinda hack job but works. This formula doesn't take column names into account. if you have column names, just change the A1's/B1's to whatever line the data starts on.

=CONCATENATE(B1,(LEFT(A1,FIND("-",A1,1))),B1,MID(A1,FIND("-",A1,1)+1,100))

Last edited by rza49311; Dec 29, 2009 at 01:02 PM.
Reply
Old Dec 29, 2009 | 12:59 PM
  #5  
stogie1020's Avatar
Needs more Lemon Pledge
 
Joined: Mar 2005
Posts: 52,768
Likes: 2,000
From: Phoenix, AZ
That too.
Reply
Old Dec 29, 2009 | 01:01 PM
  #6  
rza49311's Avatar
Drifting
iTrader: (1)
 
Joined: Feb 2006
Posts: 3,072
Likes: 8
From: Southern VA
Originally Posted by stogie1020
That too.
Reply
Old Dec 29, 2009 | 02:03 PM
  #7  
svtmike's Avatar
Team Owner
20 Year Member
Liked
Loved
Community Favorite
 
Joined: Oct 2003
Posts: 37,701
Likes: 3,897
From: Chicago
Originally Posted by rza49311
make a second column with the prefix(ie. abcd) then use this.

Kinda hack job but works. This formula doesn't take column names into account. if you have column names, just change the A1's/B1's to whatever line the data starts on.

=CONCATENATE(B1,(LEFT(A1,FIND("-",A1,1))),B1,MID(A1,FIND("-",A1,1)+1,100))


What's the purpose of the hyphen-finding?
Reply
Old Dec 29, 2009 | 02:08 PM
  #8  
leftride's Avatar
i want to ride my bicycle
iTrader: (1)
 
Joined: Sep 2003
Posts: 3,598
Likes: 21
From: denver, co
Originally Posted by svtmike


What's the purpose of the hyphen-finding?
cause you need to prefix 2 different places, at the beginning and after the hypen
Reply
Old Dec 29, 2009 | 02:09 PM
  #9  
svtmike's Avatar
Team Owner
20 Year Member
Liked
Loved
Community Favorite
 
Joined: Oct 2003
Posts: 37,701
Likes: 3,897
From: Chicago
Originally Posted by leftride
cause you need to prefix 2 different places, at the beginning and after the hypen


I need a bigger monitor.
Reply
Old Dec 29, 2009 | 02:19 PM
  #10  
GIBSON6594's Avatar
Thread Starter
My Garage
 
Joined: Nov 2004
Posts: 13,386
Likes: 11
From: NY
Thank guys
Reply
Old Dec 29, 2009 | 02:38 PM
  #11  
rza49311's Avatar
Drifting
iTrader: (1)
 
Joined: Feb 2006
Posts: 3,072
Likes: 8
From: Southern VA
Originally Posted by svtmike


I need a bigger monitor.


No prob.
Reply
Related Topics
Thread
Thread Starter
Forum
Replies
Last Post
Yumcha
Automotive News
70
Dec 7, 2020 05:39 PM
Yumcha
Automotive News
4
Aug 15, 2019 12:58 PM
08_UA7_Gr33k
Member Cars for Sale
13
Feb 11, 2016 02:17 PM
InFaMouSLink
Car Parts for Sale
6
Oct 27, 2015 06:52 PM
08_UA7_Gr33k
Member Cars for Sale
1
Sep 27, 2015 01:56 PM




All times are GMT -5. The time now is 09:22 AM.