#1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 31
Default database function

Unsure what database function to use. I have 1 column where I need to add
sales where criteria is 12 but in column to left it must not include the
area west?

Not sure if I use sumif, dsum, countif or another funtion?

the question I am being asked is to count sales greater that 12 but do not
include the area west

Hope someone can help?

regards

Steve
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 8,651
Default database function

SUMPRODUCT sounds like the best bet.

=SUMPRODUCT((B5:B8)*(B5:B812)*(A5:A8<"West")) for example.
--
David Biddulph

"K11ngy" wrote in message
...
Unsure what database function to use. I have 1 column where I need to add
sales where criteria is 12 but in column to left it must not include the
area west?

Not sure if I use sumif, dsum, countif or another funtion?

the question I am being asked is to count sales greater that 12 but do not
include the area west

Hope someone can help?

regards

Steve



  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 10,593
Default database function

=SUMPRODUCT(--(A2:A20<"West"),--(B2:B2012))

will count them

=SUMPRODUCT(--(A2:A20<"West"),--(B2:B2012),B2:B20)

will sum them

--
HTH

Bob

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

"K11ngy" wrote in message
...
Unsure what database function to use. I have 1 column where I need to add
sales where criteria is 12 but in column to left it must not include the
area west?

Not sure if I use sumif, dsum, countif or another funtion?

the question I am being asked is to count sales greater that 12 but do not
include the area west

Hope someone can help?

regards

Steve



  #4   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 11,501
Default database function

You could try:-

=SUMPRODUCT((A1:A100<"West")*(B1:B10012),B1:B100 )

Mike

"K11ngy" wrote:

Unsure what database function to use. I have 1 column where I need to add
sales where criteria is 12 but in column to left it must not include the
area west?

Not sure if I use sumif, dsum, countif or another funtion?

the question I am being asked is to count sales greater that 12 but do not
include the area west

Hope someone can help?

regards

Steve

  #5   Report Post  
Posted to microsoft.public.excel.misc
bj bj is offline
external usenet poster
 
Posts: 1,397
Default database function

I do not know what you mean by "Area west"

"K11ngy" wrote:

Unsure what database function to use. I have 1 column where I need to add
sales where criteria is 12 but in column to left it must not include the
area west?

Not sure if I use sumif, dsum, countif or another funtion?

the question I am being asked is to count sales greater that 12 but do not
include the area west

Hope someone can help?

regards

Steve

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
help with database function andresg1975 Excel Worksheet Functions 1 November 8th 06 09:38 PM
Reporting with Database function tabediako Excel Discussion (Misc queries) 1 August 3rd 06 05:38 PM
Database function criteria Maistrye Excel Worksheet Functions 0 July 5th 06 09:57 PM
Database function that sums? Keensie Excel Discussion (Misc queries) 3 April 25th 06 03:38 PM
How does the Database Function work in Excel Jacquelynn Excel Worksheet Functions 3 June 4th 05 09:32 PM


All times are GMT +1. The time now is 11:52 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"