ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Discussion (Misc queries) (https://www.excelbanter.com/excel-discussion-misc-queries/)
-   -   database function (https://www.excelbanter.com/excel-discussion-misc-queries/145997-database-function.html)

K11ngy

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

David Biddulph[_2_]

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




Bob Phillips

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




Mike H

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


bj

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



All times are GMT +1. The time now is 08:19 PM.

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