Sum column no in excel with condition -
i have excel below
b c d e 1 result sub1 sub2 sub3 total 2 ram sub3 sub2 sub3 2 3 hari sub1 sub3 sub2 1
here in above example total = count of correct result ie in b ram sub3 != sub1 not counted total c , d right. trying can not result formula total in excel
you can array formula:
use following formula in e2, fill down. adjust ranges if have more data example:
{=sum(if($b2:$d2=$b$1:$d$1,1,0))}
note array formula. enter it, enter formula =sum(if($b2:$d2=$b$1:$d$1,1,0))
, press ctrl+shift+enter.
this works doing explain. checks each cell in range if equals value in row 1, either adds 1 or 0 depending on if matches.
Comments
Post a Comment