P Pete_UK Mar 31, 2008 #2 Try this approach: =SUMPRODUCT((LEFT(A1:A1000,3)="000")*(P11000)) 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
Try this approach: =SUMPRODUCT((LEFT(A1:A1000,3)="000")*(P11000)) 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 Mar 31, 2008 #3 =SUMIF(A:A,"0000*",P) -- --- HTH Bob (there's no email, no snail mail, but somewhere should be gmail in my addy)
=SUMIF(A:A,"0000*",P) -- --- HTH Bob (there's no email, no snail mail, but somewhere should be gmail in my addy)
G Gaurav Mar 31, 2008 #4 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.
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 Mar 31, 2008 #5 Thanks Pete...but i am getting the VALUE errror as result. Try this approach: =SUMPRODUCT((LEFT(A1:A1000,3)="000")*(P11000)) 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
Thanks Pete...but i am getting the VALUE errror as result. Try this approach: =SUMPRODUCT((LEFT(A1:A1000,3)="000")*(P11000)) 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 Mar 31, 2008 #6 oh I got it =SUMIF(A:A,"<>000*",P) Thanks Bob Phillips said: =SUMIF(A:A,"0000*",P) -- --- HTH Bob (there's no email, no snail mail, but somewhere should be gmail in my addy) Click to expand...
oh I got it =SUMIF(A:A,"<>000*",P) Thanks Bob Phillips said: =SUMIF(A:A,"0000*",P) -- --- HTH Bob (there's no email, no snail mail, but somewhere should be gmail in my addy) Click to expand...
P Pete_UK Mar 31, 2008 #7 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"),P11000) Hope this helps. Pete
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"),P11000) Hope this helps. Pete