![]() |
#1
|
|||
|
|||
![]()
Hi,
I am trying to figure out how to incorporate a checkbox in a form calculation. As in the Picture I have uploaded I am trying to get a calculation legacy form to multiple the number of entries by the events selected in the checkboxes by the cost per event of $10. I put this formula in a calculation field and also a field formula but it does not seem to work. =IEtwodogscooter*(if(check1=true,10,0)+if(check2=t rue,10,0)+if(check3=true,10,0)) Is this something that is able to be done with checkboxes or is there another workaround for this type of problem? |
#2
|
|||
|
|||
![]()
Please someone put me out of my Misery...... Is this at all Possible or is there another solution???
|
#3
|
||||
|
||||
![]()
To perform calculations using any kind of checkbox requires a macro. A field cannot do calculations based on checkbox states. You could, however, replace the checkboxes with dropdown for fields containing yes/no responses and use fields to calculate from those.
__________________
Cheers, Paul Edstein [Fmr MS MVP - Word] |
#4
|
|||
|
|||
![]()
Hi Macropod,
Yes i did try using a drop down box for different selection. I could not get it to work. If you know how to get this to work can you please advise? Thanks |
#5
|
||||
|
||||
![]()
The required formula field (not formfield) would be encoded along the lines of:
{=twodogscooter*{={IF{REF Dropdown1}= "Y*" 10 0}+{IF{REF Dropdown2}= "Y*" 10 0}+{IF{REF Dropdown3}= "Y*" 10 0}} \# 0} Note: The field brace pairs (i.e. '{ }') for the above example are all created in the document itself, via Ctrl-F9 (Cmd-F9 on a Mac); you can't simply type them or copy & paste them from this message. Nor is it practical to add them via any of the standard Word dialogues. The spaces represented in the field construction are all required.
__________________
Cheers, Paul Edstein [Fmr MS MVP - Word] |
![]() |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
Checkboxes in cells | kristofferwok | Excel | 0 | 03-24-2015 04:19 AM |
![]() |
smohap | Word | 1 | 06-19-2011 09:24 PM |
![]() |
theresamille699 | Excel | 3 | 04-12-2011 08:08 PM |
Ticking Checkboxes | screid | Word | 1 | 06-08-2010 02:04 AM |
Manipulating checkboxes in XML | Ivo | Word | 0 | 12-06-2005 09:04 AM |