excel - If statement and addition -


i trying if cell value in second sheet not equal blank , check value of other cell lesser 3 , further update value 1 or 0.

1st condition if g2 cell value present in second sheet not equal blank check f5 cell value. if f5 cell value less 3 should display 1 else 0

=sheet2!not(isblank($g2)) + if($f5>2, 0, 1) 

thanks

first, formula =sheet2!not(isblank($g2)) + if($f5>2, 0, 1) not using proper excel syntax. sheet reference goes cell reference, not outside general formula. also, formula checks if f5 greater 2, not less 3.

there 2 conditions : 1st check cell value in sheet2 not blank.

not(isblank(sheet2!$g2)) checks this.

2nd cond check if cell value f5 in sheet2 less 3

the logical condition $f5 < 3 checks this.

than put value 1 else 0 in sheet1 cell.

if(condition(s), 1, 0)

so both conditions should satisfy.

now want check both conditions met, need and() function in if() function's logical test argument: =if(and(), 1, 0)

or put together: if(and(not(isblank(sheet2!$g2)), $f5 < 3), 1, 0)


Comments

Popular posts from this blog

javascript - Google App Script ContentService downloadAsFile not working -

javascript - Function overwritting -

php - Find a regex to take part of Email -