A Microsoft Office (Excel, Word) forum. OfficeFrustration

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » OfficeFrustration forum » Microsoft Excel » Worksheet Functions
Site Map Home Register Authors List Search Today's Posts Mark Forums Read  

DCOUNT Help



 
 
Thread Tools Display Modes
  #1  
Old April 20th, 2009, 03:07 PM posted to microsoft.public.excel.worksheet.functions
Rob B.
external usenet poster
 
Posts: 9
Default DCOUNT Help

I am using the output from a combobox as a variable in a database formula
(DCOUNT). The variable is a name. My problem occurs when one name is used
that is also part of another name in the database. Example: Luc will return
counts not just for Luc but also Lucinda.

How can I get DCOUNT to return just Luc counts?

Additional: There are actually several combo boxes all supplying variables
to the DCOUNT criteria; there are at least two variables, name and rating,
and can be more, such as location, start date, end date, etc.

A two variable example could be to return a count of the number of 5's in
one column for the name Luc that is in another column.

DCOUNT(Reference!$L$1:$AK$10000,Reference!AA$1,Ref erence!$A$10022:$K$10023)
Here L1:AK10000 is the database, AA1 is the column of rating numbers, and
A10022:K10023 lists the column headers and contains the criteria.

Thank you very much!

(I did not find an answer in the help file or forum search but I am no
expert.) : )

Rob
  #2  
Old April 20th, 2009, 04:45 PM posted to microsoft.public.excel.worksheet.functions
bapeltzer
external usenet poster
 
Posts: 43
Default DCOUNT Help

Try '=Luc

"Rob B." wrote:

I am using the output from a combobox as a variable in a database formula
(DCOUNT). The variable is a name. My problem occurs when one name is used
that is also part of another name in the database. Example: Luc will return
counts not just for Luc but also Lucinda.

How can I get DCOUNT to return just Luc counts?

Additional: There are actually several combo boxes all supplying variables
to the DCOUNT criteria; there are at least two variables, name and rating,
and can be more, such as location, start date, end date, etc.

A two variable example could be to return a count of the number of 5's in
one column for the name Luc that is in another column.

DCOUNT(Reference!$L$1:$AK$10000,Reference!AA$1,Ref erence!$A$10022:$K$10023)
Here L1:AK10000 is the database, AA1 is the column of rating numbers, and
A10022:K10023 lists the column headers and contains the criteria.

Thank you very much!

(I did not find an answer in the help file or forum search but I am no
expert.) : )

Rob

  #3  
Old April 20th, 2009, 06:48 PM posted to microsoft.public.excel.worksheet.functions
Rob B.
external usenet poster
 
Posts: 9
Default DCOUNT Help

Thank you very much bapeltzer! That works. : )

....now I just need to work converting the name into the name with '= in
front of it, but it is now doable!

Rob

"bapeltzer" wrote:

Try '=Luc

"Rob B." wrote:

I am using the output from a combobox as a variable in a database formula
(DCOUNT). The variable is a name. My problem occurs when one name is used
that is also part of another name in the database. Example: Luc will return
counts not just for Luc but also Lucinda.

How can I get DCOUNT to return just Luc counts?

Additional: There are actually several combo boxes all supplying variables
to the DCOUNT criteria; there are at least two variables, name and rating,
and can be more, such as location, start date, end date, etc.

A two variable example could be to return a count of the number of 5's in
one column for the name Luc that is in another column.

DCOUNT(Reference!$L$1:$AK$10000,Reference!AA$1,Ref erence!$A$10022:$K$10023)
Here L1:AK10000 is the database, AA1 is the column of rating numbers, and
A10022:K10023 lists the column headers and contains the criteria.

Thank you very much!

(I did not find an answer in the help file or forum search but I am no
expert.) : )

Rob

 




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump


All times are GMT +1. The time now is 02:58 PM.


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