+ Reply to Thread
Results 1 to 3 of 3

Want to make A1=(A1+B1)

  1. #1
    Registered User
    Join Date
    01-12-2020
    Location
    Philadelphia, PA
    MS-Off Ver
    2016
    Posts
    97

    Want to make A1=(A1+B1)

    I thought this would be simple, but it's creating a circular reference.

    I have series of cells, and I want to create a macro so that when I hit a key, it will update a "Total" cell. Almost like a calculator. For instance, to make it simple...

    Today
    A1 = 4

    All-Time Total
    A2 = (Running total of all A1 contents)

    What I want to do is, like the Equal button on a calculator, update A2 with a formula like "A2=A2+A1" and once it's been added, then change A1 to 0.
    The only way I can think of doing this would be keep a log for every day, and just do something like A2=SUM(A1:Z1). This would be quite cumbersome for me.
    I was thinking of of creating a macro and doing something like A3=A1+A2, and then copying the contents from A3 to A2, but that's giving me an error.

    Any ideas? Thanks for reading.

  2. #2
    Forum Guru
    Join Date
    02-27-2016
    Location
    Vietnam
    MS-Off Ver
    2024
    Posts
    6,179

    Re: Want to make A1=(A1+B1)

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

  3. #3
    Registered User
    Join Date
    01-12-2020
    Location
    Philadelphia, PA
    MS-Off Ver
    2016
    Posts
    97

    Re: Want to make A1=(A1+B1)

    I _REALLY_ need to learn Visual BASIC. I know how to do what I want to do in BASIC, but that language is deader than Latin. Thanks!

+ 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. Replies: 1
    Last Post: 10-03-2019, 04:35 PM
  2. Replies: 6
    Last Post: 07-19-2018, 02:23 AM
  3. Replies: 8
    Last Post: 11-08-2013, 07:46 AM
  4. trying to make a button on summary page to make new working sheet
    By dbzisme in forum Excel Programming / VBA / Macros
    Replies: 14
    Last Post: 04-07-2013, 05:41 PM
  5. Replies: 0
    Last Post: 03-08-2013, 06:34 AM
  6. Replies: 7
    Last Post: 12-27-2012, 10:53 PM
  7. [SOLVED] make macros usable! make instructions in plain english !!!!
    By Brainless_in_Boston in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 03-02-2006, 11:30 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