Get warning when Mutually Exclusive is not fulfilled Macro Wanted VBA

carpediem_3112

New Member
Joined
Jan 17, 2013
Messages
3
Hey guys,


Http://www.sendspace.com/file/pjb29x

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 Http://www.sendspace.com/file/pjb29x, 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 repeated101)
2. If 2/R1/101 exists, 3/R1/202 CAN't exist, therefore, I must get a warnning (you repeatedR1)

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 attachmentHttp://www.sendspace.com/file/pjb29x). 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.

Http://www.sendspace.com/file/pjb29x
 

Excel Facts

Square and cube roots
The =SQRT(25) is a square root. For a cube root, use =125^(1/3). For a fourth root, use =625^(1/4).

Forum statistics

Threads
1,223,228
Messages
6,170,876
Members
452,363
Latest member
merico17

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top