#1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 334
Default Sumproduct /And

I hope this is answered elsewhere I couldn't find anything relevant.

I want to sum a column where 2 conditions are met. I have tried the
following formula but can't seem to get it to work.

=Sumproduct(--And(Sheet2!$A$1:$A$300=A2,Sheet2!$B$1:$B$300="Accr ual")*Sheet2!$C$1:$C$300)

I am sure I have used a similar formula before but can't remember where.

Thanks
Rick
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 8,520
Default Sumproduct /And

Try

=SUMPRODUCT(--(Sheet2!$A$1:$A$300=A2),--(Sheet2!$B$1:$B$300="Accrual"),--(Sheet2!$C$1:$C$300))

If this post helps click Yes
---------------
Jacob Skaria


"Rick" wrote:

I hope this is answered elsewhere I couldn't find anything relevant.

I want to sum a column where 2 conditions are met. I have tried the
following formula but can't seem to get it to work.

=Sumproduct(--And(Sheet2!$A$1:$A$300=A2,Sheet2!$B$1:$B$300="Accr ual")*Sheet2!$C$1:$C$300)

I am sure I have used a similar formula before but can't remember where.

Thanks
Rick

  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 15,768
Default Sumproduct /And

=SUMPRODUCT(--(Sheet2!$A$1:$A$300=A2),--(Sheet2!$B$1:$B$300="Accrual"),--(Sheet2!$C$1:$C$300))

No need for the double unary -- on the last array:

=SUMPRODUCT(--(Sheet2!$A$1:$A$300=A2),--(Sheet2!$B$1:$B$300="Accrual"),Sheet2!$C$1:$C$300)

--
Biff
Microsoft Excel MVP


"Jacob Skaria" wrote in message
...
Try

=SUMPRODUCT(--(Sheet2!$A$1:$A$300=A2),--(Sheet2!$B$1:$B$300="Accrual"),--(Sheet2!$C$1:$C$300))

If this post helps click Yes
---------------
Jacob Skaria


"Rick" wrote:

I hope this is answered elsewhere I couldn't find anything relevant.

I want to sum a column where 2 conditions are met. I have tried the
following formula but can't seem to get it to work.

=Sumproduct(--And(Sheet2!$A$1:$A$300=A2,Sheet2!$B$1:$B$300="Accr ual")*Sheet2!$C$1:$C$300)

I am sure I have used a similar formula before but can't remember where.

Thanks
Rick



  #4   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 3,346
Default Sumproduct /And

Hi,

In 2007 you can also use:

SUMIFS(Sheet2!C$1:C$300,Sheet2!A$1:A$300,A2,Sheet2 !B$1:B$300,"Accrual"

--
If this helps, please click the Yes button.

Cheers,
Shane Devenshire


"Rick" wrote:

I hope this is answered elsewhere I couldn't find anything relevant.

I want to sum a column where 2 conditions are met. I have tried the
following formula but can't seem to get it to work.

=Sumproduct(--And(Sheet2!$A$1:$A$300=A2,Sheet2!$B$1:$B$300="Accr ual")*Sheet2!$C$1:$C$300)

I am sure I have used a similar formula before but can't remember where.

Thanks
Rick

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
Conditional SUMPRODUCT or SUMPRODUCT with Filters Ted M H Excel Worksheet Functions 4 August 14th 08 07:50 PM
#VALUE! from SUMPRODUCT gte Excel Worksheet Functions 8 January 15th 08 06:16 PM
sumproduct? sumif(sumproduct)? David Excel Worksheet Functions 3 July 13th 07 07:06 PM
SUMPRODUCT Help please SamGB Excel Discussion (Misc queries) 11 February 24th 06 11:21 PM
SUMPRODUCT help again! TMF in MN Excel Worksheet Functions 4 February 22nd 06 08:01 PM


All times are GMT +1. The time now is 09:43 AM.

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"