#1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 70
Default Sumif query

Hi,

I have a sheet of sales data (c1000 lines) and need to sum it all up into
areas.

My sales data is:
Area,Value,Include
1,10,Yes
2,9,Yes
3,8,No
4,7,No
5,6,Yes
1,5,Yes
2,5,Yes
3,2,No
4,10,No
5,6,Yes

My results table needs to show the following:

Area,Value
1,15
2,14
3,0
4,0
5,12

Basically I need to sum the value for each area 'only' if the Include column
= yes.

I've tried looking at the info on xldynamic.com but can't seem to get the
right formula together, not sure if I need a sumif or maybe a sumproduct?

Any help would be appreciated.

Thanks in advance.

AW
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 2,276
Default Sumif query

Hi,
I assume that the results table start in column D1 to D5 so in D1 enter

=sumproduct(--(D1=$A$1:$A$100),$B$1:$B$100)

then copy the formula down to D5

I this was helpful please click yes, thanks

"ArcticWolf" wrote:

Hi,

I have a sheet of sales data (c1000 lines) and need to sum it all up into
areas.

My sales data is:
Area,Value,Include
1,10,Yes
2,9,Yes
3,8,No
4,7,No
5,6,Yes
1,5,Yes
2,5,Yes
3,2,No
4,10,No
5,6,Yes

My results table needs to show the following:

Area,Value
1,15
2,14
3,0
4,0
5,12

Basically I need to sum the value for each area 'only' if the Include column
= yes.

I've tried looking at the info on xldynamic.com but can't seem to get the
right formula together, not sure if I need a sumif or maybe a sumproduct?

Any help would be appreciated.

Thanks in advance.

AW

  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 69
Default Sumif query

try this
=SUMPRODUCT(--($A$2:$A$10=E2),--($C$2:$C$08="yes"),$B$2:$B$10)
and copy down. E2 is the cell you type the area number
--
Hope this is helpful

Pls click the Yes button below if this post provide answer you have asked

Thank You

cheers, francis

Am not a greek but an ordinary user trying to assist another



"ArcticWolf" wrote:

Hi,

I have a sheet of sales data (c1000 lines) and need to sum it all up into
areas.

My sales data is:
Area,Value,Include
1,10,Yes
2,9,Yes
3,8,No
4,7,No
5,6,Yes
1,5,Yes
2,5,Yes
3,2,No
4,10,No
5,6,Yes

My results table needs to show the following:

Area,Value
1,15
2,14
3,0
4,0
5,12

Basically I need to sum the value for each area 'only' if the Include column
= yes.

I've tried looking at the info on xldynamic.com but can't seem to get the
right formula together, not sure if I need a sumif or maybe a sumproduct?

Any help would be appreciated.

Thanks in advance.

AW

  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 8,520
Default Sumif query

Refer the Query Area cell and try

=SUMPRODUCT(--(A:A=<ReferAreaCell),--(C:C="Yes"),--(B:B))

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


"ArcticWolf" wrote:

Hi,

I have a sheet of sales data (c1000 lines) and need to sum it all up into
areas.

My sales data is:
Area,Value,Include
1,10,Yes
2,9,Yes
3,8,No
4,7,No
5,6,Yes
1,5,Yes
2,5,Yes
3,2,No
4,10,No
5,6,Yes

My results table needs to show the following:

Area,Value
1,15
2,14
3,0
4,0
5,12

Basically I need to sum the value for each area 'only' if the Include column
= yes.

I've tried looking at the info on xldynamic.com but can't seem to get the
right formula together, not sure if I need a sumif or maybe a sumproduct?

Any help would be appreciated.

Thanks in advance.

AW

  #5   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 70
Default Sumif query

Thanks guys, I've got it working now. Thanks also for the quick responses,
much appreciated.

ATB,

AW

"Eduardo" wrote:

Hi,
I assume that the results table start in column D1 to D5 so in D1 enter

=sumproduct(--(D1=$A$1:$A$100),$B$1:$B$100)

then copy the formula down to D5

I this was helpful please click yes, thanks

"ArcticWolf" wrote:

Hi,

I have a sheet of sales data (c1000 lines) and need to sum it all up into
areas.

My sales data is:
Area,Value,Include
1,10,Yes
2,9,Yes
3,8,No
4,7,No
5,6,Yes
1,5,Yes
2,5,Yes
3,2,No
4,10,No
5,6,Yes

My results table needs to show the following:

Area,Value
1,15
2,14
3,0
4,0
5,12

Basically I need to sum the value for each area 'only' if the Include column
= yes.

I've tried looking at the info on xldynamic.com but can't seem to get the
right formula together, not sure if I need a sumif or maybe a sumproduct?

Any help would be appreciated.

Thanks in advance.

AW

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 help and another query SM New Users to Excel 2 February 20th 08 02:21 AM
Sumif query AndyO_UK Excel Worksheet Functions 4 December 7th 06 04:20 PM
sumif query mfrasier31 Excel Worksheet Functions 1 November 19th 06 01:16 PM
Sumif Query gibz Excel Discussion (Misc queries) 3 July 2nd 06 11:21 PM
SumIf query ... muchacho Excel Worksheet Functions 21 June 28th 06 09:53 PM


All times are GMT +1. The time now is 02:28 AM.

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

About Us

"It's about Microsoft Excel"