+ Reply to Thread
Results 1 to 13 of 13

Input number which is then added to bottom of a column and cell is reset to blank

  1. #1
    Registered User
    Join Date
    10-18-2013
    Location
    Ca, USA
    MS-Off Ver
    Excel 2010
    Posts
    25

    Input number which is then added to bottom of a column and cell is reset to blank

    I want to input a number and it then subtracts the last number in a column from the number I inputted. The result is placed in a another cell and the number I inputted is put into the new last cell at the bottom of the column. The cell I originally input the number into is then made blank again, waiting for the next input
    Last edited by CFT Brian; 10-18-2013 at 02:28 PM. Reason: incomplete

  2. #2
    Forum Expert
    Join Date
    06-12-2012
    Location
    Ridgefield Park, New Jersey
    MS-Off Ver
    Excel 2003,2007,2010
    Posts
    10,241

    Re: Input number which is then added to bottom of a column and cell is reset to blank

    This may get you started. The input cell is A1, result cell is C1. The Column is B.

    Please Login or Register  to view this content.

  3. #3
    Registered User
    Join Date
    10-18-2013
    Location
    Ca, USA
    MS-Off Ver
    Excel 2010
    Posts
    25

    Re: Input number which is then added to bottom of a column and cell is reset to blank

    this looks like its maybe VBA?? I don't know how to use what you've given me.

    what I had done was

    =lookup(9.99+307,1/($a$1:$a$500<>""),$a$1:$a$500)

    this gave me the last number I inputted, but I don't understand how to use what you've sent

  4. #4
    Forum Expert
    Join Date
    06-12-2012
    Location
    Ridgefield Park, New Jersey
    MS-Off Ver
    Excel 2003,2007,2010
    Posts
    10,241

    Re: Input number which is then added to bottom of a column and cell is reset to blank

    I'm sorry I though you were looking for a VBA approach.

  5. #5
    Registered User
    Join Date
    10-18-2013
    Location
    Ca, USA
    MS-Off Ver
    Excel 2010
    Posts
    25

    Re: Input number which is then added to bottom of a column and cell is reset to blank

    I am if someone will give me the basics of how to use it.

  6. #6
    Forum Moderator alansidman's Avatar
    Join Date
    02-02-2010
    Location
    Steamboat Springs, CO
    MS-Off Ver
    MS Office 365 insider Version 2506 Win 11
    Posts
    24,785

    Re: Input number which is then added to bottom of a column and cell is reset to blank

    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. Click on the worksheet you wish this to work in in the left window
    5. Edit > Paste the VBA code into the right window
    6. Close the VBEditor
    7. Save your workbook (Excel 2007+ select a macro-enabled file format, like *.xlsm)

    This should automatically run on the worksheet change that John has in his code.
    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

  7. #7
    Registered User
    Join Date
    10-18-2013
    Location
    Ca, USA
    MS-Off Ver
    Excel 2010
    Posts
    25

    Re: Input number which is then added to bottom of a column and cell is reset to blank

    don't have a f11, using a surface pro

  8. #8
    Forum Expert
    Join Date
    06-12-2012
    Location
    Ridgefield Park, New Jersey
    MS-Off Ver
    Excel 2003,2007,2010
    Posts
    10,241

    Re: Input number which is then added to bottom of a column and cell is reset to blank

    Can you attach the file or a sample? To attach a file, push the button with the paperclip (or scroll down to the Manage Attachments button), browse to the required file, and then push the Upload button.

  9. #9
    Forum Moderator alansidman's Avatar
    Join Date
    02-02-2010
    Location
    Steamboat Springs, CO
    MS-Off Ver
    MS Office 365 insider Version 2506 Win 11
    Posts
    24,785

    Re: Input number which is then added to bottom of a column and cell is reset to blank

    Don't know anything about Surface Pro.

    Suggest you google opening a VBA window on your type machine.

  10. #10
    Forum Expert
    Join Date
    06-12-2012
    Location
    Ridgefield Park, New Jersey
    MS-Off Ver
    Excel 2003,2007,2010
    Posts
    10,241

    Re: Input number which is then added to bottom of a column and cell is reset to blank

    I have no idea what surface pro is either.

  11. #11
    Registered User
    Join Date
    10-18-2013
    Location
    Ca, USA
    MS-Off Ver
    Excel 2010
    Posts
    25

    Re: Input number which is then added to bottom of a column and cell is reset to blank

    ok working on my desktop now. Opened Microsoft Visual Basic -Book 1 .

    Nothing inside editor is open to paste into. tried looking for 'New' under file but not there either.

  12. #12
    Registered User
    Join Date
    10-18-2013
    Location
    Ca, USA
    MS-Off Ver
    Excel 2010
    Posts
    25

    Re: Input number which is then added to bottom of a column and cell is reset to blank

    FYI Surface Pro is new desktop/laptop by Microsoft. Powerful like a desktop fully functional but portable.

  13. #13
    Forum Expert
    Join Date
    06-12-2012
    Location
    Ridgefield Park, New Jersey
    MS-Off Ver
    Excel 2003,2007,2010
    Posts
    10,241

    Re: Input number which is then added to bottom of a column and cell is reset to blank

    If you are in the VBA Editor then over too the left hand side you will see the Workbook Name with some sheet names listed below. Select the sheet that you wish the code to operate on. There will be a dropdown now on the right side Choose Worksheet from the left and Change from the right. The code goes there. However, I think it will have to be modified. You have not specified the input, result and the Column. I only used a sample. I have to go offline now. If you don't get the solution you are after, I'll be glad to help you when I come back on.

+ 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: 6
    Last Post: 05-01-2013, 04:33 PM
  2. [SOLVED] User input to go to next blank cell in column
    By MileHiMark in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 03-12-2013, 09:08 PM
  3. [SOLVED] input date column A, increment B, select blank cell in D and input time. in a macro
    By jeffstu in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 09-19-2012, 11:19 AM
  4. [SOLVED] If I apply formula to my column can the cell be blank until data is added?
    By KELLIS in forum Excel - New Users/Basics
    Replies: 4
    Last Post: 08-01-2012, 03:39 PM
  5. [SOLVED] Count Column blank entries, reset after entry in cell
    By Sedge in forum Excel General
    Replies: 4
    Last Post: 01-27-2011, 02:27 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