+ Reply to Thread
Results 1 to 5 of 5

change a value in a cell using a checkbox in excel 2010

  1. #1
    Registered User
    Join Date
    11-14-2013
    Location
    ny
    MS-Off Ver
    Excel 2010
    Posts
    2

    change a value in a cell using a checkbox in excel 2010

    I have a value in one table and a checkbox in another. i would like the value to go up by 1 when the box is checked. I want to do something like this:

    =IF(C23,B4=B4+1)

    but excel throws an error. C23 is the checkbox and B4 is the number. Thanks for the help

  2. #2
    Registered User
    Join Date
    10-13-2013
    Location
    China
    MS-Off Ver
    Excel 2011
    Posts
    15

    Re: change a value in a cell using a checkbox in excel 2010

    I think the best bet is to put a check mark somewhere else in the spreadsheet to refer to. So, for example, lets say you put the checkmark in cell A1. Then, your formula (based on what you put on your post) should be

    =if(c23=a1,b4+1,b4)

    Now, if B4=3 and C23 has a checkmark, you should see the value 4 in the cell where you input your formula. If there's no checkmark, the cell with the formula will show the value 3.

  3. #3
    Registered User
    Join Date
    11-14-2013
    Location
    ny
    MS-Off Ver
    Excel 2010
    Posts
    2

    Re: change a value in a cell using a checkbox in excel 2010

    Quote Originally Posted by SamuelMRoth View Post

    =if(c23=a1,b4+1,b4)

    This only changes the cell the formula is in not B4. if i put it in B4 it throws a circular error.

  4. #4
    Valued Forum Contributor wenqq3's Avatar
    Join Date
    04-01-2013
    Location
    Malaysia
    MS-Off Ver
    Excel 2003
    Posts
    868

    Re: change a value in a cell using a checkbox in excel 2010

    Hi skinman ,
    you can't put =IF(C23,B4=B4+1) in cell B4, like what you said is circular error.
    How can formula add formula itself.

    Perhaps how you get the B4's number? If B4 get from another formula from any cell(eg D4), simply let it be =IF(C23,D4+1,D4)
    -If the problem is solved, please mark your thread as Solved: Click Thread Tools above your first post, select "Mark your thread as Solved".

    -Always upload a workbook before start your question
    To attach a file, push the button with the paperclip (or scroll down to the Manage Attachments button), browse to the required file, and then push the Upload button.

    +++ If my answer(s) helped you, please add me reputation by click on * +++

  5. #5
    Registered User
    Join Date
    10-13-2013
    Location
    China
    MS-Off Ver
    Excel 2011
    Posts
    15

    Re: change a value in a cell using a checkbox in excel 2010

    Check Marks.xlsx

    Hello Skinman,
    I've attached a little file I put together that I think accomplishes what you're trying to do. Have a look and let me know.

+ 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. [SOLVED] excel 2010, checkbox macro to change text upon doubleclick of cell?
    By fredderf81 in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 09-13-2013, 02:35 AM
  2. [SOLVED] Excel 2010 and checkbox : very slow ?
    By ilive in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 06-12-2013, 07:32 AM
  3. [SOLVED] 2010 Excel Checkbox Issue
    By tommyfernandez in forum Excel General
    Replies: 5
    Last Post: 03-12-2013, 08:57 PM
  4. Chang font size in a checkbox in excel 2010
    By bgilmore1202 in forum Excel General
    Replies: 1
    Last Post: 02-06-2013, 06:37 PM
  5. Change Excel (2010) Row color per the value in the row-cell using VBA code
    By sandyusa in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 11-19-2012, 09:16 AM

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