FORMULAS please help

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Hi there
I am trying to create a formula that refences <> numbers in a columm then
adds up the from a different columm
i.e add b1:b100 only if a1:a100 is >10000 <12000 =46
a b
10000 32
9000 64
12001 86
11999 14
9990 12
 
One way

=SUMPRODUCT(--(A1:A100>10000),--(A1:A10000<12000),B1:B10000)


Regards,

Peo sjoblom
 
Hi there
I am trying to create a formula that refences <> numbers in a columm then
adds up the from a different columm
i.e add b1:b100 only if a1:a100 is >10000 <12000 =46
a b
10000 32
9000 64
12001 86
11999 14
9990 12

=SUMIF(A1:A100,">10000",B1:B100) - SUMIF(A1:A100,">=12000",B1:B100)

But your result is only 14. Your query specified that the numbers in colA be
greater than 10000 and less than 12000.

If you want a result of 46, you need to specify "equal to or greater than
10000":

=SUMIF(A1:A100,">=10000",B1:B100) - SUMIF(A1:A100,">=12000",B1:B100)


--ron
 

Ask a Question

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.

Ask a Question

Back
Top