Hi All,
I'm need of a generalised formula for many such attributes with many records
I have two records, with three columns
A1: Base B1: Attribute 1 C1: Attribute 2
A2: 766786 B2: 2 C2: 3
A3:766786 B3: 3 C3: 2
I want a fourth and fifth column with the following logic:
1. Check for the data in row 2 and 3 for each of the Attribute 1 and Attribute 2, i.e. B2 against B3 and C2 against C3
2. If the data is same, then for both the Base records pick one of the record from the two and fourth column will have the Attribute 1 data and fifth column will have Attribute 2 data
3. If the data is not same, then check for Attribute 1 column and pick the max of the value and assign the associated max value record to column four and five, ie. as per the above example fourth column will have 3 and fifth column will have 2 as this is the max value associated record
4. IF the data is not same and the Attribute 1 data is same, then check for Attribute 2 column and pick the max of the value and assign the associated max value record to column four and five
5. Similarly this formula should carry out for any number of attributes and perform the checks as explained in 2, 3 and 4
Bookmarks