Microsoft Office Forums

Go Back   Microsoft Office Forums > >

Reply
 
Thread Tools Display Modes
  #1  
Old 07-15-2014, 10:19 AM
madkiwi madkiwi is offline IF formula in table Windows 7 IF formula in table Office 2007
Novice
IF formula in table
 
Join Date: Jan 2010
Posts: 11
madkiwi is on a distinguished road
Default IF formula in table

I have a template used for generating invoices, and in the interest of making it work a little faster I was looking for ways to automate/speed up the process. The template already (using mailmerge etc) pre-populates the date, invoice number and customer information. I use drop downs for payment and shipping methods.



I use a table only for the part of the invoice for the line items being sold with 4 columns- Quantity, Description, Price and Extended price. First row is headings.

So for each line I want the item total (in the first line it's d2) to be a blank space, and only show a result if there is a quantity (a2), which then will extend out the total by multiplying it with the price (c2).

Here is the formula I entered in d2 (using CTRL-F9 to create the nested formula)

{ if a2 > 0 { a2*c2 } " " }

Works great for calculating the item extensions if there is an item on that line. Unfortunately if a2 is blank the result in d2 is 0 (I want it to be blank).

What am I doing wrong?

Thanks,

Mark

Last edited by madkiwi; 07-15-2014 at 10:21 AM. Reason: Bad structure
Reply With Quote
  #2  
Old 07-15-2014, 09:34 PM
macropod's Avatar
macropod macropod is offline IF formula in table Windows 7 32bit IF formula in table Office 2010 32bit
Administrator
 
Join Date: Dec 2010
Location: Canberra, Australia
Posts: 21,962
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

Cross-posted (and answered) at: http://windowssecrets.com/forums/sho...get-it-to-work
For cross-posting etiquette, please read: http://www.excelguru.ca/content.php?184

As for:
Quote:
What am I doing wrong?
I'd say, not paying attention to the tutorial you were directed to at the other forum.
__________________
Cheers,
Paul Edstein
[Fmr MS MVP - Word]
Reply With Quote
Reply



Similar Threads
Thread Thread Starter Forum Replies Last Post
Complicated formula or look-up table help wmpwi Excel 10 04-30-2014 07:24 PM
xl table formula change on add row mikec Excel Programming 6 11-10-2013 04:54 PM
Formula help in word table mygsdsni Word Tables 3 01-04-2012 02:36 PM
IF formula in table Formula and Table Help! steveman1234 Word Tables 2 03-28-2010 06:20 PM
Help with Word table formula fritman99 Word Tables 1 09-02-2009 05:36 PM

Other Forums: Access Forums

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