+ Reply to Thread
Results 1 to 10 of 10

How can I add more data to existing cells without replacing it

  1. #1
    Forum Contributor
    Join Date
    01-07-2015
    Location
    Mid Wales, UK
    MS-Off Ver
    Office 2003
    Posts
    115

    How can I add more data to existing cells without replacing it

    Hello all,

    I hope in the correct area with this post.

    How can I easily add successive values to a cell which already contains a value, always keeping the previous value to add to?

    Ideally it would be good if I could just type in a value to the cell so that it adds to the previous value.

    I would need to apply this to all cells in every column (from column B) down to row 1000.

    Thanks Hawkmoth 1
    Last edited by Hawkmoth1; 07-28-2017 at 11:14 AM.

  2. #2
    Forum Expert CK76's Avatar
    Join Date
    06-16-2015
    Location
    ONT, Canada
    MS-Off Ver
    MS365 Apps for enterprise
    Posts
    5,973

    Re: How can I add more data to existing cells without replacing it

    You'd concatenate additional value to existing cell value. You can do it via InputBox, cell range, array etc.

    Ex.
    Please Login or Register  to view this content.
    But if you are going to type it in... then just double click on the cell and add your value to end of existing value...
    No need for VBA.
    "Progress isn't made by early risers. It's made by lazy men trying to find easier ways to do something."
    ― Robert A. Heinlein

  3. #3
    Forum Contributor
    Join Date
    01-07-2015
    Location
    Mid Wales, UK
    MS-Off Ver
    Office 2003
    Posts
    115

    Re: How can I add more data to existing cells without replacing it

    Hello CK76,

    Thanks very much for your help, but I'm afraid I'm not very keyed up with the technical side of things here - are you able to please tell me in simple terms what I should actually do to achieve my goal, thanks?

    Hawkmoth 1

  4. #4
    Forum Expert CK76's Avatar
    Join Date
    06-16-2015
    Location
    ONT, Canada
    MS-Off Ver
    MS365 Apps for enterprise
    Posts
    5,973

    Re: How can I add more data to existing cells without replacing it

    Upload sample workbook with your data set (sanitized) and your expected output from your operation.

    What's the purpose of the procedure and how the data may be used later.

  5. #5
    Forum Contributor
    Join Date
    01-07-2015
    Location
    Mid Wales, UK
    MS-Off Ver
    Office 2003
    Posts
    115

    Re: How can I add more data to existing cells without replacing it

    OK, actually what I need this for is very simple - I shall be creating a list of moth species (as they are recorded) in column A, then column B will have a date, e.g. the 1st. August, to which I will be adding values against each species as they are recorded. The next column will have the next date in it and so on. I may well need to add a several values against the same species on the same date. It would be good if this could be done as far down as row 1000 to accommodate a very long list of species as they are added, thanks

    Example shown on the attached file shows example values against each species - please use any values you wish to for testing purposes.

    Hawkmoth 1

  6. #6
    Forum Expert CK76's Avatar
    Join Date
    06-16-2015
    Location
    ONT, Canada
    MS-Off Ver
    MS365 Apps for enterprise
    Posts
    5,973

    Re: How can I add more data to existing cells without replacing it

    Here, try this. Note that it will only activate upon double clicking on single cell. Otherwise, you can delete or update as usual.

    Please Login or Register  to view this content.
    Above goes into "Sheet1" worksheet module. See attached.

  7. #7
    Forum Contributor
    Join Date
    01-07-2015
    Location
    Mid Wales, UK
    MS-Off Ver
    Office 2003
    Posts
    115

    Re: How can I add more data to existing cells without replacing it

    Hello CK76,

    Thanks for this, but it's not quite giving me what I require.

    When I double click on a cell and enter subsequent value the cell is showing all the individual values entered. I need the cell to show the total of all the individual values each time a subsequent value is entered.

    Hawkmoth 1

  8. #8
    Forum Expert CK76's Avatar
    Join Date
    06-16-2015
    Location
    ONT, Canada
    MS-Off Ver
    MS365 Apps for enterprise
    Posts
    5,973

    Re: How can I add more data to existing cells without replacing it

    Then just change code to below. This assumes only numeric values are contained in the range.

    Please Login or Register  to view this content.

  9. #9
    Forum Contributor
    Join Date
    01-07-2015
    Location
    Mid Wales, UK
    MS-Off Ver
    Office 2003
    Posts
    115

    Re: How can I add more data to existing cells without replacing it

    Hello CK76 - many thanks indeed, this has done the job just right.

    I add your reputation and also the 'post as solved'.

    Hawkmoth 1

  10. #10
    Forum Expert CK76's Avatar
    Join Date
    06-16-2015
    Location
    ONT, Canada
    MS-Off Ver
    MS365 Apps for enterprise
    Posts
    5,973

    Re: How can I add more data to existing cells without replacing it

    You are welcome

+ 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: 05-29-2014, 11:02 AM
  2. [SOLVED] Matching Data between Files , Replacing Existing Data
    By nem_vdoxx in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 05-17-2013, 12:41 PM
  3. [SOLVED] VBA code not replacing existing data?
    By matrixpom in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 02-07-2013, 04:47 PM
  4. Replacing the existing Data of workbooks on splitting Data in a Master workbook
    By anchuri_chaitanya in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 07-04-2012, 11:59 AM
  5. Macro to update database without replacing existing data
    By kayoke in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 06-11-2012, 04:33 AM
  6. Code to copy, paste without replacing the existing data
    By share knowledge in forum Excel Programming / VBA / Macros
    Replies: 18
    Last Post: 08-04-2011, 05:50 PM
  7. Import Data and replacing existing file
    By ndenaro in forum Excel General
    Replies: 0
    Last Post: 08-05-2009, 11:41 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