excel - Count what is in a row based on specific criteria -


i have large table of data names in first column , data applies names going out right varying ranges (see example below). on sheet have space type in users name. each column of data below represents week's worth (this varies new users added).

basically want type in users name on sheet b , have formula goes sheet a, finds user, , counts out how many cells in row contain data can find how many weeks of data have on user (this used in trending formulas can work).

    sheet     user    data1    data2     data3     roger   1        .16       10     sam     4            beth    3              sheet b     roger has "3" week(s) worth of data 

any ideas on how formula? or need apply vba cell want counts returned?

i hope makes sense , thank you!

try this

=counta(offset('sheet a'!1:1,match(a1,'sheet a'!a:a,0)-1,0))-1 

on sheet 2, a1 contains name up


Comments

Popular posts from this blog

how to proxy from https to http with lighttpd -

android - Automated my builds -

python - Flask migration error -