Microsoft Office Forums

Go Back   Microsoft Office Forums > >

Reply
 
Thread Tools Display Modes
  #1  
Old 04-23-2012, 08:56 PM
bondimedical3 bondimedical3 is offline Save Formulas Windows 7 64bit Save Formulas Office 2010 64bit
Novice
Save Formulas
 
Join Date: Apr 2012
Posts: 4
bondimedical3 is on a distinguished road
Default Save Formulas


How can I save formulas in a Word template cell so they automatically do calculations for me?

Last edited by bondimedical3; 04-23-2012 at 10:04 PM.
Reply With Quote
  #2  
Old 04-23-2012, 11:43 PM
macropod's Avatar
macropod macropod is offline Save Formulas Windows 7 64bit Save Formulas Office 2010 32bit
Administrator
 
Join Date: Dec 2010
Location: Canberra, Australia
Posts: 22,387
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

By saving the template with the formulae in-situ.
To see how to do a wide range of 'math' calculations in Word, check out my Microsoft Word Field Maths Tutorial, at:
http://windowssecrets.com/forums/sho...l=1#post320143
or
http://www.gmayor.com/downloads.htm#Third_party
Similarly, to see how to do just about every calculation you might want to do with dates in Word, check out my Microsoft Word Date Calculation Tutorial, at:http://lounge.windowssecrets.com/ind...owtopic=249902
or
http://www.gmayor.com/downloads.htm#Third_party

Do read both documents' introductory material.
__________________
Cheers,
Paul Edstein
[Fmr MS MVP - Word]
Reply With Quote
  #3  
Old 04-24-2012, 08:25 PM
bondimedical3 bondimedical3 is offline Save Formulas Windows 7 64bit Save Formulas Office 2010 64bit
Novice
Save Formulas
 
Join Date: Apr 2012
Posts: 4
bondimedical3 is on a distinguished road
Default

Thanks I have managed to add some formulas, after reading your articles, to some of my columns.

I have run into another problem. I want to add a formula to a row. I have an invoice with 6 columns, the first is Qty, the fourth is Unit Price, the Fifth is Discount and the sixth is Line Total. My first row has headings and the second has amounts. I want to multiply Qty by Unit Price and Subtract the Discount column. I have tried putting in some formulas but they don't work?
Reply With Quote
  #4  
Old 04-24-2012, 08:34 PM
macropod's Avatar
macropod macropod is offline Save Formulas Windows 7 64bit Save Formulas Office 2010 32bit
Administrator
 
Join Date: Dec 2010
Location: Canberra, Australia
Posts: 22,387
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

Hi bondimedical,

Without seeing your document and the formulae you're trying to use, I can't say what the issues are. You can attach a document to a post via the paperclip symbol on the 'Go Advanced' tab.
__________________
Cheers,
Paul Edstein
[Fmr MS MVP - Word]
Reply With Quote
  #5  
Old 04-24-2012, 09:13 PM
bondimedical3 bondimedical3 is offline Save Formulas Windows 7 64bit Save Formulas Office 2010 64bit
Novice
Save Formulas
 
Join Date: Apr 2012
Posts: 4
bondimedical3 is on a distinguished road
Default

Hi Paul

I have attached a copy of the invoice.
Attached Files
File Type: docx Andro2Invoice.docx (59.6 KB, 9 views)
Reply With Quote
  #6  
Old 04-24-2012, 10:03 PM
macropod's Avatar
macropod macropod is offline Save Formulas Windows 7 64bit Save Formulas Office 2010 32bit
Administrator
 
Join Date: Dec 2010
Location: Canberra, Australia
Posts: 22,387
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

Hi bondimedical,

Personally, I'd do this in Excel. It'd be far simpler.

Your existing formlae have some problems. Did you notice how, with no line totals your invoice has values in the sub-total, GST & total cells? That's courtesy of SUM(ABOVE) trying to add up the numbers in the date, customer ID, etc. Splitting the table above the 'line total' row will solve that. However, I'd strongly recommend against using SUM(ABOVE) anyway, for the reasons outlined in the Maths tutorial.

As for calculating each row's line total, you'll need a formula field like:
{=A$$*D$$-E$$ \# "0.00;;"}
in each 'line total' cell, where $$ is the row number. Even then, unless you're using formfields with the 'calculate on exit' attribute set in columns A,D&E, the values won't automatically recalculate. See attached.
Attached Files
File Type: docx AndroInvoice.docx (61.9 KB, 12 views)
__________________
Cheers,
Paul Edstein
[Fmr MS MVP - Word]
Reply With Quote
  #7  
Old 04-25-2012, 01:24 AM
bondimedical3 bondimedical3 is offline Save Formulas Windows 7 64bit Save Formulas Office 2010 64bit
Novice
Save Formulas
 
Join Date: Apr 2012
Posts: 4
bondimedical3 is on a distinguished road
Default

Hi Paul

I have split my tables and now the subtotals show 0.0

My biggest problem with the row formula was correct cell address. I used the macro "CellAddress" in the Maths tutorial to find the correct row numbers and now it's all working correctly.

I know now what you mean by preferring Excel for this. Is there a simple way to convert a Word document into an Excel document?
Reply With Quote
  #8  
Old 04-25-2012, 02:02 AM
macropod's Avatar
macropod macropod is offline Save Formulas Windows 7 64bit Save Formulas Office 2010 32bit
Administrator
 
Join Date: Dec 2010
Location: Canberra, Australia
Posts: 22,387
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

Hi bondimedical,
Quote:
Is there a simple way to convert a Word document into an Excel document?
You could simply select the table, then copy & paste into Excel. You might want to paste into cell B2. You'll need to re-create all the formula, etc, but that's pretty easy in Excel.

If you look at the document attached to my post, though, perhaps you'll decide transferring to Excel is no longer needed.
__________________
Cheers,
Paul Edstein
[Fmr MS MVP - Word]
Reply With Quote
Reply



Similar Threads
Thread Thread Starter Forum Replies Last Post
Save Formulas Formulas in a different language poobear Excel 2 09-18-2011 04:35 AM
Help! 'SUMIF' Formulas dave1372 Excel 2 09-08-2011 07:05 AM
Save Formulas IF Formulas mizzamzz Excel 1 07-08-2010 02:32 AM
Can't calculate formulas Cpat Excel 2 06-09-2010 02:07 PM
Table formulas markg2 Word Tables 0 01-15-2010 06:49 AM

Other Forums: Access Forums

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