#1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 1
Default Autosum button

When I protect a sheet the Autosum button is disabled. I would like others
to Average entries in an unlocked column and Autosum seems to be the easiest
way for them. Is there any way to turn the Autosum back on while the sheet
is protected or an equally short way of averaging several sets of numbers in
one column? TIA
--
Robert
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 22,906
Default Autosum button

Not sure what you mean by "several sets of numbers"

Do you mean a several non-contiguous cells or ranges?

Autoaverage or autosum won't work very well on non-contiguous ranges as far as I
can see, and work differently, I might add.

Numbers in A1:A10

Select A1:A2 and A5:A6 and A9:A10 and hit autoaverage.

You will get formulas in A11:A13 each with an average of each of the above
selections of cells.

Do same with autosum and you get the sum of just the last set of cells

This macro which can be assigned to a button will autoaverage a contiguous range
of numbers and stick the average formula in the cell below the selected range
same as autoaverage.

Sub Average_Range()
ActiveSheet.Unprotect Password:="justme"
Set rng = Selection
Set rng1 = rng.Offset(rng.Rows.Count, 0).Resize(1, 1)
rng1.Formula = "=Average(" & rng.Address & ")"
ActiveSheet.Protect Password:="justme "
End Sub


Gord Dibben MS Excel MVP


On Sat, 5 May 2007 12:01:01 -0700, Robert H
wrote:

When I protect a sheet the Autosum button is disabled. I would like others
to Average entries in an unlocked column and Autosum seems to be the easiest
way for them. Is there any way to turn the Autosum back on while the sheet
is protected or an equally short way of averaging several sets of numbers in
one column? TIA


Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Autosum button performing subtotal rfIPS Excel Discussion (Misc queries) 1 November 1st 06 11:11 PM
Shortcut Keystroke for the AutoSum button or Sum function? L Lightner Excel Discussion (Misc queries) 2 July 19th 06 12:56 AM
How do I reinstall the autosum button? I cannot find it on Excel KC Excel Worksheet Functions 4 July 11th 06 04:40 PM
I need to renable autosum button Flint New Users to Excel 2 June 23rd 06 03:37 PM
Create AutoSubtotal button which functions like the AutoSum butto. Bradley Excel Worksheet Functions 2 November 30th 04 09:21 PM


All times are GMT +1. The time now is 04:23 AM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"