+ Reply to Thread
Results 1 to 5 of 5

how to increas the value of a cell using specific text or a checkbox from another cell

  1. #1
    Registered User
    Join Date
    02-20-2013
    Location
    Hawaii
    MS-Off Ver
    Excel for Mac (Latest Update)
    Posts
    4

    how to increas the value of a cell using specific text or a checkbox from another cell

    Hello All,

    I have been searching the forums and cant quite find an answer for my question. here is the situation:

    Example: I currently have a value of 10 in A1. I want to add 10 to that given certain criteria. 1: I type specific text into a different cell, or 2: I check a checkbox

    I have tried this:

    Private Sub LIVESCAN_Click()
    If LIVESCAN.Value = True Then
    Range("A1").Value = "=sum(A1,B1)"
    Else
    Range("A1").Value = ""
    End If
    End Sub

    but when I put this code in. It displays nothing in A1 unless I link A1 to the checkbox (named livescan) it just displays "true" when checked and "false" when unchecked.
    I have also tried using SUMIF but I dont understand how to get that to work. If someone could please help with either a VB code or a formula that would be great. Thanks!

  2. #2
    Forum Guru :) Sixthsense :)'s Avatar
    Join Date
    01-01-2012
    Location
    India>Tamilnadu>Chennai
    MS-Off Ver
    2003 To 2010
    Posts
    12,788

    Re: how to increas the value of a cell using specific text or a checkbox from another cell

    Try this...

    Please Login or Register  to view this content.


    If your problem is solved, then please mark the thread as SOLVED>>Above your first post>>Thread Tools>>
    Mark your thread as Solved


    If the suggestion helps you, then Click *below to Add Reputation

  3. #3
    Registered User
    Join Date
    02-20-2013
    Location
    Hawaii
    MS-Off Ver
    Excel for Mac (Latest Update)
    Posts
    4

    Re: how to increas the value of a cell using specific text or a checkbox from another cell

    I tried that and it is still returning nothing nothing in cell A1 unless I link it to that cell and then it just returns a true or false.

  4. #4
    Forum Guru :) Sixthsense :)'s Avatar
    Join Date
    01-01-2012
    Location
    India>Tamilnadu>Chennai
    MS-Off Ver
    2003 To 2010
    Posts
    12,788

    Re: how to increas the value of a cell using specific text or a checkbox from another cell

    Attach a sample workbook for better understanding

    To Attach a File:

    1. Click on Go Advanced
    2. In the frame Attach Files you will see the button Manage Attachments
    3. Click the button.
    4. A new window will open titled Manage Attachments - Excel Forum.
    5. Click the Browse... button to locate your file for uploading.
    6. This will open a new window File Upload.
    7. Once you have located the file to upload click the Open button. This window will close.
    8. You are now back in the Manage Attachments - Excel Forum window.
    9. Click the Upload button and wait until the file has uploaded.
    10. Close the window and then click Submit.

  5. #5
    Registered User
    Join Date
    02-20-2013
    Location
    Hawaii
    MS-Off Ver
    Excel for Mac (Latest Update)
    Posts
    4

    Re: how to increas the value of a cell using specific text or a checkbox from another cell

    RST Packets.xlsx

    Ok Here is the attachment, Basically what I want to do is add checkboxes in the Livescan, Core docs, and SF86 columns. And for example if I were to check a checkbox in the livescan column on row 16 it would change the completion from 10% to 20%. Thats what im trying to do, and have no Idea how to do it. As I mentioned above, the checkbox code in vb only returned a true or false value on a test sheet.

+ 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.6.0 RC 1