Excel arrays count totals using criterias from multiple ranges (or sheets) -
what count amount of lines matches criterias verified in 2 arrays. can't use vba, add new columns (for instance new column vlookup formula) , preferably use arrays.
i have 2 separate ranges, each id column identifier , other fields data.
for instance, range 1:
range 2:
if had check first range do:
={sum((d4:d7="red") * (e4:e7="big"))}
but don't know how check using data other range.
how, example, count number of items red, big , round using both ranges ?
put in cell f4:
=if((vlookup(c4,$c$11:$d$12,2)="round")*(d4="red")*(e4="big"),1,"")
note behavior of vlookup finds value first parameter. since there's no 1 in second dataset, first cell going show "#n/a", don't know how solve, when extend formula down compare other sample data in first set, id numbers 2 , 4 show "yes" you.
edit: wanted count of list. after this, should easy count of cells in column using count
function.
Comments
Post a Comment