DCOUNT alternative for a closed source value error (Excel)

gemexcel

New Member
Joined
Jul 14, 2015
Messages
13
Hello,

I have a DCOUNT formula which looks in another sheet. It shows a VALUE error when the second sheet is closed. Much a like a sumif or countif.

What is the best alternative for this formula?

=DCOUNT('LINK'!$A:$Q,MATCH($C$30,'LINK'!$1:$1,0),'LINK'!$D$1:$D$2)

Thank you!
 

Excel Facts

Create a Pivot Table on a Map
If your data has zip codes, postal codes, or city names, select the data and use Insert, 3D Map. (Found to right of chart icons).
Thank you for your response, I hope this helps...

I have my data on one workbook and then have another workbook with an overview in. This has has a cell with a drop down menu so you can select from a list of products.

I want to be able to show the total number of accounts which list the product that is selected in this drop down menu. I had used a dcount with the criteria ">0.1". I can not longer do this as the data comes from a different workbook and a DCOUNT formula shows as VALUE.

If 'Product 2' was selected in the drop down then I want to return '4'. If it was 'Product 1' then is should be '3'.

Here is an example of my data layout;

Sales Month to Date
Product 1
Product 2
Product 3
Product 4
Account 1
2
4
Account 2
4
5
8
Account 3
3
4
2
5
Account 4
1
7
5

<TBODY>
</TBODY>

Thanks!


<TBODY>
</TBODY>

<TBODY>
</TBODY>
 
Upvote 0

Excel 2010
ABCDE
1Sales Month to DateProduct 1Product 2Product 3Product 4
2Account 124
3Account 2458
4Account 33425
5Account 4175
6
7Product 13
8Product 24
9Product 32
10Product 43
Sheet1
Cell Formulas
RangeFormula
B7=COUNTIF(OFFSET($A$2,,MATCH(A7,$B$1:$E$1),4),">"&0)
 
Upvote 0
Thank you for your response but this doesn't solve my problem as COUNTIF does not work when the source workbook is closed.

I also don't want all the the Products listed like that, the formula needs to pick up the correct product from a cell e.g. B7. B7 is a drop down list so could change and therefore the $A$2 part of your formula would not work.

Unless I am misstaken, I am no expert!

Thanks again.
 
Upvote 0
This appears to work with closed workbooks using XL2013.

=SUMPRODUCT(--(INDEX([Book1.xlsx]Link!B2:Q100,0,MATCH(C30,[Book1.xlsx]Link!B1:Q1,0))>0))

Note: Do not use full column or full row references with this type of array processing formula.
 
Upvote 0

Forum statistics

Threads
1,214,601
Messages
6,120,467
Members
448,965
Latest member
grijken

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