ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Worksheet Functions (https://www.excelbanter.com/excel-worksheet-functions/)
-   -   different SUMIF (https://www.excelbanter.com/excel-worksheet-functions/181953-different-sumif.html)

Gaurav[_2_]

different SUMIF
 
I need to sum column P if values in column A begin with 000.

any ideas?



Pete_UK

different SUMIF
 
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


On Mar 31, 8:04*pm, "Gaurav" wrote:
I need to sum column P if values in column A begin with 000.

any ideas?



Bob Phillips

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

--
---
HTH

Bob


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



"Gaurav" wrote in message
...
I need to sum column P if values in column A begin with 000.

any ideas?




Gaurav[_2_]

different SUMIF
 
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.

"Bob Phillips" wrote in message
...
=SUMIF(A:A,"0000*",P:P)

--
---
HTH

Bob


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



"Gaurav" wrote in message
...
I need to sum column P if values in column A begin with 000.

any ideas?






Gaurav[_2_]

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


"Pete_UK" wrote in message
...
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


On Mar 31, 8:04 pm, "Gaurav" wrote:
I need to sum column P if values in column A begin with 000.

any ideas?




Gaurav[_2_]

different SUMIF
 
oh I got it

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

Thanks :)

"Bob Phillips" wrote in message
...
=SUMIF(A:A,"0000*",P:P)

--
---
HTH

Bob


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



"Gaurav" wrote in message
...
I need to sum column P if values in column A begin with 000.

any ideas?






David Biddulph[_2_]

different SUMIF
 
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.
--
David Biddulph

"Gaurav" wrote in message
...
Thanks Pete...but i am getting the VALUE errror as result.


"Pete_UK" wrote in message
...
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


On Mar 31, 8:04 pm, "Gaurav" wrote:
I need to sum column P if values in column A begin with 000.

any ideas?






Pete_UK

different SUMIF
 
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

On Mar 31, 8:54*pm, "Gaurav" wrote:
Thanks Pete...but i am getting the VALUE errror as result.

"Pete_UK" wrote in message

...
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



All times are GMT +1. The time now is 11:38 PM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
ExcelBanter.com