Microsoft Office Forums

Go Back   Microsoft Office Forums > >

Reply
 
Thread Tools Display Modes
  #1  
Old 06-17-2020, 12:36 PM
farisca farisca is offline Complex find and replace Windows 10 Complex find and replace Office 2016
Novice
Complex find and replace
 
Join Date: Jun 2020
Posts: 3
farisca is on a distinguished road
Default Complex find and replace


I dont know this work or not , I want to find a character and replace with same character by reducing its length. For example I want to find the 'aaaaaa' and replace with 'aa'. the formula for replacing is divided by three. Eg: 'hhhhhhhhh' then it should replace to 'hhh' . what ever in the find box , it should be replaced with same letter by dividing its length by 3. please help
Reply With Quote
  #2  
Old 06-17-2020, 04:30 PM
macropod's Avatar
macropod macropod is offline Complex find and replace Windows 7 64bit Complex find and replace Office 2010 32bit
Administrator
 
Join Date: Dec 2010
Location: Canberra, Australia
Posts: 21,956
macropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond repute
Default

For what you described, you could use a wildcard Find/Replace, where:
Find = ([a-z])\1\1
Replace = \1
__________________
Cheers,
Paul Edstein
[Fmr MS MVP - Word]
Reply With Quote
  #3  
Old 06-18-2020, 03:21 AM
farisca farisca is offline Complex find and replace Windows 10 Complex find and replace Office 2016
Novice
Complex find and replace
 
Join Date: Jun 2020
Posts: 3
farisca is on a distinguished road
Default

Thank you so much. This worked like charm.
Reply With Quote
  #4  
Old 06-18-2020, 05:26 PM
Guessed's Avatar
Guessed Guessed is offline Complex find and replace Windows 10 Complex find and replace Office 2016
Expert
 
Join Date: Mar 2010
Location: Canberra/Melbourne Australia
Posts: 3,932
Guessed has a brilliant futureGuessed has a brilliant futureGuessed has a brilliant futureGuessed has a brilliant futureGuessed has a brilliant futureGuessed has a brilliant futureGuessed has a brilliant futureGuessed has a brilliant futureGuessed has a brilliant futureGuessed has a brilliant futureGuessed has a brilliant future
Default

Bravo Paul
That is a brilliantly simple solution that I would never have considered.
__________________
Andrew Lockton
Chrysalis Design, Melbourne Australia
Reply With Quote
Reply

Tags
find and replace

Thread Tools
Display Modes


Similar Threads
Thread Thread Starter Forum Replies Last Post
How do you use the find and replace tool to find dates and times in Excel 2013? Jules90 Excel 3 04-14-2020 07:40 PM
Complex find and replace Find what box in Find and replace limits the length of a search term Hoxton118 Word VBA 7 06-10-2014 05:05 AM
Complex find and replace Is the following too complex for find/replace macro? bertietheblue Word VBA 12 11-04-2013 05:35 PM
Complex find and replace Bad view when using Find and Find & Replace - Word places found string on top line paulkaye Word 4 12-06-2011 11:05 PM
Complex find and replace Complex Find and Replace paulkaye Word 1 11-13-2011 04:23 AM

Other Forums: Access Forums

All times are GMT -7. The time now is 10:19 PM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2024, vBulletin Solutions Inc.
Search Engine Optimisation provided by DragonByte SEO (Lite) - vBulletin Mods & Addons Copyright © 2024 DragonByte Technologies Ltd.
MSOfficeForums.com is not affiliated with Microsoft