LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 26
Default Which criteria was matched?

On one sheet I've got a large dataset containing products with many fields.
On another sheet, I've got a list of criteria that the products cannot
violate.

Both the list of criteria and the product list is quite long, so I've set up
a DCOUNT formula in a field on the products list to evaluate each line to see
if it violates any rules from the criteria. Right now that field just reports
back a 1 or 0 (1 meaning it violated a rule and is disallowed).

What I'd like to do, is have it report back which criteria was matched. i.e.
the formula evalates the criteria as a whole, is there a way to evaluate the
line, one criteria at a time and report back the location of the rule (or
name) when it reaches one that matches?

VBA may be the most common answer, though I'm hoping for a magic formula
that I didn't think of.

Alternatively, based on this description, is there a better way to go about
evaluating if a product is allowed, based on a long list of criteria than
using a database function?
 
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
Return matched value 2 criteria Diddy Excel Worksheet Functions 4 December 1st 08 10:51 PM
Delete all rows if criteria not matched ongcong Excel Discussion (Misc queries) 4 August 25th 08 07:58 PM
Return Formula results to specific row of matched criteria Sam via OfficeKB.com Excel Worksheet Functions 3 September 10th 07 11:08 PM
SUMPRODUCT - Exclude LAST Row of Matched Criteria (Month & Year) Sam via OfficeKB.com Excel Worksheet Functions 10 January 8th 07 07:03 PM
SUMPRODUCT Formula to Count Row of data Below Matched Criteria Sam via OfficeKB.com Excel Worksheet Functions 8 February 3rd 05 01:37 AM


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