Solved

How to replace  : with / in excel column

Posted on 2016-11-04
4
86 Views
Last Modified: 2016-11-11
Hi

I have a excel spread sheet and on Colum H the format is in
5:0
6:9
6:0
8:6
.
.
So on

I would like to replace : with \ is there a way to convert
5/0
6/9
6/0
8/6

Any help  and tutorial would be great
Thanks
0
Comment
Question by:lianne143
[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
4 Comments
 
LVL 31

Assisted Solution

by:Subodh Tiwari (Neeraj)
Subodh Tiwari (Neeraj) earned 250 total points
ID: 41874166
Please try....
=SUBSTITUTE(H2,":","\")

Open in new window

0
 

Author Comment

by:lianne143
ID: 41876287
Hi

Please find the attached excel sheet  and i have added the required colum from the actual spreadsheet.
I am not able to add / between the numbers. If replace / with : I get months.

Please help with step by step tutorials and how to sort this . I need to show my colleague as how i did.
Thanks
Book1.xlsx
0
 
LVL 31

Assisted Solution

by:Subodh Tiwari (Neeraj)
Subodh Tiwari (Neeraj) earned 250 total points
ID: 41876298
Refer to the attached in which you will find two formulas, one replacing the colon with / and other replacing colon with \ in the adjacent columns.
Replace-Colon.xlsx
0
 
LVL 23

Accepted Solution

by:
Danny Child earned 250 total points
ID: 41877410
The basic problem you have with using the / frontslash is that it's going to be interpreted by Excel as the date marker, hence the months will be shown if you use it on an ongoing basis.

To stop this, you can put the ' apostrophe marker at the START of each line, and then Excel will treat that cell as a text format, and not try and make it into a number, date, etc.

The variation on the formula would be
="'"&SUBSTITUTE(B2,":","/")
 - note the start of that formula is hard to read - what it actually is, is:
=     "     '     "    &SUBSTITUTE(B2,":","/")
 - remove all spaces from the line above to use it.

Step by step
1 - paste the formula above in the first cell to the right that it would refer to.
2 - drag it down to refer to all of them.  They should all now be shown with an ' at the start, and with the / replacing the :
3 - Copy all the formula cells
4 - Paste Special.. Values.. for all formula cells back onto themselves.  The ' should disappear from the sheet itself (but will be visible in the formula bar).
5 - you can now delete the original column that contained the : marked cells

You shouldn't get the this month problem if you use the \ backslash character, as Excel doesn't use this for anything in particular.
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

This code takes an Excel list of URL’s and adds a header titled “URL List”. It then searches through all URL’s in column “A”, looking for duplicates. When a duplicate is found, it is moved to the top of the list. The duplicate URL’s are then highlig…
In Part II of this series, I will discuss how to identify all open instances of Excel and enumerate the workbooks, spreadsheets, and named ranges within each of those instances.
This Micro Tutorial will demonstrate the scrolling table in Microsoft Excel using the INDEX function.
Although Jacob Bernoulli (1654-1705) has been credited as the creator of "Binomial Distribution Table", Gottfried Leibniz (1646-1716) did his dissertation on the subject in 1666; Leibniz you may recall is the co-inventor of "Calculus" and beat Isaac…

751 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