Solved

How to replace  : with / in excel column

Posted on 2016-11-04
4
81 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
  • 2
4 Comments
 
LVL 30

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 30

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

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

Microsoft Office Picture Manager was included in Office 2003, 2007, and 2010, but not in Office 2013. Users had hopes that it would be in Office 2016/Office 365, but it is not. Fortunately, the same zero-cost technique that works to install it with …
Some code to ensure data integrity when using macros within Excel. Also included code that helps secure your data within an Excel workbook.
Graphs within dashboards are meant to be dynamic, representing data from a period of time that will change each time the dashboard is updated with new data. Rather than update each graph to point to a different set within a static set of data, t…
This Micro Tutorial demonstrates using Microsoft Excel pivot tables, how to reverse engineer competitors' marketing strategies through backlinks.

679 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