+ Reply to Thread
Results 1 to 9 of 9

Direct Increment

  1. #1
    Registered User
    Join Date
    11-27-2020
    Location
    Libreville
    MS-Off Ver
    Office 10
    Posts
    42

    Direct Increment

    Hi All,

    I hope you are all doing fine. I have a problem. I don't know if anyone can help me with it. It is something that I may call Direct Increment. Actually, I have two cells, B2 and C2. I use B2 to enter figures every day. But I would like cell C2 to directly sum up the newly entered figure in B2 and the old figure of C2. That way C2's figure changes automatically to add the figure typed into B2. So, if I had 17 in C2, once I enter 2 into B2, C2 returns 19.

    Is this possible?
    Attached Files Attached Files
    Last edited by Joe.Mintsa; 02-22-2024 at 06:26 PM.

  2. #2
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    44,447

    Re: Direct Increment

    Is this possible?
    Only with VBA. And even then, I wouldn't recommend it. There would be no audit trail and you would have no way of knowing if you have entered a value more than once, or not at all.
    Trevor Shuttleworth - Retired Excel/VBA Consultant

    I dream of a better world where chickens can cross the road without having their motives questioned

    'Being unapologetic means never having to say you're sorry' John Cooper Clarke


  3. #3
    Registered User
    Join Date
    11-27-2020
    Location
    Libreville
    MS-Off Ver
    Office 10
    Posts
    42

    Re: Direct Increment

    This is absolutely understandable. I can see it myself. However, I would really like to know whether this is really doable, and how, even if I end up realizing how unpractical it may be to use it. Please...

  4. #4
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    44,447

    Re: Direct Increment

    Yes, it's possible. But only with VBA using a Worksheet Change Event handler monitoring cell B2. When cell B2 changes, the Event handler will fire and can add the contents of cell B2 to cell C2 and then clear cell B2.

  5. #5
    Forum Guru
    Join Date
    03-02-2006
    Location
    Los Angeles, Ca
    MS-Off Ver
    WinXP/MSO2007;Win10/MSO2016
    Posts
    12,612

    Re: Direct Increment

    Please Login or Register  to view this content.
    Attached Files Attached Files
    Ben Van Johnson

  6. #6
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    44,447

    Re: Direct Increment

    With a bit more error checking ...

    Please Login or Register  to view this content.
    Attached Files Attached Files

  7. #7
    Registered User
    Join Date
    11-27-2020
    Location
    Libreville
    MS-Off Ver
    Office 10
    Posts
    42

    Re: Direct Increment

    Mate, this is SMASHING. So simple, but so efficient. Thanks a lot; really thanks.

  8. #8
    Registered User
    Join Date
    11-27-2020
    Location
    Libreville
    MS-Off Ver
    Office 10
    Posts
    42

    Re: Direct Increment

    It is solved. Thanks a lot Mate.

  9. #9
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,869

    Re: Direct Increment

    If that takes care of your original question, please choose Thread Tools from the menu link above and mark this thread as SOLVED.

    Also, if you have not already done so, remember that you can thank anyone who offered you help towards a solution for your issue by clicking the small star icon (* Add Reputation) located in the lower left corner of the post in which the help was given. By doing so you can add to the reputation(s) of each of those who offered help.
    Ali


    Enthusiastic self-taught user of MS Excel who's always learning!
    Don't forget to say "thank you" in your thread to anyone who has offered you help.
    You can reward them by clicking on * Add Reputation below their user name on the left, if you wish.

    Forum Rules (updated August 2023): please read them here.

+ 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. Increment by 1 if email is send else no increment.
    By A9kurs in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 05-03-2021, 01:25 PM
  2. Replies: 3
    Last Post: 02-14-2014, 01:09 AM
  3. Replies: 2
    Last Post: 09-19-2013, 09:06 AM
  4. [SOLVED] Control Button to increment by 1 and then select next cell in row to increment that cell
    By rammergu in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 09-19-2012, 07:35 PM
  5. direct link
    By mohan.r1980 in forum Excel General
    Replies: 1
    Last Post: 11-17-2010, 04:21 AM
  6. VBA print direct
    By OptionTrader in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 02-05-2010, 10:48 PM
  7. Increment/Increment letter in alphabetical order
    By Neil Goldwasser in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 01-25-2006, 05:10 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