Microsoft Office Forums

Go Back   Microsoft Office Forums > >

Reply
 
Thread Tools Display Modes
  #1  
Old 11-06-2014, 09:41 AM
foxtrot foxtrot is offline Find all instances of .0% Windows XP Find all instances of .0% Office 2003
Novice
Find all instances of .0%
 
Join Date: Aug 2009
Posts: 8
foxtrot is on a distinguished road
Default Find all instances of .0%

I'm trying to find all instances of .0%, ignoring anything in front of the decimal, from a mix of numbers that might look like this:



7.0%
.0%
0.0%
94.0%

In the above list, it should only find one instance: the .0%

Any suggestions for how to wildcard the find expression?

I started with [!0.].0% which effectively ignores the 0.0%, but catches everything else. I tried something like [!0.-9.].0% but that ignores everything.

Ideas?
Reply With Quote
  #2  
Old 11-06-2014, 02:00 PM
macropod's Avatar
macropod macropod is offline Find all instances of .0% Windows 7 64bit Find all instances of .0% Office 2010 32bit
Administrator
 
Join Date: Dec 2010
Location: Canberra, Australia
Posts: 22,341
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

You could use:
Find = [!0-9].[0-9]%
Note that this finds the non-numeric character before the .0% as well. So, if the aim is to delete the .0%, you'd use:
Find = ([!0-9]).[0-9]%
Replace = \1
__________________
Cheers,
Paul Edstein
[Fmr MS MVP - Word]
Reply With Quote
  #3  
Old 11-06-2014, 02:24 PM
foxtrot foxtrot is offline Find all instances of .0% Windows XP Find all instances of .0% Office 2003
Novice
Find all instances of .0%
 
Join Date: Aug 2009
Posts: 8
foxtrot is on a distinguished road
Default

Quote:
Originally Posted by macropod View Post
You could use:
Find = [!0-9].[0-9]%
Note that this finds the non-numeric character before the .0% as well. So, if the aim is to delete the .0%, you'd use:
Find = ([!0-9]).[0-9]%
Replace = \1
That doesn't find anything. For example, if you list in Word those four sample values I provided and do a find for [!0-9].[0-9]% it says "... The search item was not found."
Reply With Quote
  #4  
Old 11-06-2014, 02:32 PM
macropod's Avatar
macropod macropod is offline Find all instances of .0% Windows 7 64bit Find all instances of .0% Office 2010 32bit
Administrator
 
Join Date: Dec 2010
Location: Canberra, Australia
Posts: 22,341
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

Did you check the 'Use wildcards' option?
__________________
Cheers,
Paul Edstein
[Fmr MS MVP - Word]
Reply With Quote
  #5  
Old 11-06-2014, 02:48 PM
foxtrot foxtrot is offline Find all instances of .0% Windows XP Find all instances of .0% Office 2003
Novice
Find all instances of .0%
 
Join Date: Aug 2009
Posts: 8
foxtrot is on a distinguished road
Default

Quote:
Originally Posted by macropod View Post
Did you check the 'Use wildcards' option?
Yes.

I'm using Word 2010.
Reply With Quote
  #6  
Old 11-06-2014, 03:00 PM
macropod's Avatar
macropod macropod is offline Find all instances of .0% Windows 7 64bit Find all instances of .0% Office 2010 32bit
Administrator
 
Join Date: Dec 2010
Location: Canberra, Australia
Posts: 22,341
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

And are these numbers just in the ordinary text of the document, or are they in table cells?
__________________
Cheers,
Paul Edstein
[Fmr MS MVP - Word]
Reply With Quote
  #7  
Old 11-06-2014, 03:02 PM
foxtrot foxtrot is offline Find all instances of .0% Windows XP Find all instances of .0% Office 2003
Novice
Find all instances of .0%
 
Join Date: Aug 2009
Posts: 8
foxtrot is on a distinguished road
Default

Quote:
Originally Posted by macropod View Post
And are these numbers just in the ordinary text of the document, or are they in table cells?
They are in table cells, but I also tested the find logic on a blank word document with just these four plain text values (no formatting, no table, etc.) and it didn't find any of them:

7.0%
.0%
0.0%
94.0%
Reply With Quote
  #8  
Old 11-06-2014, 03:14 PM
macropod's Avatar
macropod macropod is offline Find all instances of .0% Windows 7 64bit Find all instances of .0% Office 2010 32bit
Administrator
 
Join Date: Dec 2010
Location: Canberra, Australia
Posts: 22,341
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

Quote:
Originally Posted by foxtrot View Post
They are in table cells
It would have been helpful if you'd said so at the outset. On its own, the process won't work in tables. You could, however, use a series of wildcard Find/Replace expressions, where:
Find = .[0-9]%
Replace = ^s^&
Find = ([0-9])^s(.[0-9]%)
Replace = \1\2
This will now leave you with the .0%s with a non-breaking space before them, so you can then do a wildcard Find for just those, with:
Find = ^s.[0-9]%
Quote:
I also tested the find logic on a blank word document with just these four plain text values (no formatting, no table, etc.) and it didn't find any of them
I tested the [!0-9].[0-9]% wildcard Find expression in an ordinary document before I posted it. It worked then and it still does.
__________________
Cheers,
Paul Edstein
[Fmr MS MVP - Word]
Reply With Quote
  #9  
Old 11-18-2014, 08:17 AM
foxtrot foxtrot is offline Find all instances of .0% Windows XP Find all instances of .0% Office 2003
Novice
Find all instances of .0%
 
Join Date: Aug 2009
Posts: 8
foxtrot is on a distinguished road
Default

Quote:
Originally Posted by macropod View Post
It would have been helpful if you'd said so at the outset. On its own, the process won't work in tables. You could, however, use a series of wildcard Find/Replace expressions, where:
Find = .[0-9]%
Replace = ^s^&
Find = ([0-9])^s(.[0-9]%)
Replace = \1\2
This will now leave you with the .0%s with a non-breaking space before them, so you can then do a wildcard Find for just those, with:
Find = ^s.[0-9]%

I tested the [!0-9].[0-9]% wildcard Find expression in an ordinary document before I posted it. It worked then and it still does.
Just wanted to follow up and say both approaches worked and thank you. I didn't point out the table issue because I thought I ruled that out as an issue. For some reason, the [!0-9].[0-9]% wildcard for non-table data didn't work on my PC at work but did work on my PC at home, even though both PCs use Word 2010. Still can't figure out what's causing that.

But thank you again for your help.
Reply With Quote
Reply



Similar Threads
Thread Thread Starter Forum Replies Last Post
Find all instances of .0% Spellchecker not replacing all instances jsuebersax Word 2 04-28-2014 05:15 PM
Find all instances of .0% multiple instances available? Guloluseus Project 3 01-31-2014 02:42 PM
can find and replace instances of the "enter" key? snunicycler Word 7 05-02-2013 11:54 PM
Word 2010 running multiple instances JBE Word 0 09-28-2012 06:00 PM
Find all instances of .0% Email Duplicates & Multiple Instances Running trim Outlook 2 03-13-2012 11:25 AM

Other Forums: Access Forums

All times are GMT -7. The time now is 08:17 PM.


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