Solved

How to replace  : with / in excel column

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

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 28

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:
DanCh99 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

How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

Join & Write a Comment

Since upgrading to Office 2013 or higher installing the Smart Indenter addin will fail. This article will explain how to install it so it will work regardless of the Office version installed.
In this article we discuss how to recover the missing Outlook 2011 for Mac data like Emails and Contacts manually.
This Micro Tutorial will demonstrate in Google Sheets how to use the HYPERLINK function to create live links inside your spreadsheet.
This Micro Tutorial will demonstrate how to use a scrolling table in Microsoft Excel using the INDEX function.

708 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

Need Help in Real-Time?

Connect with top rated Experts

18 Experts available now in Live!

Get 1:1 Help Now