Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people, just like you, are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
Solved

Add the same characters to 4000  strings in Excel

Posted on 2011-02-23
8
298 Views
Last Modified: 2012-06-27
Hi -
This is probably a simple question to someone who uses Excel a lot.

Here's the situation...
I'm using Excel2010.  I have a spreadsheet with about 4000 rows of serial numbers, short descriptions, etc.   One of the columns is image names but without the ".jpg" file extension.  I need to add ".jpg" to all 4000 image names in that column.  How is this done besides typing it in one image at a time?

If I use Find and Replace then I'll have to do it 36 times to match up with the image names that end in all the different alpha numeric characters. Isn't there a way to add the file extension (or any set of characters) to every string in a column?

TIA your Excel expertise
d2
0
Comment
Question by:dzash2000
  • 3
  • 2
  • 2
  • +1
8 Comments
 
LVL 10

Expert Comment

by:cdebel
ID: 34960733
I would add another column, and let's say taht your image name is in column E
then in the next column i would place a formula like this:   =E2 & ".jpg"  
for example (E1 beeing the header), i would copy that formula to every other rows.

You can simply hide column E to not have the same information twice, or, copy column F over column E doing a "Paste VALUE", and then get rid of column F
0
 
LVL 11

Accepted Solution

by:
Runrigger earned 250 total points
ID: 34960735
=CONCATENATE(<<image cell ref>>,".jpg")

then copy it down, so if the image name is in column C, assuming a column header;

put this in column D

=CONCATENATE(C2,".jpg")
0
 
LVL 45

Expert Comment

by:patrickab
ID: 34960752
dzash2000,

Try:

=A1&".jpg"

and copy down to the end of the data in column A

Patrick
0
Ransomware-A Revenue Bonanza for Service Providers

Ransomware – malware that gets on your customers’ computers, encrypts their data, and extorts a hefty ransom for the decryption keys – is a surging new threat.  The purpose of this eBook is to educate the reader about ransomware attacks.

 

Author Closing Comment

by:dzash2000
ID: 34961206
Runrigger -
Excellent.  A clear, succinct explanation and example.
Thanks.
0
 
LVL 10

Expert Comment

by:cdebel
ID: 34961295
dzash: Our 3 solutions (Runrigger, Patrickab and mine) were working.  They all do the same thing.  Mine is exactly the same than Patrickab except that i've specified how to remove the column with only the image name.

CONCATENATE and the operator "&" are doing exactly the same job.

Next time, it would be nice to split the points between people who lead you to your answer.
Here's some info about it: http://www.experts-exchange.com/help.jsp#hs=8&hi=100)
0
 
LVL 11

Expert Comment

by:Runrigger
ID: 34961409
Christian, my participation on EE is about education not only for the submitter, but for myself also, points are secondary and if you want all 250 points, I for one would be very happy for the author to re-open the question and award them all to you, it is their choice to make not yours!

I am going to assume, based on the author's comments, that my suggestion lead to an appropiate solution for their needs!

0
 
LVL 45

Expert Comment

by:patrickab
ID: 34961496
dzash2000,

Don't worry, I am not expecting any points. Others provided good answers before me.

Patrick
0
 
LVL 10

Expert Comment

by:cdebel
ID: 34961641
dzash2000: I'm not asking you to reopen this question to reassign the points too.  It was just for your information, to split the points fairly between people who have helped you.

You might not be aware of that, but Experts-Exchange give to their experts the opportunity to have free access to the service if they reach XXXX Points per month (i think it's 3K or 4K points, i'm not sure).  I honnestly don't care about that: just like i said to patrickab, i'm paying my subscription to have peace of mind.

Even if experts are not doing this for points, by not splitting points, you might offend some and they might not answer you next time that you ask a question.

So think about it for your future questions...
0

Featured Post

Free Tool: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

The new Microsoft OS looks great, is easier than ever to upgrade to, it is even free.  So what's the catch?  If you don't change the privacy settings, Microsoft will, in accordance with the (EULA) you clicked okay to without reading, collect all the…
Deploying a Microsoft Access application in a Citrix environment is not difficult but takes a few steps. However, Citrix system people are often of little help, as they typically know next to nothing about Access. The script provided here will take …
The viewer will learn how to use the =DISCRINV command to create a discrete random variable, use this command to model a set of probabilities and outcomes in a Monte Carlo simulation, and learn how to find the standard deviation of a set of probabil…
This Micro Tutorial will demonstrate in Google Sheets how to use the HYPERLINK function to create live links inside your spreadsheet.

860 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question