+ Reply to Thread
Results 1 to 9 of 9

Adding in ONE cell

  1. #1
    Registered User
    Join Date
    07-22-2011
    Location
    Sydney
    MS-Off Ver
    Excel 2010
    Posts
    38

    Question Adding in ONE cell

    hi guys,

    thanks in advance.

    Short version: I will have have a TOTAL number in A1 and in a different cell (C1) i will be inputting a new number ...
    i want to be able to see the remaining in B1 and continously input the number into C1..
    I was hoping to find a formula from anyone that knows what im talking about.

    the main problem is entering the number into the same cell (C1) each time and seeing the remainder in a different ccell that stays the same (B1)..like a calculator...


    Thanks for the assistance....
    ps. i know i will face the problem of no "paper trail" but i dont really need it.. thanks guys
    Last edited by ngocpdn; 12-12-2011 at 06:01 AM. Reason: typo

  2. #2
    Forum Contributor arlu1201's Avatar
    Join Date
    09-09-2011
    Location
    Bangalore, India
    MS-Off Ver
    Excel 2003 & 2007
    Posts
    19,166

    Re: Sorta continuously Adding in ONE cell.......

    Its simple. Just put =A1-C1 in cell B1. It will keep updating as you change the values in either cell.
    If I have helped, Don't forget to add to my reputation (click on the star below the post)
    Don't forget to mark threads as "Solved" (Thread Tools->Mark thread as Solved)
    Use code tags when posting your VBA code: [code] Your code here [/code]

  3. #3
    Registered User
    Join Date
    07-22-2011
    Location
    Sydney
    MS-Off Ver
    Excel 2010
    Posts
    38

    Re: Sorta continuously Adding in ONE cell.......

    Hi arlu1202

    Thanks heaps for responding ....I was hoping to be able to keep typing into C1 and the remainder showing into B1....but I will be going back a few times a day to add more to C1...

    In essence ..it will act like a calculator ...to tell me how many pieces I have left.I will have multiple rows of data,It will need to do the same functions

    IE:
    A1: 3000
    B1: ____
    C1: 50 ....later 150 ..3..70...etc....

    At each interval B1 changes and gives the remaining amount
    Last edited by ngocpdn; 12-12-2011 at 06:49 AM. Reason: spelling fail

  4. #4
    Forum Contributor arlu1201's Avatar
    Join Date
    09-09-2011
    Location
    Bangalore, India
    MS-Off Ver
    Excel 2003 & 2007
    Posts
    19,166

    Re: Sorta continuously Adding in ONE cell.......

    Yes, the formula that i gave you above will do exactly the same thing.

  5. #5
    Registered User
    Join Date
    07-22-2011
    Location
    Sydney
    MS-Off Ver
    Excel 2010
    Posts
    38

    Re: Sorta continuously Adding in ONE cell.......

    Hey again....

    I think I explained it all wrong....
    C1 will need to consider what I have previously entered into it and give the renaming ..

    Using my example above B1 will then say
    2950
    2700
    2797
    2727
    ...etc ..

    Is that even possible to do???
    thanks again

  6. #6
    Forum Expert
    Join Date
    12-23-2006
    Location
    germany
    MS-Off Ver
    XL2003 / 2007 / 2010
    Posts
    6,326

    Re: Sorta continuously Adding in ONE cell.......

    To be on the safe side, posting a sample sheet with what you have and what you need would help

  7. #7
    Registered User
    Join Date
    07-22-2011
    Location
    Sydney
    MS-Off Ver
    Excel 2010
    Posts
    38

    Re: Sorta continuously Adding in ONE cell.......

    Hi again...
    I was pulling my hair out ....Anyways, i found this:

    Private Sub Worksheet_Change(ByVal Target As Excel.Range)
    With Target
    If .Address(False, False) = "A1" Then
    If IsNumeric(.Value) Then
    Application.EnableEvents = False
    Range("B1").Value = Range("B1").Value + .Value
    Application.EnableEvents = True
    End If
    End If
    End With
    End Sub



    Is there a way to make this work for approx 500 different rows? (other than copy/pasting it 500 times? )
    i've attached a worksheet, if possible please have a look and hopefully that makes more sense. Thanks soooooo much
    Attached Files Attached Files
    Last edited by ngocpdn; 12-12-2011 at 08:20 PM. Reason: spelling fail

  8. #8
    Forum Moderator vlady's Avatar
    Join Date
    09-22-2011
    Location
    Philippines - OLSHCO -Guimba-Nueva Ecija
    MS-Off Ver
    2021
    Posts
    4,361

    Re: Sorta continuously Adding in ONE cell.......

    Hello

    Use macro instead on change event, you'll have trouble when entering a value for A1


    Please Login or Register  to view this content.
    i'm just showing your idea..
    up to you to develop further.
    I think people forget the word "THANK YOU!!!!" Do you still know it???

    There is a little star ( ADD REPUTATION ) below those person who helped you. Click it to say your "PRIVATE APPRECIATION TO THEIR EFFORT ON THEIR CONTRIBUTIONS "

    Regards,
    Vladimir

  9. #9
    Forum Expert
    Join Date
    12-23-2006
    Location
    germany
    MS-Off Ver
    XL2003 / 2007 / 2010
    Posts
    6,326

    Re: Adding in ONE cell

    Ngoc

    Your post does not comply with Rule 3 of our Forum RULES. Use code tags around code. Posting code without them makes your code hard to read and difficult to be copied for testing. Highlight your code and click the # at the top of your post window. For more information about these and other tags, found here

+ 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