+ Reply to Thread
Results 1 to 9 of 9

Using a cell for adding numbers to a different cell

  1. #1
    Registered User
    Join Date
    01-12-2016
    Location
    norway
    MS-Off Ver
    2010
    Posts
    11

    Using a cell for adding numbers to a different cell

    Lets say that i want to use cell C3 to enter for an example 5 minutes, and then excel adds the amount i put into cell C3 to cell E5, and clears cell C3, and whenever i put a new number into cell C3 it takes that number and put on top of what i already have on cell E5.
    If i need a button to do this its okay, but automaticly would be fine

  2. #2
    Forum Moderator alansidman's Avatar
    Join Date
    02-02-2010
    Location
    Steamboat Springs, CO
    MS-Off Ver
    MS Office 365 Version 2404 Win 11 Home 64 Bit
    Posts
    23,865

    Re: Using a cell for adding numbers to a different cell

    Perhaps this:
    Please Login or Register  to view this content.
    Alan עַם יִשְׂרָאֵל חַי


    Change an Ugly Report with Power Query
    Database Normalization
    Complete Guide to Power Query
    Man's Mind Stretched to New Dimensions Never Returns to Its Original Form

  3. #3
    Registered User
    Join Date
    01-12-2016
    Location
    norway
    MS-Off Ver
    2010
    Posts
    11

    Re: Using a cell for adding numbers to a different cell

    how do i add this in the worksheet?

  4. #4
    Forum Moderator alansidman's Avatar
    Join Date
    02-02-2010
    Location
    Steamboat Springs, CO
    MS-Off Ver
    MS Office 365 Version 2404 Win 11 Home 64 Bit
    Posts
    23,865

    Re: Using a cell for adding numbers to a different cell

    How to install your new code
    1. Copy the Excel VBA code
    2. Select the workbook in which you want to store the Excel VBA code
    3. Press Alt+F11 to open the Visual Basic Editor
    4. Choose Insert > Module
    5. Edit > Paste the macro into the module that appeared
    6. Close the VBEditor
    7. Save your workbook (Excel 2007+ select a macro-enabled file format, like *.xlsm)

    To run the Excel VBA code:
    1. Press Alt-F8 to open the macro list
    2. Select a macro in the list
    3. Click the Run button

  5. #5
    Registered User
    Join Date
    01-12-2016
    Location
    norway
    MS-Off Ver
    2010
    Posts
    11

    Re: Using a cell for adding numbers to a different cell

    seem to have done all this but cant get it to work

  6. #6
    Registered User
    Join Date
    01-12-2016
    Location
    norway
    MS-Off Ver
    2010
    Posts
    11

    Re: Using a cell for adding numbers to a different cell

    Got it working! Thanks! but is there anyway it can do it automaticly? so i dont need to go back and press al+enter in the cell ?

  7. #7
    Forum Moderator alansidman's Avatar
    Join Date
    02-02-2010
    Location
    Steamboat Springs, CO
    MS-Off Ver
    MS Office 365 Version 2404 Win 11 Home 64 Bit
    Posts
    23,865

    Re: Using a cell for adding numbers to a different cell

    Yes. A slight change in the code as below. Open the VBE and place this code in the worksheet event. (Double click on the sheet that you want this to work in). Paste the code in the window that opens to the right.

    Please Login or Register  to view this content.

  8. #8
    Registered User
    Join Date
    01-12-2016
    Location
    norway
    MS-Off Ver
    2010
    Posts
    11

    Re: Using a cell for adding numbers to a different cell

    got it working now! think i understand more of how it works, but, how can i get these on to more rows? for anexample what put into D6 would go into C6 and D7 into C7, D8 into C8 and so on

  9. #9
    Forum Moderator alansidman's Avatar
    Join Date
    02-02-2010
    Location
    Steamboat Springs, CO
    MS-Off Ver
    MS Office 365 Version 2404 Win 11 Home 64 Bit
    Posts
    23,865

    Re: Using a cell for adding numbers to a different cell

    Try this and change the ranges as necessary

    Please Login or Register  to view this content.

+ 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] Adding numbers in the same cell
    By JimLau in forum Excel Formulas & Functions
    Replies: 9
    Last Post: 09-27-2012, 11:10 PM
  2. Adding up numbers that are in one cell
    By Shoubakka in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 01-04-2011, 04:51 AM
  3. Adding numbers to cell references in formula, rather than cell values
    By stanja in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 08-30-2009, 07:41 PM
  4. Adding numbers to cell reference instead of cell value
    By xxpinay in forum Excel General
    Replies: 4
    Last Post: 08-18-2009, 09:55 PM
  5. adding and subtracting numbers within the same cell
    By Newman100 in forum Excel General
    Replies: 6
    Last Post: 02-07-2009, 07:29 PM
  6. adding numbers in a single cell as a running total in that cell ?
    By jlg371 in forum Excel - New Users/Basics
    Replies: 9
    Last Post: 02-01-2009, 08:40 PM
  7. Replies: 4
    Last Post: 11-16-2008, 05:48 PM
  8. [SOLVED] Adding numbers in one cell and showing total in seperate cell
    By Deernad Construction in forum Excel General
    Replies: 12
    Last Post: 11-29-2005, 03:35 PM

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