Microsoft Office Forums

Go Back   Microsoft Office Forums > >

 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
  #1  
Old 04-07-2014, 05:50 AM
pelagic pelagic is offline How do I perform simple mathematical calculations on numbers in the text Mac OS X How do I perform simple mathematical calculations on numbers in the text Office for Mac 2011
Novice
How do I perform simple mathematical calculations on numbers in the text
 
Join Date: Apr 2014
Posts: 2
pelagic is on a distinguished road
Default How do I perform simple mathematical calculations on numbers in the text

I have a Word doc which is a stand alone index to be added to an existing project. The index is five pages long and is in two columns with the following format:

effluent treatments 76, 77–78


England, UK 17, 23, 79, 84, 90


At the moment all the numbering is out and I need to subtract 13 from each number.


Am I correct in understanding that you cannot use regular expressions to perform mathematical calculations or is there a simple solution?


I have tried:


Using find and replace with find: ([0-9]{1,2}) replace: ^& (13) to add (13) after all the numbers then selecting all the text and running the ToolsCalculate command. Even if I add spaces either side of each number I keep getting a syntax error? Is it possible to automate this technique using a Macro?


Any suggestions gratefully received!


Thanks
Reply With Quote
 

Tags
calculation, mathematics, toolscalculate



Similar Threads
Thread Thread Starter Forum Replies Last Post
How to do Calculations In a Text Box? SteveF Word 4 09-27-2013 08:34 AM
How do I perform simple mathematical calculations on numbers in the text Simple Question (Exiting a text box on click) MdCadle PowerPoint 1 05-30-2013 08:30 AM
How do I perform simple mathematical calculations on numbers in the text typing out mathematical notation gib65 Word 2 08-31-2011 02:21 PM
How do I perform simple mathematical calculations on numbers in the text Perform Calculations using List boxes Jennifer_Falcon Word VBA 6 07-26-2011 10:49 AM
How to fill a cell with random numbers to do calculations? zanat0s Excel 1 06-13-2011 10:33 AM

Other Forums: Access Forums

All times are GMT -7. The time now is 05:16 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