excel - Vlookup checking for multiple values and adding them together -


i have table called "data" has bunch of data dates , ids along 2 return values(we can call a , b) , value number of hits(c)

i wrote script:

=if(isnumber(vlookup(f$1&$a4&"1"&"0",data!$a:$f,6,false)+vlookup(f$1&$a4&"0"&"0",data!$a:$f,6,false)),vlookup(f$1&$a4&"1"&"0",data!$a:$f,6,false)+vlookup(f$1&$a4&"0"&"0",data!$a:$f,6,false),0) 

my current formula adds , returns approiate value if both a=1 , b=0 , a=0 , b=0 values found. if a=1 , b=0 found or a=0 , b=0is found return 0.

i want check data table , return values(c) have either a=1 , b=0 or a=0 , b=0 specific date , id number. want add values together. how can edit formula this?


Comments

Popular posts from this blog

python - TypeError: start must be a integer -

c# - DevExpress RepositoryItemComboBox BackColor property ignored -

django - Creating multiple model instances in DRF3 -