DCount Question

Kenwalt

New Member
Joined
Sep 1, 2010
Messages
2
I am trying to insert an array directly into a DCount formula and I keep getting an error.

This formula works fine:

=DCOUNT(Database,field,A1:B2) In this formula A1:B2 are cells containing my criteria.

My problem comes when I try to replace A1:B2 with the actual values. For example:

=DCOUNT(Database,field,{"A17","q01";1,1}) This formula results in a #VALUE! error.

Is it possible to insert the array directly into the DCount Formula?

Thanks in advance
 

Excel Facts

What is the shortcut key for Format Selection?
Ctrl+1 (the number one) will open the Format dialog for whatever is selected.
Hi and welcome to the forum.

Unfortunately no, you cannot pass an array directly into any of the DCOUNT() parameters. The "D" (database) functions would be much more widely used if this was possible but the current situation is that you must pass in range references.
 
Upvote 0

Forum statistics

Threads
1,215,059
Messages
6,122,918
Members
449,093
Latest member
dbomb1414

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top