+ Reply to Thread
Results 1 to 7 of 7

Thread: Button to add/decrease value to a number of cells

  1. #1
    Registered User
    Join Date
    10-07-2010
    Location
    Kuala Lumpur, Malaysia
    MS-Off Ver
    Excel 2003
    Posts
    6

    Button to add/decrease value to a number of cells

    I'm trying to include two buttons to an Excel sheet - an UP button and a DOWN. These buttons will increase (or decrease) another column of cells (for eg. A1, B3, C7...) by increments of 0.1 on each click.

    These cells (A1, B3, C7... as above) will also have an IF function corresponding to a drop down list (=IF(A100="Shirt",10,"") In other words, a they will have a BASE number once an item is slected from the drop down list. I want to increase/dcrease these numbers by 0.1 when I click the UP and DOWN buttons.

    I'm using Excel 2003 if it helps. Thank you very much for any help you can provide.
    Last edited by CruiseControl; 10-12-2010 at 07:17 AM.

  2. #2
    Forum Guru TMShucks's Avatar
    Join Date
    07-15-2010
    Location
    Manchester, England
    MS-Off Ver
    MSO 2003 & 2007
    Posts
    6,228

    Re: Button to add/decrease value to a number of cells

    A cell has a value (number, text, whatever) or a formula in it. It can't have both.

    If you have a value in it, you could have buttons to increase it or decrease it.

    The only way that I can think of that you can do this is to have a separate cell, which your formula has a dependency on, that you increase or decrease.

    Why do you want to do this?

    Regards

  3. #3
    Registered User
    Join Date
    10-07-2010
    Location
    Kuala Lumpur, Malaysia
    MS-Off Ver
    Excel 2003
    Posts
    6

    Re: Button to add/decrease value to a number of cells

    Hi TMShucks, thanks for replying.

    I didn't know you couldn't have both a value and formula in a cell. Thanks for pointing that out.

    Back story:
    - I've got 3 items to sell: Shirt, Pants & Watch - across 10 states.
    - Each item has a minimum BUT different rate of sale across each state.
    - I want to set a minimum sales amount in State A for Shirt (hence the DropDown List and =IF(DropDownList="Shirt",10,IF(DropDownList="Pants",5)
    - With this minimum sales amount, I want to increase/decrease that number to set a sales Target for that specific State.

    I hope I'm making sense And again, thank you for your response.

  4. #4
    Forum Guru TMShucks's Avatar
    Join Date
    07-15-2010
    Location
    Manchester, England
    MS-Off Ver
    MSO 2003 & 2007
    Posts
    6,228

    Re: Button to add/decrease value to a number of cells

    I'd be inclined to have a matrix with the 10 states across the top and the products down the left column. I'd include the base price for each product and increments for each state.

    In the example attached, the increments are simple numbers but you could make them percentage increases.

    If you name each State column and each Product row, you can have a simple formula, for example,
    =StateA Watch

    Even if you don't choose that, with the matrix, you could have two drop down boxes, one for product and one for state, and use something like SUMPRODUCT or INDEX/MATCH.

    Regards
    Attached Files Attached Files

  5. #5
    Forum Guru TMShucks's Avatar
    Join Date
    07-15-2010
    Location
    Manchester, England
    MS-Off Ver
    MSO 2003 & 2007
    Posts
    6,228

    Re: Button to add/decrease value to a number of cells

    Same example with drop down boxes

    Regards
    Attached Files Attached Files

  6. #6
    Registered User
    Join Date
    10-07-2010
    Location
    Kuala Lumpur, Malaysia
    MS-Off Ver
    Excel 2003
    Posts
    6

    Re: Button to add/decrease value to a number of cells

    TMShucks, thank you for responding! It is much appreciated. I used the matrix you mentioned and added Spinner Buttons for fine tuning the sales figure for each state.

    I've attached my Excel sheet which I finally came up with.

    You've been a great help! Thanks again.
    Attached Files Attached Files

  7. #7
    Forum Guru TMShucks's Avatar
    Join Date
    07-15-2010
    Location
    Manchester, England
    MS-Off Ver
    MSO 2003 & 2007
    Posts
    6,228

    Re: Button to add/decrease value to a number of cells

    You're welcome. Thanks for the feedback.

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Tags for this Thread

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.2.0