+ Reply to Thread
Results 1 to 14 of 14

Auto Add/Append Value on the Same Cell

  1. #1
    Forum Contributor
    Join Date
    04-22-2016
    Location
    Philippines
    MS-Off Ver
    2016 & Office365
    Posts
    139

    Post Auto Add/Append Value on the Same Cell

    Good day everyone...

    Please help me how to make it...
    Example in Column A5:A20 (triggered by macro)
    if i enter value in A5 like "test" then cell value is "test"
    if i enter again on the same cell(A5) with a value like "123" and hit enter key
    then A5 will append previous cell value "test" + current value "123" = output("test;123")
    if ever i need to add again on the same cell(A5) like "123"
    then A5 value become "test;123;123"

  2. #2
    Forum Expert KOKOSEK's Avatar
    Join Date
    08-03-2018
    Location
    Pole in Yorkshire, UK
    MS-Off Ver
    365/2013
    Posts
    2,743

    Re: Auto Add/Append Value on the Same Cell

    Hmm.. in my opinion You have to keep previous value somewhere and add it up after each change.
    I've created something like this.
    Put into worksheet code:

    Please Login or Register  to view this content.
    Happy with my answer * Add Reputation.
    If You are happy with solution, please use Thread tools and mark thread as SOLVED.

  3. #3
    Forum Guru
    Join Date
    02-27-2016
    Location
    Vietnam
    MS-Off Ver
    2016
    Posts
    5,923

    Re: Auto Add/Append Value on the Same Cell

    Try
    Please Login or Register  to view this content.

  4. #4
    Forum Expert KOKOSEK's Avatar
    Join Date
    08-03-2018
    Location
    Pole in Yorkshire, UK
    MS-Off Ver
    365/2013
    Posts
    2,743

    Re: Auto Add/Append Value on the Same Cell

    Quote Originally Posted by Phuocam View Post
    Application.Undo
    Nice trick with it

  5. #5
    Forum Contributor
    Join Date
    04-22-2016
    Location
    Philippines
    MS-Off Ver
    2016 & Office365
    Posts
    139

    Re: Auto Add/Append Value on the Same Cell

    Thanks for quick reply KOKOSEK & Phuocam, both are working...
    can you move the output to the next column instead.
    it seems complicated if on the same cell (i'm sorry for that), because when i tried to press F2(edit)
    it duplicated all previous value too.
    how if target value as entry point and column B as exit point
    so if ever i need to edit only column B will be affected.

  6. #6
    Forum Expert KOKOSEK's Avatar
    Join Date
    08-03-2018
    Location
    Pole in Yorkshire, UK
    MS-Off Ver
    365/2013
    Posts
    2,743

    Re: Auto Add/Append Value on the Same Cell

    In my code change
    Please Login or Register  to view this content.
    into
    Please Login or Register  to view this content.

  7. #7
    Forum Contributor
    Join Date
    04-22-2016
    Location
    Philippines
    MS-Off Ver
    2016 & Office365
    Posts
    139

    Re: Auto Add/Append Value on the Same Cell

    KOKOSEK, can you make the output without ";" on last entry,
    on first entry like "test" = "test"
    second entry like "123" = "test;123"
    it will add ";" only before the new data entered
    and so on...

  8. #8
    Forum Contributor
    Join Date
    04-22-2016
    Location
    Philippines
    MS-Off Ver
    2016 & Office365
    Posts
    139

    Re: Auto Add/Append Value on the Same Cell

    Phuocam, can you make it the same way too?
    your code is working great...
    only i cannot press delete because it will add ";" on last part
    can you make target value as entry point and next column as exit point

  9. #9
    Forum Expert KOKOSEK's Avatar
    Join Date
    08-03-2018
    Location
    Pole in Yorkshire, UK
    MS-Off Ver
    365/2013
    Posts
    2,743

    Re: Auto Add/Append Value on the Same Cell

    Please Login or Register  to view this content.

  10. #10
    Forum Contributor
    Join Date
    04-22-2016
    Location
    Philippines
    MS-Off Ver
    2016 & Office365
    Posts
    139

    Re: Auto Add/Append Value on the Same Cell

    KOKOSEK, it's working but...
    can you make it work between column of entry & exit point only
    because i have a lot of data to be entered.
    if ever i need something to edit from output column, i need also to edit the "backup" sheet
    if not it will capture the data from backup again...

    see attached file
    Attached Files Attached Files

  11. #11
    Forum Expert KOKOSEK's Avatar
    Join Date
    08-03-2018
    Location
    Pole in Yorkshire, UK
    MS-Off Ver
    365/2013
    Posts
    2,743

    Re: Auto Add/Append Value on the Same Cell

    You can edit backup sheet.
    Unhide it and do whatever you want (as I see on attached file you've got unhidden).

    What you mean by 'can you make it work between column of entry & exit point only' ?

  12. #12
    Forum Contributor
    Join Date
    04-22-2016
    Location
    Philippines
    MS-Off Ver
    2016 & Office365
    Posts
    139

    Post Re: Auto Add/Append Value on the Same Cell

    check attached file for some changes sir...
    Attached Files Attached Files

  13. #13
    Forum Contributor
    Join Date
    04-22-2016
    Location
    Philippines
    MS-Off Ver
    2016 & Office365
    Posts
    139

    Post Re: Auto Add/Append Value on the Same Cell

    KOKOSEK, I just followed the trail you made and some adjustment and it works the way i want...


    Replaced all the same code from:
    Please Login or Register  to view this content.
    To:
    Please Login or Register  to view this content.
    Thank you...
    Attached Files Attached Files

  14. #14
    Forum Expert KOKOSEK's Avatar
    Join Date
    08-03-2018
    Location
    Pole in Yorkshire, UK
    MS-Off Ver
    365/2013
    Posts
    2,743

    Re: Auto Add/Append Value on the Same Cell

    Great. So You help yourself.
    Good.
    Working absolutely fine.

+ 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: 12
    Last Post: 05-09-2014, 05:35 PM
  2. Replies: 1
    Last Post: 01-22-2013, 08:41 AM
  3. Replies: 3
    Last Post: 10-15-2012, 01:29 PM
  4. Replies: 2
    Last Post: 12-12-2010, 10:27 PM
  5. Append to the end of a cell
    By Jetheat in forum Excel General
    Replies: 4
    Last Post: 07-04-2010, 09:15 PM
  6. Replies: 24
    Last Post: 12-07-2008, 04:36 AM
  7. How to append to a cell..?
    By someonestoleit in forum Excel General
    Replies: 3
    Last Post: 03-16-2005, 11:53 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