Hi Excel Forum,
Cross-post here: http://www.mrexcel.com/forum/excel-q...er-arrays.html
Here is an illustation of my real data:
{1 1 1 1} {1 9 1 1} {1 1 9 9}
Here is the problem:
All values in {1,1,1,1} are < or = to all corresponding values in at least one other row in this example (both the second and third rows). In other words, {1,1,1,1} is obsolete because there is at least one other row that meets or exceeds all corresponding values. On the contrary, neither {1,9,1,1} nor {1,1,9,9} are obsolete; no row, excluding themselves, can utterly beat {1,9,1,1} nor {1,1,9,9} in a one-on-one fight.
We need to compare each row to every other row in our big data. In the process, the obsolete rows are marked. The end result may be condition formatting to the data or a separate column of Y's/N's, TRUE's/FALSE's, etc. (denoting obsolete).
Here is what I tried:
=--(F17:L17<=F18:L18)={1,1,1,1,1,1,1} We compare a row in question (F17:L17) to one other row (F18:L18) by <=. Formula produces an array of TRUE's and FALSE's, and the "--" converts that to an array of 1's and 0's. Result after CTRL+SHIFT+Enter is a single cell with TRUE (expected). The main disadvantage of this method is we would end up with large tables and a lot of manual work. We are are not sure our method works and would like something cleaner. Also note we want to exclude comparing a given row with itself.
This is my first post on the forum. I am not an expert at Excel (little experience with formulas, macros, or scripting), so feel free to elaborate. Thank you in advance!
- Polite Master
Bookmarks