+ Reply to Thread
Results 1 to 7 of 7

Selecting multiple cells, and adding the values automatically

  1. #1
    Forum Contributor
    Join Date
    04-09-2010
    Location
    Fort Myers, FL
    MS-Off Ver
    Excel for MAC
    Posts
    146

    Selecting multiple cells, and adding the values automatically

    Is there a way that I can select multiple cells (they are formatted as numbers), and in a dedicated cell, have the value of the sums of those cells? If so, please share how! lol Thank you!\


    Screenshot ... so if I select multiple numbers, I would like A4 to show the sum of all the selected cells.
    Attached Images Attached Images
    Last edited by nkitchen31; 12-28-2019 at 04:45 PM. Reason: Screenshot

  2. #2
    Forum Expert JLGWhiz's Avatar
    Join Date
    02-20-2011
    Location
    Florida, USA
    MS-Off Ver
    Windows 10, Excel 2013
    Posts
    2,070

    Re: Selecting multiple cells, and adding the values automatically

    It would take some pretty tricky code to do it based strictly on what you select since it would have to operate from an event trigger, and the event trriggers as you make a selection change or a value change in a cell. But you could attach the code below to a button and when you have finished making your selection, click the button.

    Please Login or Register  to view this content.
    Any code provided by me should be tested on a copy or a mock up of your original data before applying it to the original. Some events in VBA cannot be reversed with the undo facility in Excel. If your original post is satisfied, please mark the thread as "Solved". To upload a file, see the banner at top of this page.
    Just when I think I am smart, I learn something new!

  3. #3
    Forum Contributor
    Join Date
    04-09-2010
    Location
    Fort Myers, FL
    MS-Off Ver
    Excel for MAC
    Posts
    146

    Re: Selecting multiple cells, and adding the values automatically

    Dude ... that was perfect! Thank you! Where in FL are you by the way? So I am.

  4. #4
    Valued Forum Contributor saravnepali's Avatar
    Join Date
    01-14-2019
    Location
    Sydney Australia
    MS-Off Ver
    2010
    Posts
    447

    Re: Selecting multiple cells, and adding the values automatically

    Try this code on the worksheet module of the workbook
    Please Login or Register  to view this content.
    If you think someone helped you, click on the "* Add Reputation" as a way to say thank you.

    If your problem is solved, go to Thread Tools and select Mark This Thread Solved

  5. #5
    Forum Contributor
    Join Date
    04-09-2010
    Location
    Fort Myers, FL
    MS-Off Ver
    Excel for MAC
    Posts
    146

    Re: Selecting multiple cells, and adding the values automatically

    Quote Originally Posted by saravnepali View Post
    Try this code on the worksheet module of the workbook
    Please Login or Register  to view this content.
    That's perfect. Thanks!!

  6. #6
    Valued Forum Contributor saravnepali's Avatar
    Join Date
    01-14-2019
    Location
    Sydney Australia
    MS-Off Ver
    2010
    Posts
    447

    Re: Selecting multiple cells, and adding the values automatically

    If your problem is solved, go to Thread Tools and select Mark This Thread Solved

    If THIS HAS HELPED YOU PLEASE CLICK "* Add Reputation" as a way to say thank you.

  7. #7
    Forum Expert JLGWhiz's Avatar
    Join Date
    02-20-2011
    Location
    Florida, USA
    MS-Off Ver
    Windows 10, Excel 2013
    Posts
    2,070

    Re: Selecting multiple cells, and adding the values automatically

    Quote Originally Posted by nkitchen31 View Post
    Dude ... that was perfect! Thank you! Where in FL are you by the way? So I am.
    About 120 miles northeast of you.

+ 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: 7
    Last Post: 11-24-2022, 10:43 AM
  2. Automatically selecting multiple cells
    By scottintexas in forum Excel General
    Replies: 1
    Last Post: 11-02-2013, 10:44 AM
  3. Ignoring specific values while selecting multiple cells
    By HelpThisPoorChap in forum Excel General
    Replies: 5
    Last Post: 12-20-2012, 03:42 PM
  4. [SOLVED] Adding Values in Multiple Offset Cells depending on the value of a different cell
    By lottidotti in forum Excel Programming / VBA / Macros
    Replies: 8
    Last Post: 08-19-2012, 11:35 AM
  5. Excel 2007 : Automatically Selecting Multiple Cells
    By BethU in forum Excel General
    Replies: 0
    Last Post: 10-26-2011, 10:44 AM
  6. Adding Multiple Cells Between Values
    By bryanarr in forum Excel General
    Replies: 1
    Last Post: 07-20-2008, 05:42 PM
  7. [SOLVED] Selecting/Adding data from Multiple Worksheets
    By Paul23 in forum Excel General
    Replies: 0
    Last Post: 03-27-2006, 10:10 AM
  8. How to stop Excel from automatically selecting cells?
    By geekgirl33 in forum Excel General
    Replies: 1
    Last Post: 07-05-2005, 07:05 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