excel - Using SUMPRODUCT, but exclude return if criteria cell is blank -


i have large array. in column there discreet numbers, 1,2,3 etc. numbers used in array (e through gf) register person has been assigned number column many items register in array.

what want in column c how many times registration number (from column a) appears in array, have count of total item registrations.

i used formula (found on forum): =sumproduct ((e3:gh199="cell")*1) "cell" cell reference column i'm looking in array (the discreet number). problem need account more entries have, there blank cells in column a, formula returns number of blank cells in array. need add correct instruction if cell criteria in blank, not return value.

why not use countif? example if "cell" a1

=countif(e$3:gh$199,a1)

if a1 blank return 0 if there blanks in e3:gh199

if want return blank if a1 blank add if function this:

=if(a1="","",countif(e$3:gh$199,a1))


Comments

Popular posts from this blog

apache - Remove .php and add trailing slash in url using htaccess not loading css -

javascript - jQuery show full size image on click -