Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 61
Default Easiest way to flag data errors

I have a sheet for calculating a bunch of values for allocating
resources among 2 or more people. The sheet has some limits on the
maximum values for certain results. For example, there may be a limit
of 10 pounds on some product. The actual allocations are determined by
various calculations such that it is possible for one of the results
to exceed the limit.

I would like to flag or highlight any results that are over the limit.
I don't especially care how this is done, but the cell needs to show
the incorrect value so I know how to make adjustments.

Probably the easiest method is to turn the cell data red.

I don't want to use the Text function because the cell contents may be
used in further calculations.

A further complication is that for some cells, there is more than one
possible error. The value could be over the limit or it might conflict
with some other value. Is there a way to generate multiple errors?

Thanks
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 3
Default Easiest way to flag data errors

Hi Prof Wonmug,
Your question too complicated, suggest you display it more easy to
understand like:
ColA ColB ColC ColD ColE ......
1
2
3
4
5

"Prof Wonmug" wrote:

I have a sheet for calculating a bunch of values for allocating
resources among 2 or more people. The sheet has some limits on the
maximum values for certain results. For example, there may be a limit
of 10 pounds on some product. The actual allocations are determined by
various calculations such that it is possible for one of the results
to exceed the limit.

I would like to flag or highlight any results that are over the limit.
I don't especially care how this is done, but the cell needs to show
the incorrect value so I know how to make adjustments.

Probably the easiest method is to turn the cell data red.

I don't want to use the Text function because the cell contents may be
used in further calculations.

A further complication is that for some cells, there is more than one
possible error. The value could be over the limit or it might conflict
with some other value. Is there a way to generate multiple errors?

Thanks

  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2,203
Default Easiest way to flag data errors

You can begin by looking into Conditional Formatting. You can have multiple
conditional formats for a variety of conditions: in pre-Excel 2007 versions
you can have 4 formats - 1 for nothing special going on, plus 3 for special
circumstances. With Excel 2007 more are available without resorting to VBA
to handle extra special cases.
In the simplest case where you want an alert if the result is above a
certain value, it's easy to set up. For comparisons to values of other
cells, you may want to return here for help setting them up - just be
specific in what you need.
Remember that in evaluating multiple conditions, the first one that matches
the criteria is acted on and the remaining are ignored, so the sequence you
enter them can be important. Example: you want a cell to turn yellow if the
value in it is more than 10, and turn red if it is more than 20. You would
need to test for more than 20 before testing for more than 10 to get the
expected result.

"Prof Wonmug" wrote:

I have a sheet for calculating a bunch of values for allocating
resources among 2 or more people. The sheet has some limits on the
maximum values for certain results. For example, there may be a limit
of 10 pounds on some product. The actual allocations are determined by
various calculations such that it is possible for one of the results
to exceed the limit.

I would like to flag or highlight any results that are over the limit.
I don't especially care how this is done, but the cell needs to show
the incorrect value so I know how to make adjustments.

Probably the easiest method is to turn the cell data red.

I don't want to use the Text function because the cell contents may be
used in further calculations.

A further complication is that for some cells, there is more than one
possible error. The value could be over the limit or it might conflict
with some other value. Is there a way to generate multiple errors?

Thanks

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
Flag me if macro errors Jason Morin Excel Programming 3 September 13th 07 05:46 PM
Easiest way to import sharpoint list data into excel programatically Jay A. Ritchie[_2_] Excel Programming 0 February 1st 06 05:35 PM
I have a data list of 7,000, what is the easiest way to check for Excel Excel Worksheet Functions 3 March 21st 05 08:07 PM
What is the easiest way to bring up data in adjacent cell after s. Jason Excel Worksheet Functions 1 February 10th 05 09:31 PM
Rows to be moved from one flag to another flag jip Excel Programming 0 November 9th 04 02:21 PM


All times are GMT +1. The time now is 12:15 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"