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:

enter image description here

range 2:

enter image description here

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

Popular posts from this blog

image - ClassNotFoundException when add a prebuilt apk into system.img in android -

I need to import mysql 5.1 to 5.5? -

Java, Hibernate, MySQL - store UTC date-time -