View Single Post
  #3   Report Post  
Posted to microsoft.public.excel.misc
Joe User[_2_] Joe User[_2_] is offline
external usenet poster
 
Posts: 905
Default Variance between two cells only if...

"Jim" wrote:
I would like to calculate the variance between A
and B, but only if B is double the number in A.


If this is related to your thread "Variance calculations", refer to answers
there, and please avoid submitting redundant postings. The bifurcation leads
to confusion and unnecessary duplication of effort.

But to answer this question:

=if(B1=2*A1, B1-A1, "")

PS: I suggest that you acquire a basic understanding of Excel fundamentals.
This question and your last one related to MAX are rudimentary. We cannot
possibly answer all of your questions as you learn Excel step by step,
especially if you demonstrate disdain for self-learning. One source of the
basics might be "Excel for Dummies".


----- original message -----

"Jim" wrote:
I would like to calculate the variance between A and B, but only if B is
double the number in A.

Example: the value in A1 is 500
the value in B1 is 1000
the variance I would like to show in C1 is 500

however:
if A1 was 500
and B1 is 750
then C1 would be "blank"

Thanks for the help. I appreciate the time.

Jim