I have a spreadsheet (see attached) in which I want to indicate whether various criteria I am checking for are met. Each entry into the list will have a category and subcategory, and there may be multiple entries with the same category/subcategory. If an entry meets the criteria, it will be ranked 1, 2, or 3, with 1 being better than 2, and 2 being better than 3. See attached link, or the first sheet, titled "All Entries".
On the "Summarized Entries" sheet I'm attempting to consolidate all of these different criteria such that only the highest-ranked values for each criteria are shown i.e.
if any of the entries for the given category and subcategory have a filled-in cr1 with a value of 1, consolidated value is 1;
else if any of the entries for the given category and subcategory have a filled-in cr1 with a value of 2, consolidated value is 2;
else if [...] cr1 has a value of 3, consolidated value is 3;
else consolidated value is "N", as no entry for the given category and subcategory met the given criteria.
for the given spreadsheet, this should look like this:
to accomplish this, I attempted the following formula:
=ARRAYFORMULA(
IF('All Entries'!$A3:$A&'All Entries'!$B3:$B&'All Entries'!C3:C=($A4:$A&$B4:$B&"1"),"1",
if('All Entries'!$A3:$A&'All Entries'!$B3:$B&'All Entries'!C3:C=($A4:$A&$B4:$B&"2"),"2",
if('All Entries'!$A3:$A&'All Entries'!$B3:$B&'All Entries'!C3:C=($A4:$A&$B4:$B&"3"),"3",
if($A4:$A="", "",
"N")))))
however, it's giving me the following result:
it appears that as soon as there is a 2nd entry in the original table that has the same category and subcategory, it stops reading anything past that. I'm relatively new to array formulas in Google sheets so I assume I'm missing something simple but just haven't been able to figure it out and my stack overflowing hasn't been successful.