Solved

batch update excel

Posted on 2011-03-16
2
335 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

Why You Should Analyze Threat Actor TTPs

After years of analyzing threat actor behavior, it’s become clear that at any given time there are specific tactics, techniques, and procedures (TTPs) that are particularly prevalent. By analyzing and understanding these TTPs, you can dramatically enhance your security program.

Join & Write a Comment

Dealing with unintended Excel Active-X resizing quirks (VBA code simulates "self correction") David Miller (dlmille) Intro Not everyone is a fan of Active-X controls in spreadsheets (as opposed to the UserForm approach, the older Form controls …
Introduction This Article briefly covers methods of calculating the NPV and IRR variants in Excel as well as the limitations in calculating and interpreting IRR results. Paraphrasing Richard Shockley, author of my favourite finance reference tex…
The view will learn how to download and install SIMTOOLS and FORMLIST into Excel, how to use SIMTOOLS to generate a Monte Carlo simulation of 30 sales calls, and how to calculate the conditional probability based on the results of the Monte Carlo …
The viewer will learn how to create a normally distributed random variable in Excel, use a normal distribution to simulate the return on an investment over a period of years, Create a Monte Carlo simulation using a normal random variable, and calcul…

743 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

14 Experts available now in Live!

Get 1:1 Help Now