View Single Post
  #5   Report Post  
Posted to microsoft.public.excel.misc
Shane Devenshire[_2_] Shane Devenshire[_2_] is offline
external usenet poster
 
Posts: 3,346
Default Summing random cells as you click on them

Hi,

Before we get started creating a fancy macro to do this, see if this is good
enough:

Click the first cell with numbers, hold down the Ctrl key and click any
other cell with numbers. Observe the right side of the Status Bar. Most
likely you will see SUM = 123,456 or some number. If you don't see SUM then
right click on the right side of the status bar and from the pop-up choose
SUM, noting you can do Average, Count, Max and Min.

You can highlight any cells you want and you will see the calcualtion. You
can highlight by dragging the mouse, doing Shift+Click, using Ctrl+Click or
any other method of the 250 ways you can select.

If this helps, please click the Yes button,

Cheers,
Shane Devenshire

"Ben in CA" wrote:

I need to create a "program" with an Excel document that allows me to click a
button like "start adding" and then I can click on random cells (well, they
wouldn't actually be random, but not in any series of columns or rows), and
the contained values to be copied to successive cells in an empty column on
the side, that I can then have a Sum setup up on.

Basically, I have different pieces of equipment listed in an Excel
spreadsheet, along with various options. (Several hundred) I want to be able
to select which ones (even just by clicking on the price/value), and
automatically add them together - currently this is done on paper. (The costs
of the various options, etc. are scattered about, and aren't all in a
particular row or column.)

Once I'm done calculating it, probably I'd need to have a "Stop adding"
button that I could press and then it would stop calculating the value.

Preferably it only copies the actual number in the cells to the new
location, as many of the cells are themselves calculated by formulas.

Can anyone think of a way of doing this? I've been looking around for a way
to do this, but I haven't found anything that will do it yet.

Thanks in advance to anyone who solves this problem!