ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   Remove specified value from string (https://www.excelbanter.com/excel-programming/351958-remove-specified-value-string.html)

Todd Huttenstine

Remove specified value from string
 
Hey

I have the following value:
"7D: Test Note"

I would like to remove the "7D: " from the above string.
How do I do this?


Thanks
Todd


Toppers

Remove specified value from string
 
Todd,
With string in A1 put this in (say) b1:

=SUBSTITUTE(A1,"7D:","",1)

Or in VBA, use REPLACE function

newstring=Replace(Range("A1"),"7D:","")

Range("a1") could be replaced by string variable.

HTH

"Todd Huttenstine" wrote:

Hey

I have the following value:
"7D: Test Note"

I would like to remove the "7D: " from the above string.
How do I do this?


Thanks
Todd




All times are GMT +1. The time now is 05:34 PM.

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