LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Report Post  
marlea
 
Posts: n/a
Default Replace nth place with colon


I am altering REPLACE functions for different parts of my data. This
works OK, but it would be more efficient if I could apply one function
to all of my data.

Data:
Column A
R1 volume measured by...
R4 mass times...
R11 weight is related...
R12 height
R100 distance and time
R124 force

I want to place a colon after the numbers; e.g., R1: volume...; R12:
height. If I knew how to find the first occurrence of a space, I think
I could just find those spaces and replace them with a colon and a
space. My work-around is to use REPLACE this way:

I apply this formula to cells with one-digit numbers:
=REPLACE(A1, 2, 1, ":")

Then I slightly change the formula for cells with two-digit numbers:
=REPLACE(A1, 3, 1, ":") ... and so on.

Can someone show me a better way of doing this? Thank you!


--
marlea
------------------------------------------------------------------------
marlea's Profile: http://www.excelforum.com/member.php...o&userid=26209
View this thread: http://www.excelforum.com/showthread...hreadid=473522

 
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
find replace format neeraj Excel Discussion (Misc queries) 6 September 20th 05 05:50 PM
Search and replace Subu Excel Worksheet Functions 4 June 9th 05 07:01 PM
replace absolute references bj Excel Worksheet Functions 0 May 20th 05 07:18 PM
REPLACE outside of highlighted column Jane Excel Worksheet Functions 8 May 19th 05 01:54 PM
VB Find and Replace Bony_Pony Excel Worksheet Functions 10 December 6th 04 05:45 PM


All times are GMT +1. The time now is 08:51 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"