#1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 207
Default different SUMIF

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

any ideas?


  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 8,856
Default 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?


  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 10,593
Default 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?



  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 207
Default 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?





  #5   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 207
Default 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?





  #6   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 207
Default 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?





  #7   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 8,651
Default 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?





  #8   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 8,856
Default 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

Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
sumif for multi conditions. i.e sumif(A1:A10,"Jon" and B1:B10,"A" Harry Seymour Excel Worksheet Functions 9 June 12th 07 10:47 PM
Sumif / Sum and if??? Daniel Q. Excel Worksheet Functions 3 February 9th 07 05:20 PM
Embedding a Sumif in a sumif C.Pflugrath Excel Worksheet Functions 5 August 31st 05 07:31 PM
nested sumif or sumif with two criteria dshigley Excel Worksheet Functions 5 April 5th 05 03:34 AM
SUMIF - Range name to used for the "sum_range" portion of a SUMIF function Oscar Excel Worksheet Functions 2 January 11th 05 11:01 PM


All times are GMT +1. The time now is 01:59 PM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"