?
Solved

batch update excel

Posted on 2011-03-16
2
Medium Priority
?
342 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
[X]
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
2 Comments
 
LVL 12

Accepted Solution

by:
telyni19 earned 2000 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

VIDEO: THE CONCERTO CLOUD FOR HEALTHCARE

Modern healthcare requires a modern cloud. View this brief video to understand how the Concerto Cloud for Healthcare can help your organization.

Question has a verified solution.

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

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…
Excel can be a tricky bit of software to get your head around. Whilst you’ll be able to eventually get to grips with the basic understanding of how to get by, there are a few Excel tips that not everybody will even know about let alone know how to d…
This Micro Tutorial will demonstrate how to use longer labels with horizontal bar charts instead of the vertical column chart.
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…

762 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