LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 46
Default How can I display a warning if calculations indicate original data may be wrong?

Here is my problem. I need to compare calculated data, and my
spreadsheet program will be used by unskilled people.

There are multiple sets of 3 columns each for input of numbers. The
action I describe below will take place with the input of as many as
60 different sets of numbers with up to 30 groups of numbers in each
set. There can be up to seven sets in the same column, separated by
headers. I will limit my question to the first set in the 1st column
for clarity.

The user puts a number into column A row 1, and then another number
into column B row 1. The spreadsheet simply adds the number in column
A row to the number in Column B Row 1 and displays it in column C row
1. (It actually does this many times in Row 1 alone in columns D, E
and F, etc., but again, I will limit the question to columns A, B and
C).

Then the user does the same thing in Row 2 entering a number into
column A and column B. The spreadsheet calculates column C. This
repeats for up to 30 rows.

If the calculated number in any row in Column C duplicates the
calulated number in another row in that same set in Column C, there is
a high probability that there was an error in data input - but not
necessarily! It is possible that they could be duplicates - just not
likely. I want to alert the person entering the data they they MAY
have made an error and should recheck their data entry. This should
be an almost instant automatic check without the user having to
manually initiate the check.

Using Data Validation and Conditional Formating, I could display an
error message with the option to accept it, and highlight the
conflicting cells if the user entered the data into the cell. This
would be perfect. But since Excel calculates the number, and will not
initiate data validation and condition formatting on a calculated
cell, I do not know how to make it happen.

Example

COLUMN A - COLUMN B COLUMN C
(Entered) (Entered) (Calculated)
Row 1 6 6 12
Row 2 7 5 12 - OOPS
- POSSIBLE ERROR IN A or B

I would like to display an error message that says "Your data entries
may be correct, but there is a high probability of a data entry error
- recheck your data" and an option to accept or reject the data and
possibly re-enter it if it was entered in error. If the user chooses
to accept it, I would like the warnings to disappear and not reappear
again, and for the program to move on. If I have to use VBA, I would
want it to somehow launch automatically when the data for the cells in
Column A and Column B is entered.

I have been reading and experimenting bit have not found a solution.
Can anyone help me with this one? I thank you in advance.

 
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
PIVOT Display is WRONG DOUG Excel Discussion (Misc queries) 3 August 13th 09 10:09 PM
excel formula calculations are wrong Shamroq Excel Worksheet Functions 4 February 8th 06 11:49 AM
Copy from multiple workbooks and display the original worksheet na Barb Reinhardt Excel Discussion (Misc queries) 1 October 5th 05 03:51 PM
Display Msg box on open "before" MS Macro Security warning display Jack_Feeman Excel Programming 6 March 18th 05 07:07 PM
Display a warning msg if count is over 10. How? lothario[_18_] Excel Programming 2 October 15th 03 08:41 PM


All times are GMT +1. The time now is 06:39 PM.

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"