SUMIF and SUM.NUMBER

R

Rockbear

Hi

I have two sum function that work as they should, but try to set another
agrument and then it fails..
First one :
=ANTALL.HVIS(E:E,N2), in english i thin it is NUMBER.IF(E:E,N2)
I am trying ti get it to say NUMBER.IF(E:E,N2 AND K:K<100)
IF the E:E finds the value of N2, and the number in K:K is less than 100 it
should count all under 100.
The same with 101 t0 300 NUMBER.IF(E:E,N2 AND K:K>100 and >300)


Second sum the numbers :
=SUMIF((E:E,N2,K:K)
=SUMIF((E:E,N2 AND K:K<100)
Sum all numbers from 0 to 100 in K:K if N2 are found in E:E
=SUMIF(E:E,NR AND K:K>100 and >300)
SUM all numbers between 101 and 300 if N2 are found in E:E


Would have been wonderfull with some help

ROCK-
Just a regular user
 
B

Bob Phillips

In English

=SUMPRODUCT(--(E2:E200=N2),--(K2:K200<100)

you cannot use whole columns with SUMPRODUCT prior to Exel 2007
 
J

Jarek Kujawa

try:

=SUM(IF(($E$1:$E$65536=N2)*($K$1:$K$65536>100)*($K$1:$K$65536<300),
$K1$:$K$65536,)))

this is an array formula so CTRL+SHIFT+ENTER it instead of using
simply ENTER
 
R

Rockbear

The formula looks good but do not work

=SUM(IF(($E$1:$E$1600=N2)*($K$1:$K$1600>100)*($K$1:$K$1600<300),$K$1:$K$1600,))

1600 is the maximum of rows

Where is I do wrong??
 
R

Rockbear

Hi Bob

Have tried this :

=SUMPRODUCT(--(E2:E1600=N2),--(K2:K1600<100))

The max number of rows are 1600, but get #name?
 
B

Bob Phillips

Is it SUMPRODUCT on your system.

Go to the VBIDE (Alt-F11) and in the immediate windo type

Activecell.Formula = "=SUMPRODUCT(--(E2:E200=N2),--(K2:K200<100)"

and see what that gives you in Excel.
 

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

Similar Threads

Help with Sumif and INDIRECT 9
Sumif 2
Sumifs (I think) 5
SUMIF Formula? 4
Criteria For SU<IF 5
Need help with SUMIF 3
SumIf and vlookup formula help 2
Strange problem... difference between XP and Win2K3 2

Top