ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Discussion (Misc queries) (https://www.excelbanter.com/excel-discussion-misc-queries/)
-   -   changing numbers in a text string in a new cell (https://www.excelbanter.com/excel-discussion-misc-queries/142951-changing-numbers-text-string-new-cell.html)

Xhawk57

changing numbers in a text string in a new cell
 
could someone please help me with a formula to change a number (such as a
date) in a text string in the next cell:

for example:
in column A I have data that reads:
2005 tax returns (Alt - Enter)
2005 Financial Statements

and in cell be I need a formula the will take that information and make it
say:
2006 tax returns (Alt-Enter)
2006 financial Statements

The text will not always be the same as you go down the colum but i want to
carry it over in a large spreadsheet while updating the date.

Is this possible?

FSt1

changing numbers in a text string in a new cell
 
hi
=SUBSTITUTE(B3,2005,2006,1)
change cell reference to fit your data
Regards
FSt1

"Xhawk57" wrote:

could someone please help me with a formula to change a number (such as a
date) in a text string in the next cell:

for example:
in column A I have data that reads:
2005 tax returns (Alt - Enter)
2005 Financial Statements

and in cell be I need a formula the will take that information and make it
say:
2006 tax returns (Alt-Enter)
2006 financial Statements

The text will not always be the same as you go down the colum but i want to
carry it over in a large spreadsheet while updating the date.

Is this possible?


Gary''s Student

changing numbers in a text string in a new cell
 
=SUBSTITUTE(A1,"2005","2006")
Just be sure text wrapping is turned on in the cell with the formula to view
it correctly.
--
Gary''s Student - gsnu200722

CLR

changing numbers in a text string in a new cell
 
=SUBSTITUTE(A1,5,6)

Vaya con Dios,
Chuck, CABGx3



"Xhawk57" wrote:

could someone please help me with a formula to change a number (such as a
date) in a text string in the next cell:

for example:
in column A I have data that reads:
2005 tax returns (Alt - Enter)
2005 Financial Statements

and in cell be I need a formula the will take that information and make it
say:
2006 tax returns (Alt-Enter)
2006 financial Statements

The text will not always be the same as you go down the colum but i want to
carry it over in a large spreadsheet while updating the date.

Is this possible?


Xhawk57

changing numbers in a text string in a new cell
 
Worked like a charm! Thanks a lot!!!

"Xhawk57" wrote:

could someone please help me with a formula to change a number (such as a
date) in a text string in the next cell:

for example:
in column A I have data that reads:
2005 tax returns (Alt - Enter)
2005 Financial Statements

and in cell be I need a formula the will take that information and make it
say:
2006 tax returns (Alt-Enter)
2006 financial Statements

The text will not always be the same as you go down the colum but i want to
carry it over in a large spreadsheet while updating the date.

Is this possible?



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

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