Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
pda pda is offline
external usenet poster
 
Posts: 6
Default Replace with wildcards

How do I replace is a list of dates such as "1999" with sp1999 using the
wildcare "*"? When I use the wildcard "*" and try to replace * with sp* the
result is "sp*" instead of the desired "sp1999"

Excell finds 1999 ok using *, but the replacement doesn't work right.

Thanks,

  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 35,218
Default Replace with wildcards

Depending on the number of entries you have to replace, maybe you could do each
explicitly.

1999
becoms
sp1999

2000
becomes
sp2000

Or maybe you could use a helper column and a formula like:
="sp" & a1
or
="sp" & year(a1)
(if a1 really contains a date)

PDA wrote:

How do I replace is a list of dates such as "1999" with sp1999 using the
wildcare "*"? When I use the wildcard "*" and try to replace * with sp* the
result is "sp*" instead of the desired "sp1999"

Excell finds 1999 ok using *, but the replacement doesn't work right.

Thanks,


--

Dave Peterson
  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 35,218
Default Replace with wildcards

Or even use a custom format (the value doesn't change) of:
mm/dd/\s\pyyyy

or that custom format in a formula in another cell:
=text(a1,"mm/dd/\s\pyyyy")



PDA wrote:

How do I replace is a list of dates such as "1999" with sp1999 using the
wildcare "*"? When I use the wildcard "*" and try to replace * with sp* the
result is "sp*" instead of the desired "sp1999"

Excell finds 1999 ok using *, but the replacement doesn't work right.

Thanks,


--

Dave Peterson
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
Edit and Replace with wildcards AJ[_4_] Excel Discussion (Misc queries) 2 April 1st 09 10:31 PM
find and replace \n wildcards like word julesgf Excel Discussion (Misc queries) 4 February 12th 09 03:11 AM
Find and Replace with wildcards? Colin Excel Discussion (Misc queries) 4 January 20th 08 09:05 PM
Replace using Wildcards Stella Excel Worksheet Functions 1 June 23rd 06 06:48 PM
Replace using wildcards jeb Excel Discussion (Misc queries) 6 January 6th 05 03:35 PM


All times are GMT +1. The time now is 11:08 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"