+ Reply to Thread
Results 1 to 11 of 11

Adding Spin Button Count to another cell

  1. #1
    Registered User
    Join Date
    06-20-2016
    Location
    Houston
    MS-Off Ver
    2010
    Posts
    73

    Adding Spin Button Count to another cell

    Hello everyone! I am 100% new here, so bare with me as I try to navigate the forum. I have been struggling to solve an issue and I thought maybe some of you all might be of some help.

    I am creating a "Basketball Box Score" -- if you are not familiar with it, it just keeps track of each player's statistics throughout a game (shot attempts, rebounds, points, steals, etc). My issue is with the "Made Shot attempts" (or field goals) and "Total Shot Attempts". What I want is to have a spin button for both cells, but for the TOTAL shot attempts to go up by one if I click on either spin button. As a game is played, sometimes multiple shots are put up in a matter of seconds, and it would be easier to just hit one spin button for a made shot than having to click both.

    The way it's pictured in my mind is that the total shot attempts has it's own value increasing by one, and that value is summed with the value in the made shot attempts box. The problem is, I can't find a way to do this without creating a third cell -- for MISSED shot attempts, for instance. But the problem with that is I don't have space for it, and if I create it on another sheet I'd have to go to that sheet each time if I wanted to clear the box score, which would be ideal.

    Is there anything I can do to combine these two spin button values in a single cell?

  2. #2
    Forum Expert Tony Valko's Avatar
    Join Date
    12-31-2011
    Location
    Pittsburgh
    MS-Off Ver
    2002, 2007:2013
    Posts
    18,890

    Re: Adding Spin Button Count to another cell

    You have each spinner linked to separate cells?

    Then just sum both linked cells...

    =A1+B1
    Biff
    Microsoft MVP Excel
    Keep It Simple Stupid

    Let's Go Pens. We Want The Cup.

  3. #3
    Registered User
    Join Date
    06-20-2016
    Location
    Houston
    MS-Off Ver
    2010
    Posts
    73

    Re: Adding Spin Button Count to another cell

    Thanks for responding. There is a spinner for two separate cells, but adding them as you suggested would require a third cell.

    I'm trying to avoid a third cell. So for instance there is a spinner for A1 and B1, and in B1 I want it to increase by 1 when I click either spinner.

  4. #4
    Forum Expert Tony Valko's Avatar
    Join Date
    12-31-2011
    Location
    Pittsburgh
    MS-Off Ver
    2002, 2007:2013
    Posts
    18,890

    Re: Adding Spin Button Count to another cell

    I think you'd need VBA code to do that.

    I'm not much of a programmer so I can't help.

  5. #5
    Registered User
    Join Date
    06-20-2016
    Location
    Houston
    MS-Off Ver
    2010
    Posts
    73

    Re: Adding Spin Button Count to another cell

    Hmmm I'm not familiar VBA codes. Can you point me in the direction where I might find more information about it?

  6. #6
    Forum Expert Tony Valko's Avatar
    Join Date
    12-31-2011
    Location
    Pittsburgh
    MS-Off Ver
    2002, 2007:2013
    Posts
    18,890

    Re: Adding Spin Button Count to another cell

    I didn't know this was possible but I just tried it...

    You can link both spinners to the same cell!

    Will that do what you want?

  7. #7
    Registered User
    Join Date
    06-20-2016
    Location
    Houston
    MS-Off Ver
    2010
    Posts
    73

    Re: Adding Spin Button Count to another cell

    That helps! I just tried it now too, since you mentioned it. Can you also make a single spinner apply to two cells? If I can get the A1 spinner to apply to A1 and B1, and then have another spinner for B1, that would solve it.

    Do you know if that's possible?

  8. #8
    Forum Expert Tony Valko's Avatar
    Join Date
    12-31-2011
    Location
    Pittsburgh
    MS-Off Ver
    2002, 2007:2013
    Posts
    18,890

    Re: Adding Spin Button Count to another cell

    Quote Originally Posted by nitro22888 View Post
    Can you also make a single spinner apply to two cells?
    You can link to one cell and put a formula in the other cell...

    A1 = linked cell

    B1: =A1

  9. #9
    Registered User
    Join Date
    06-20-2016
    Location
    Houston
    MS-Off Ver
    2010
    Posts
    73

    Re: Adding Spin Button Count to another cell

    Well the problem with using a formula is, since there's a spinner on B1 it won't let you also have a formula in B1. Once you click the spinner it overrides the formula.

    Your suggestion of linking 2 spinners to one cell is great. I just need one of the 2 spinners to apply to a second cell to make it work.


    Capture.PNG


    That's a picture of how it works. The spinner in cell 1 has to apply to both, while the spinner in cell 2 still working for that cell. A formula will just get overridden if a spinner is used, so I gotta do it another way.

    Logically it seems really simple, but excel seems to have made it difficult to have one spinner count in 2 cells. I know there's a way, I just haven't found it yet.

  10. #10
    Forum Expert Tony Valko's Avatar
    Join Date
    12-31-2011
    Location
    Pittsburgh
    MS-Off Ver
    2002, 2007:2013
    Posts
    18,890

    Re: Adding Spin Button Count to another cell

    Well, I'm out of suggestions!

    Try posting in the Excel Programming / VBA / Macros forum. Include a link to this thread so folks can see what has already been discussed.

  11. #11
    Registered User
    Join Date
    06-20-2016
    Location
    Houston
    MS-Off Ver
    2010
    Posts
    73

    Re: Adding Spin Button Count to another cell

    Alright, thanks for the suggestions!

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. ActiveX Control Spin Button Copy Button and Change Cell reference?
    By chrstphrbllngs in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 05-22-2016, 04:01 PM
  2. Changing the cell reference for a spin button
    By eekbubble in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 12-05-2014, 09:51 AM
  3. [SOLVED] Help with Spin Button. Set Spin button starting value based on a text box value
    By etuckram in forum Excel Programming / VBA / Macros
    Replies: 8
    Last Post: 09-18-2014, 10:05 AM
  4. Spin Button variable linked cell
    By Ozzmatron in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 10-18-2013, 11:29 PM
  5. Spin button link to another cell
    By jnick in forum Excel Programming / VBA / Macros
    Replies: 13
    Last Post: 09-26-2012, 11:38 AM
  6. Spin Button will not link to cell
    By elliotl in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 08-20-2009, 03:10 PM
  7. Spin Button:spin cells A7
    By ice in forum Excel General
    Replies: 1
    Last Post: 03-16-2007, 02:23 PM

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