different SUMIF

P

Pete_UK

Try this approach:

=SUMPRODUCT((LEFT(A1:A1000,3)="000")*(P1:p1000))

I've assumed 1000 rows, so adjust to suit, but you can't use full
column references prior to XL 2007.

Hope this helps.

Pete
 
B

Bob Phillips

=SUMIF(A:A,"0000*",P:p)

--
---
HTH

Bob


(there's no email, no snail mail, but somewhere should be gmail in my addy)
 
G

Gaurav

thanks bob this worked. another one...now I want to sum the rest of the
values. means....sum column P where values in column A dont start with 000.
 
G

Gaurav

Thanks Pete...but i am getting the VALUE errror as result.


Try this approach:

=SUMPRODUCT((LEFT(A1:A1000,3)="000")*(P1:p1000))

I've assumed 1000 rows, so adjust to suit, but you can't use full
column references prior to XL 2007.

Hope this helps.

Pete
 
G

Gaurav

oh I got it

=SUMIF(A:A,"<>000*",P:p)

Thanks :)

Bob Phillips said:
=SUMIF(A:A,"0000*",P:p)

--
---
HTH

Bob


(there's no email, no snail mail, but somewhere should be gmail in my
addy)
 
D

David Biddulph

So you need to look at the values in column P. Get rid of text entries or
errors.

Note also that the column A condition will return a true condition if you
have text values in that column starting with 000, but not if you have
numbers such as 123 formatted 000000 to look like 000123.
 
P

Pete_UK

I see you have an answer from Bob that works for you, but you might
like to try this amendment:

=SUMPRODUCT(--(LEFT(A1:A1000,3)="000"),P1:p1000)

Hope this helps.

Pete
 

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

Top