+ Reply to Thread
Results 1 to 5 of 5

A Checkbox Question

  1. #1
    Registered User
    Join Date
    08-05-2009
    Location
    Buffalo, NY
    MS-Off Ver
    Excel 2007
    Posts
    70

    A Checkbox Question

    Hi,
    The attached spreadsheet is a product return form that I am creating. The 4 checkboxes (highlighted in yellow) are to be used if we are to add a restocking fee. Only one checkbox is supposed to be selected at any given time. The checkboxes on the left are irrelevant in this case.

    I pointed the first checkbox to cell O25, which when TRUE, activates the formula in cell K48 (calculates a 15% restocking fee and then deducts it from the return amount).

    My Dilema: If I point the 3 subsequent checkboxes to cell O25, then ALL the checkboxes show a checkmark, even if only one is clicked.

    Can someone one point me in the right direction is to how to make the checkboxes work correclty? I left all the checkboxes pointed to O25; wasn't sure how I should've posted that.

    Thanks
    Rick
    Attached Files Attached Files

  2. #2
    Forum Expert martindwilson's Avatar
    Join Date
    06-23-2007
    Location
    London,England
    MS-Off Ver
    office 97 ,2007
    Posts
    19,320

    Re: A Checkbox Question

    dont point them at the same cell! refer them to diferent cells
    also if you choose option button instead and put them in a group box only one can be selected in that group box at anyone time and the linked cell will change depending on whick button clicked
    Last edited by martindwilson; 08-18-2009 at 01:53 PM.
    "Unless otherwise stated all my comments are directed at OP"

    Mojito connoisseur and now happily retired
    where does code go ?
    look here
    how to insert code

    how to enter array formula

    why use -- in sumproduct
    recommended reading
    wiki Mojito

    how to say no convincingly

    most important thing you need
    Martin Wilson: SPV
    and RSMBC

  3. #3
    Registered User
    Join Date
    08-05-2009
    Location
    Buffalo, NY
    MS-Off Ver
    Excel 2007
    Posts
    70

    Re: A Checkbox Question

    Thank you for the reply.

    I see what you mean about that, but then how does the formula in K48 work? That formula sums and calculates the restocking fee based only on the TRUE/FALSE condition in cell O25.

    If there are 4 different TRUE/FALSE conditions, how does one point to the correct one?

    As far as the Dropdown Box, etc., I'm sort of stuck with this format - long story...

    Thanks
    Rick

  4. #4
    Forum Expert martindwilson's Avatar
    Join Date
    06-23-2007
    Location
    London,England
    MS-Off Ver
    office 97 ,2007
    Posts
    19,320

    Re: A Checkbox Question

    one way
    leave check boxes as they are ,link to 4 different cells then use
    =IF(OR(O25,O26,O27,O28),SUM(K35:K47)*0.015*-1,0)

    or use 5 option buttons grouped
    linked to one cell
    first 4 would be your choice last could be a clear all or not applicable or such and use
    =IF(OR(O25={1,2,3,4}),SUM(K35:K47)*0.015*-1,0)
    Last edited by martindwilson; 08-18-2009 at 03:18 PM.

  5. #5
    Registered User
    Join Date
    08-05-2009
    Location
    Buffalo, NY
    MS-Off Ver
    Excel 2007
    Posts
    70

    Re: A Checkbox Question

    THANK YOU for your help on this, it now works perfectly!

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1