+ Reply to Thread
Results 1 to 7 of 7

How to sum within a single cell

  1. #1
    Registered User
    Join Date
    08-02-2019
    Location
    Netherlands
    MS-Off Ver
    2010
    Posts
    2

    How to sum within a single cell

    Dear Excel pro's, I was asked at my job to help a colleague out who is currently doing the summing up of new entries himself and I wonder if this can be done automatically.

    (Apologies if I'm unclear about some things, been a long week and just want to impress some coworkers, also apologies if my English isn't perfect as it's not my native language.)

    The problem:
    The title might be a bit vague. My colleague has to keep track of something we are giving out and every time we get a notice from one of our drivers he uses a calculator and reenters the new value. So as in the example (Table A) down below, if we get a new notice he just adds and reenters instead of the 100. It's a completely blank excel file otherwise and it's a just a little note to keep track if everything going in and out adds up.

    Sought solution:
    An additional column where you enter the new value, hit enter and it disappears and auto adds to the total.

    Possible other solution:
    (like table B) One where you enter the value and it adds up to the total with having to manually add column (this is an ongoing thing they need to do). So you would enter the new value in the blank area, press some button combination and it moves that value and creates a new blank space in which you can add the next value.

    Thank you for you time! Hope you can help me!

    Cheers,

    Alfa

    Table A
    picked up
    Trays 100

    Table B
    Picked up
    Trays 100 blank 50 20 30
    Last edited by Alfa_Mortifera; 08-05-2019 at 08:24 AM.

  2. #2
    Forum Expert BadlySpelledBuoy's Avatar
    Join Date
    06-14-2013
    Location
    East Sussex, UK
    MS-Off Ver
    365
    Posts
    7,468

    Re: How to sum within a single cell

    Hello and welcome

    For either of your proposed solutions you'd probably need to use VBA. If you're happy with that then we can provide the code you need.

    I can't help but feel that might be a little overkill though. Why not just put the first number in A1, the next number in A2 and keep going as more need adding. Then in another cell just enter the formula =SUM(A:A) and that will sum them as you go.

    BSB

  3. #3
    Forum Expert Keebellah's Avatar
    Join Date
    01-12-2014
    Location
    The Netherlands
    MS-Off Ver
    Office 2021 (Windows)
    Posts
    7,905

    Re: How to sum within a single cell

    Hi, welcome to the forum.
    I suggest a worksheet change event that is triggers when a new value is entered in the empty cell in the same row as to where the total goes, then if the value is numeric and valid then add that value to the cell value where it is to be added to.
    Explanation may sound vague but if you think it further it is more or less what you're looking for.
    ---
    Hans
    "IT" Always crosses your path!
    May the (vba) code be with you... if it isn't; start debugging!
    If you like my answer, Click the * below to say thank-you

  4. #4
    Forum Expert BadlySpelledBuoy's Avatar
    Join Date
    06-14-2013
    Location
    East Sussex, UK
    MS-Off Ver
    365
    Posts
    7,468

    Re: How to sum within a single cell

    Have a look at the attached. A simple worksheet change event does what you need (I think).
    Please Login or Register  to view this content.
    BSB
    Attached Files Attached Files

  5. #5
    Forum Expert Keebellah's Avatar
    Join Date
    01-12-2014
    Location
    The Netherlands
    MS-Off Ver
    Office 2021 (Windows)
    Posts
    7,905

    Re: How to sum within a single cell

    My variation, almost the same but see Sheet 2
    Attached Files Attached Files

  6. #6
    Registered User
    Join Date
    08-02-2019
    Location
    Netherlands
    MS-Off Ver
    2010
    Posts
    2

    Re: How to sum within a single cell

    Quote Originally Posted by BadlySpelledBuoy View Post
    Have a look at the attached. A simple worksheet change event does what you need (I think).
    Please Login or Register  to view this content.
    BSB
    That's exactly what I'm looking for, yours work perfect! Thanks a bunch, works flawlessly.

  7. #7
    Forum Expert BadlySpelledBuoy's Avatar
    Join Date
    06-14-2013
    Location
    East Sussex, UK
    MS-Off Ver
    365
    Posts
    7,468

    Re: How to sum within a single cell

    Happy to help.
    Thanks for the feedback

    BSB

+ 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] How to subtract single cells with double digits into a single digit of a single cell.
    By greenfox74 in forum Excel Formulas & Functions
    Replies: 11
    Last Post: 03-11-2021, 02:05 AM
  2. [SOLVED] distribution of values from single cell to multiple cells in single column
    By WhatsGig in forum Excel - New Users/Basics
    Replies: 5
    Last Post: 08-29-2017, 02:30 PM
  3. [SOLVED] Code to delete a single character from a single cell
    By axtryo in forum Excel Programming / VBA / Macros
    Replies: 10
    Last Post: 03-03-2017, 01:08 AM
  4. [SOLVED] vLookup multiple values separated by ";" in single cell / return result in single cell
    By Tunesmith in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 09-07-2015, 12:02 PM
  5. Replies: 3
    Last Post: 04-03-2014, 08:14 PM
  6. [SOLVED] Extract single cell data based on a single cell entry
    By farmerdoode in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 11-05-2013, 11:11 PM
  7. Replies: 1
    Last Post: 02-17-2012, 03:33 AM

Tags for this Thread

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