Solved

batch update excel

Posted on 2011-03-16
2
336 Views
Last Modified: 2012-05-11
Hi,

I have a column of cells like the following;

18002910
18002911
18002912-1
18002913-2
18002914

I need to search the column and update any cells containing like  18002912-1 to 18002912:18002912-1

Can someone advise how this can be run as a batch update for the column

thanks
0
Comment
Question by:jecommera
2 Comments
 
LVL 12

Accepted Solution

by:
telyni19 earned 500 total points
ID: 35151916
If you don't mind using worksheet functions in a separate column to construct the desired results, you could use this function to do it:

=IF(ISERROR(FIND("-",A2)),A2,LEFT(A2,FIND("-",A2)-1)&":"&A2)

This assumes your data starts in cell A2 and that the separating character is always a hyphen. Copy the function down the column, copy the whole column and paste values, then delete column A and you'll have the replaced values you wanted.
0
 
LVL 43

Expert Comment

by:Saqib Husain, Syed
ID: 35152059
If there is only one digit after the "-" then you can perform a search/replace.

Select the data range
Press Ctrl-H
enter "-?" for Find what (without the quotes)
Press Replace all


Saqib
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
ifna and iferror 1 32
Excel file not created as expected 7 48
First Blank Cell in a range 7 34
Excel Formula 4 28
INDEX and MATCH can be used to great effect to replace HLOOKUP and VLOOKUP as it does not have the limitation of needing the data to be sorted so that the reference value is in the first column or row. It also has the ability to perform a bi-directi…
Introduction While answering a recent question (http:/Q_27311462.html), I created an alternative function to the Excel Concatenate() function that you might find useful.  I tested several solutions and share the results in this article as well as t…
This Micro Tutorial will demonstrate how to use a scrolling table in Microsoft Excel using the INDEX function.
Many functions in Excel can make decisions. The most simple of these is the IF function: it returns a value depending on whether a condition you describe is true or false. Once you get the hang of using the IF function, you will find it easier to us…

911 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

Need Help in Real-Time?

Connect with top rated Experts

17 Experts available now in Live!

Get 1:1 Help Now