Solved

How to replace  : with / in excel column

Posted on 2016-11-04
4
96 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

NFR key for Veeam Agent for Linux

Veeam is happy to provide a free NFR license for one year.  It allows for the non‑production use and valid for five workstations and two servers. Veeam Agent for Linux is a simple backup tool for your Linux installations, both on‑premises and in the public cloud.

Question has a verified solution.

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

My attempt to use PowerShell and other great resources found online to simplify the deployment of Office 365 ProPlus client components to any workstation that needs it, regardless of existing Office components that may be needing attention.
After seeing numerous questions for Dynamic Data Validation I notice that most have used Visual Basic to solve the problem. This suggestion is purely formula based and can be used in multiple rows.
This Micro Tutorial will demonstrate the scrolling table in Microsoft Excel using the INDEX function.
This Micro Tutorial demonstrates in Microsoft Excel how to consolidate your marketing data by creating an interactive charts using form controls. This creates cool drop-downs for viewers of your chart to choose from.

630 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