ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Worksheet Functions (https://www.excelbanter.com/excel-worksheet-functions/)
-   -   replace a number in a sentence every time it is dragged (https://www.excelbanter.com/excel-worksheet-functions/133211-replace-number-sentence-every-time-dragged.html)

SushilNayal

replace a number in a sentence every time it is dragged
 
euro.stat 1434,41051,country=s
I want to replace 41051 with other 5 digit numbers every time i drag it in
Excel.

Max

replace a number in a sentence every time it is dragged
 
One try ..

Source data as posted assumed representative, and running in A1 down,
with replacement numbers listed in B1 down

Put in C1:
=LEFT(A1,LEN(A1)-SEARCH(",",A1))&TEXT(B1,"00000")&RIGHT(A1,LEN(A1)-SEARCH(",",A1,SEARCH(",",A1)+1)+1)
Copy down
--
Max
Singapore
http://savefile.com/projects/236895
xdemechanik
---
"SushilNayal" wrote:
euro.stat 1434,41051,country=s
I want to replace 41051 with other 5 digit numbers every time i drag it in
Excel.



All times are GMT +1. The time now is 08:01 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com