G
Guest
how do i do a if A1 >200 and <300 return A1 otherwise return 0. i can't get
the logic to work
the logic to work
Follow along with the video below to see how to install our site as a web app on your home screen.
Note: This feature may not be available in some browsers.
return 0. i can't get the logic to work
=A1*(A1>200)*(A1<300)
tests
(A1>200)
(A1<300)
would lead to a True or False result.
When Multiplied together, the True's would be coerced to 1's and the
False's to 0's
Hence
A1*TRUE*TRUE becomes A1*1*1 which returns the value in A1
If either (or both) of the tests is False, then we get 0.
A1*0*1 = 0
A1*1*0 = 0
Want to reply to this thread or ask your own question?
You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.