Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 64
Default cell a1 mod No(abc??d) cell b1=unit size(10) a1 would be abc10d

example
cell a1 (abcd??ef) cell b1 (10) cell a2 would give answer (abcd10ef)
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default cell a1 mod No(abc??d) cell b1=unit size(10) a1 would be abc10d


Try this.. But I am not sure if this is what you are asking..

Put this in A2:

=LEFT(A1,FIND("?",A1)-1)&A2&RIGHT(A1,LEN(A1)-FIND("?",A1)-1

--
Bearacad

-----------------------------------------------------------------------
Bearacade's Profile: http://www.excelforum.com/member.php...fo&userid=3501
View this thread: http://www.excelforum.com/showthread.php?threadid=57007

  #3   Report Post  
Posted to microsoft.public.excel.programming
JMB JMB is offline
external usenet poster
 
Posts: 2,062
Default cell a1 mod No(abc??d) cell b1=unit size(10) a1 would be abc1

I don't think that will work if the number of characters to replace is not 2
(but that may not be a problem -there is, after all, only one example to go
on).

My two cents:
=REPLACE(A1,FIND("?",A1),LEN(A1)-LEN(SUBSTITUTE(A1,"?","")),A2)

Of course, I'm assuming there are no stray "?" in the text string (for
example, a "?" at the end of a question that is not intended to be replaced).


"Bearacade" wrote:


Try this.. But I am not sure if this is what you are asking..

Put this in A2:

=LEFT(A1,FIND("?",A1)-1)&A2&RIGHT(A1,LEN(A1)-FIND("?",A1)-1)


--
Bearacade


------------------------------------------------------------------------
Bearacade's Profile: http://www.excelforum.com/member.php...o&userid=35016
View this thread: http://www.excelforum.com/showthread...hreadid=570079


Reply
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
Copy worksheet1 to worksheet2, keep cell format eg cell size slocookie Excel Discussion (Misc queries) 2 January 8th 10 11:24 AM
Multiple cell unit conversion. Please help. Nicholas Excel Discussion (Misc queries) 2 April 18th 09 05:55 AM
How can I change the size of a cell and hide what is in the cell? Elisabeth Excel Worksheet Functions 7 January 3rd 08 07:43 PM
Cell size? Or size limit for Text data type? CClem Excel Discussion (Misc queries) 0 April 21st 06 04:09 PM
SAP BW Report - Putting the Unit of Measure or Currency in another Cell based on Format Cell Frank & Pam Hayes[_2_] Excel Programming 1 December 3rd 05 05:38 PM


All times are GMT +1. The time now is 11:01 PM.

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

About Us

"It's about Microsoft Excel"