Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 68
Default How to make a spreadsheet idiot-proof

I have a spread sheet with a number of formulas in cells; for example:
cell A1 =SUM(B1+C1).
Sometimes it may be necessary for the user to enter a different number in
cell A1, which deletes the formula. I need some code (or something) that
will monitor cell A1, and if this cell is empty, it will replace the correct
formula back in the cell. This way, the user only has to remember that if a
cell (A1) doesn't work properly, they just delete what is in the cell, and
the formula will return. Any suggestions? Thanks
--
Howard
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 5,934
Default How to make a spreadsheet idiot-proof

What cells did you mean when you said "..number of formulas in cells"? Are
you talking about a range of contiguous cells (like in a column or in a row
or in a rectangular area)? If yes, are the formulas in this range of cells
identical except for the cells being referenced from within the formulas
(in other words, can the formula in one cell of the range be produced by
copying another cell from the range into it)? If yea, then will all the
cells in the range have formulas?

--
Rick (MVP - Excel)


"Howard" wrote in message
...
I have a spread sheet with a number of formulas in cells; for example:
cell A1 =SUM(B1+C1).
Sometimes it may be necessary for the user to enter a different number in
cell A1, which deletes the formula. I need some code (or something) that
will monitor cell A1, and if this cell is empty, it will replace the
correct
formula back in the cell. This way, the user only has to remember that if
a
cell (A1) doesn't work properly, they just delete what is in the cell, and
the formula will return. Any suggestions? Thanks
--
Howard


  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 22,906
Default How to make a spreadsheet idiot-proof

Under which condition(s) would it sometimes be necessary to overwrite the
formula in A1?

This would not be good practice in my opinion.

If user enters a number in A1, how does A1 become "empty"?

You don't have to use the value in A1 if you don't want.

Have user enter a number in another cell and use that for calculations.

BTW..............=B1 + C1...............no need for SUM


Gord Dibben MS Excel MVP

On Mon, 7 Sep 2009 19:01:01 -0700, Howard
wrote:

I have a spread sheet with a number of formulas in cells; for example:
cell A1 =SUM(B1+C1).
Sometimes it may be necessary for the user to enter a different number in
cell A1, which deletes the formula. I need some code (or something) that
will monitor cell A1, and if this cell is empty, it will replace the correct
formula back in the cell. This way, the user only has to remember that if a
cell (A1) doesn't work properly, they just delete what is in the cell, and
the formula will return. Any suggestions? Thanks


  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 68
Default How to make a spreadsheet idiot-proof

Yes, there are contiguous cells, ie. A1 thru A10 that would have the same
formula except for referenced cells. I now have the user copy a formula from
another cell, like A10, and paste it into cell A1. The only problem is that
I'm dealing with users who have no computer knowledge. My thought was that
if I applied script to these cells, and told the user that if the
computations were not right, just delete the contents of the cell, and the
script would reinsert the correct formula. I keep most of the complicated
formulas on sheet 2, and on sheet 1, I reference sheet 2. For example, A1
might equal sheet2!A1. I also have formulas which use =SUMIF to add
information from other columns. The user does sometimes have a need to enter
his own numbers in the (=SUMIF) cells, but then something changes, and the
formula needs to be replaced. I don't know, maybe I'm just barking up the
wrong tree.
--
Howard


"Rick Rothstein" wrote:

What cells did you mean when you said "..number of formulas in cells"? Are
you talking about a range of contiguous cells (like in a column or in a row
or in a rectangular area)? If yes, are the formulas in this range of cells
identical except for the cells being referenced from within the formulas
(in other words, can the formula in one cell of the range be produced by
copying another cell from the range into it)? If yea, then will all the
cells in the range have formulas?

--
Rick (MVP - Excel)


"Howard" wrote in message
...
I have a spread sheet with a number of formulas in cells; for example:
cell A1 =SUM(B1+C1).
Sometimes it may be necessary for the user to enter a different number in
cell A1, which deletes the formula. I need some code (or something) that
will monitor cell A1, and if this cell is empty, it will replace the
correct
formula back in the cell. This way, the user only has to remember that if
a
cell (A1) doesn't work properly, they just delete what is in the cell, and
the formula will return. Any suggestions? Thanks
--
Howard



  #5   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 68
Default How to make a spreadsheet idiot-proof

Thanks for your reply. I tried to explain better in the reply to Rick
Rothstein, but I wanted to thank you for your reply also. I'm not sure I
explained everything the way I should. Thanks again.
--
Howard


"Gord Dibben" wrote:

Under which condition(s) would it sometimes be necessary to overwrite the
formula in A1?

This would not be good practice in my opinion.

If user enters a number in A1, how does A1 become "empty"?

You don't have to use the value in A1 if you don't want.

Have user enter a number in another cell and use that for calculations.

BTW..............=B1 + C1...............no need for SUM


Gord Dibben MS Excel MVP

On Mon, 7 Sep 2009 19:01:01 -0700, Howard
wrote:

I have a spread sheet with a number of formulas in cells; for example:
cell A1 =SUM(B1+C1).
Sometimes it may be necessary for the user to enter a different number in
cell A1, which deletes the formula. I need some code (or something) that
will monitor cell A1, and if this cell is empty, it will replace the correct
formula back in the cell. This way, the user only has to remember that if a
cell (A1) doesn't work properly, they just delete what is in the cell, and
the formula will return. Any suggestions? Thanks





  #6   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 22,906
Default How to make a spreadsheet idiot-proof

Jacob Skaria posted this in another forum.

Private Sub Worksheet_Change(ByVal Target As Range)
Application.EnableEvents = False
If Not Application.Intersect(Target, Range("A3")) Is Nothing Then
If Target = "" Then Target.Formula = "=A1+A2"
End If
Application.EnableEvents = True
End Sub

Adjust the ranges to suit.


Gord

On Tue, 8 Sep 2009 18:06:01 -0700, Howard
wrote:

Thanks for your reply. I tried to explain better in the reply to Rick
Rothstein, but I wanted to thank you for your reply also. I'm not sure I
explained everything the way I should. Thanks again.


  #7   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 68
Default How to make a spreadsheet idiot-proof

Sounds like what I'm looking for. I'll give it a try. Thanks.
--
Howard


"Gord Dibben" wrote:

Jacob Skaria posted this in another forum.

Private Sub Worksheet_Change(ByVal Target As Range)
Application.EnableEvents = False
If Not Application.Intersect(Target, Range("A3")) Is Nothing Then
If Target = "" Then Target.Formula = "=A1+A2"
End If
Application.EnableEvents = True
End Sub

Adjust the ranges to suit.


Gord

On Tue, 8 Sep 2009 18:06:01 -0700, Howard
wrote:

Thanks for your reply. I tried to explain better in the reply to Rick
Rothstein, but I wanted to thank you for your reply also. I'm not sure I
explained everything the way I should. Thanks again.



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
I am an Idiot Woman Pepper New Users to Excel 18 January 1st 09 01:10 AM
How to tamper proof cells? flint Excel Discussion (Misc queries) 1 April 24th 07 11:38 PM
I want 148:30 converted to 148.5 and I am an idiot element04 Excel Discussion (Misc queries) 1 July 13th 06 01:41 AM
I need complete idiot proof excel setup database help. please MadMoose New Users to Excel 6 April 13th 06 03:32 PM
Offset() returns reference, first not value (proof) Jim May Excel Discussion (Misc queries) 2 October 22nd 05 04:18 PM


All times are GMT +1. The time now is 10:59 AM.

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

About Us

"It's about Microsoft Excel"