+ Reply to Thread
Results 1 to 2 of 2

Get warning when Mutually Exclusive is not fulfilled Macro Wanted VBA

  1. #1
    Registered User
    Join Date
    01-17-2013
    Location
    Monterrey, Mexico
    MS-Off Ver
    Excel 2007
    Posts
    6

    Question Get warning when Mutually Exclusive is not fulfilled Macro Wanted VBA

    Hey guys,

    Exclusive Rules.xls

    I'd appreciate if you help build a macro with a series of warning, depending on meeting (or not) certain conditions.

    I have a table Exclusive Rules.xls, where I have 3 groups of columns:
    1. First group represent some INFO which, if repited rows (2=3=4), can vary only in last column
    2. Second group represents a series of TYPES (R1, R2, R3)
    3. Third group represents a series of PLACES (101, 202, 303)


    Warning 1: Mutually exclusive
    Where for each info I can get a number combinations INFO/TYPES/PLACES (2/R1/101) which are mutually exclusive, i.e. assuming that rows 2 and 3 are the same with the last column different:
    1. If 2/R1/101 exists, 3/R2/101 CAN't exist, therefore, I must get a warnning (you repeated 101)
    2. If 2/R1/101 exists, 3/R1/202 CAN't exist, therefore, I must get a warnning (you repeated R1)


    Warning 2: Repeated INFO
    When 2 rows have the exact same INFO (first group columns) in ALL columns. Repeated rows could OR couldn't be consecutive, i.e. 2=3 OR 2=452


    Warning 3: No Possible TYPE/PLACE combination
    I can tell if a combination is given because I use "1,0 system" (better ilustrated with attachment Exclusive Rules.xls). If for any reason you have all 0-zeros in TYPE column group AND/OR in PLACE column group, a warning should be set.


    Warning 4: Succesfull Table
    If no error encountered, this should be trigerred, indicating that the macro run successfully.

    Thank you very much. I hope you can help me.



    Exclusive Rules.xls
    Last edited by carpediem_3112; 01-21-2013 at 10:01 PM. Reason: Formatting

  2. #2
    Registered User
    Join Date
    01-17-2013
    Location
    Monterrey, Mexico
    MS-Off Ver
    Excel 2007
    Posts
    6

    Re: Get warning when Mutually Exclusive is not fulfilled Macro Wanted VBA

    Anyone has an idea?

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1