Learn how to a build a cloud-first strategyRegister Now

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 346
  • Last Modified:

batch update excel

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
jecommera
Asked:
jecommera
1 Solution
 
telyni19Commented:
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
 
Saqib Husain, SyedEngineerCommented:
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

Free Tool: SSL Checker

Scans your site and returns information about your SSL implementation and certificate. Helpful for debugging and validating your SSL configuration.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now