Microsoft Office Forums

Go Back   Microsoft Office Forums > >

Reply
 
Thread Tools Display Modes
  #1  
Old 03-03-2017, 01:01 AM
Miricleman Miricleman is offline Using CheckBoxes in a Calculation Windows 10 Using CheckBoxes in a Calculation Office 2007
Novice
Using CheckBoxes in a Calculation
 
Join Date: Mar 2017
Posts: 3
Miricleman is on a distinguished road
Default Using CheckBoxes in a Calculation

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?
Attached Images
File Type: jpg Entry with Check Boxes.JPG (23.1 KB, 21 views)
Reply With Quote
  #2  
Old 03-05-2017, 01:31 AM
Miricleman Miricleman is offline Using CheckBoxes in a Calculation Windows 10 Using CheckBoxes in a Calculation Office 2007
Novice
Using CheckBoxes in a Calculation
 
Join Date: Mar 2017
Posts: 3
Miricleman is on a distinguished road
Default

Please someone put me out of my Misery...... Is this at all Possible or is there another solution???
Reply With Quote
  #3  
Old 03-05-2017, 02:09 PM
macropod's Avatar
macropod macropod is online now Using CheckBoxes in a Calculation Windows 7 64bit Using CheckBoxes in a Calculation Office 2010 32bit
Administrator
 
Join Date: Dec 2010
Location: Canberra, Australia
Posts: 22,355
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

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]
Reply With Quote
  #4  
Old 03-07-2017, 01:04 AM
Miricleman Miricleman is offline Using CheckBoxes in a Calculation Windows 10 Using CheckBoxes in a Calculation Office 2007
Novice
Using CheckBoxes in a Calculation
 
Join Date: Mar 2017
Posts: 3
Miricleman is on a distinguished road
Default

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
Reply With Quote
  #5  
Old 03-07-2017, 03:37 AM
macropod's Avatar
macropod macropod is online now Using CheckBoxes in a Calculation Windows 7 64bit Using CheckBoxes in a Calculation Office 2010 32bit
Administrator
 
Join Date: Dec 2010
Location: Canberra, Australia
Posts: 22,355
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

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]
Reply With Quote
Reply



Similar Threads
Thread Thread Starter Forum Replies Last Post
Checkboxes in cells kristofferwok Excel 0 03-24-2015 04:19 AM
Using CheckBoxes in a Calculation checkboxes smohap Word 1 06-19-2011 09:24 PM
Using CheckBoxes in a Calculation Excel Checkboxes 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

Other Forums: Access Forums

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