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
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