Microsoft Office Forums

Go Back   Microsoft Office Forums > >

Reply
 
Thread Tools Display Modes
  #1  
Old 04-05-2013, 06:07 PM
Mad Mad is offline Help with IF statement in word 2010 Windows 7 64bit Help with IF statement in word 2010 Office 2010 64bit
Novice
Help with IF statement in word 2010
 
Join Date: Apr 2013
Posts: 2
Mad is on a distinguished road
Default Help with IF statement in word 2010

I use the below statement in ms excel and now want to have the same functionality in ms word.

=if(A1="text1",B1-3000,if(A1="text2",B1-4000))

B1 contains a number value, usually above 14000. I subtract from B1 based on what text (text1 or text2) I select in the drop down list in A1.

I want to create a form in MS word that does the same equation in my tables. I can't seem to figure out how to get it to do the equation based on what the text value of A1 is.



Can someone please point me in the right direction?

appreciate it.
Reply With Quote
  #2  
Old 04-05-2013, 11:11 PM
macropod's Avatar
macropod macropod is offline Help with IF statement in word 2010 Windows 7 64bit Help with IF statement in word 2010 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

And what do you want to do if neither text1 nor text2 = A1? The following assume you want to deduct nothing in such cases:
{IF{REF Text1}= A1 {=B1-3000} {IF{REF Text2}= A1 {=B1-4000}} B1 \# ,0}
or:
{=B1-{IF{REF Text1}= A1 3000 {IF{REF Text2}= A1 4000 0}} \# ,0}
Results are expressed as whole numbers with thousands separators.

Note: The field brace pairs (ie '{ }') for the above examples are created in the body of the document via Ctrl-F9 (Cmd-F9 on a Mac) - you can't simply type them or copy & paste them from this message.
__________________
Cheers,
Paul Edstein
[Fmr MS MVP - Word]
Reply With Quote
  #3  
Old 04-06-2013, 06:31 AM
Mad Mad is offline Help with IF statement in word 2010 Windows 7 64bit Help with IF statement in word 2010 Office 2010 64bit
Novice
Help with IF statement in word 2010
 
Join Date: Apr 2013
Posts: 2
Mad is on a distinguished road
Default

Thank you very much. That solved my problem and helped me tremendously.
Reply With Quote
Reply

Thread Tools
Display Modes


Similar Threads
Thread Thread Starter Forum Replies Last Post
Help with IF statement in word 2010 Help with IF Statement limpbizkit Excel 4 02-24-2011 09:16 PM
Invoice Statement Shoshana3 Word 0 11-15-2010 03:02 PM
Help with IF statement in word 2010 if statement piper7971 PowerPoint 1 08-19-2010 07:10 AM
Help with IF statement in word 2010 Help with IF statement! CPelkey Word 1 04-12-2010 09:06 AM
Have you seen this error statement? nebb Word 4 12-01-2009 10:05 AM

Other Forums: Access Forums

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